Re: Recursive makefiles for module spanning over multiple dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 8, 2009 at 7:53 AM, Rajat Jain <Rajat.Jain@xxxxxxxxxxxx> wrote:
> Hi,
>
>>>
>>> obj-m = test.o
>>> test-objs := test1/test1.o test2/test2.o
>>>
>>> No need for makefiles under test1 and test2. However, only throwing
>>> ideas here, without a feasibility check.
>>>
>>> Thanks,
>>>
>>> Rajat
>>>
>>
>> Why it is not possible? Just trying to understand whether it is
>> limited by the Linux kernel build system or what? User space
>> makefiles almost all the time have this recursive nature. Any
>> pointers?
>>
>>
> On second thoughts, the solution above should work
>
> Rajat
>

For me it is not working, only difference is I am using make -f Makefile.kern
i.e. top level make file is renamed as Makefile.kern, there are reasons I am
not naming it as Makefile.

When I do make -f Makefile.kern,
I get following error:

make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'
scripts/Makefile.build:41:
/home/Leo/Desktop/My_Kernel_Stuff/TEST/Makefile: No such file or
directory
make[2]: *** No rule to make target
`/home/Leo/Desktop/My_Kernel_Stuff/TEST/Makefile'.  Stop.
make[1]: *** [_module_/home/Leo/Desktop/My_Kernel_Stuff/TEST] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'


Looks like it is trying to look for an file named Makefile, which I
have renamed as Makefile.kern.
If this is the case then what is the point of make -f.
-Leo.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux