[OE-core] [RFC] don't run make clean on kernel_do_install

Darren Hart dvhart at linux.intel.com
Thu Apr 28 15:26:12 UTC 2011



On 04/28/2011 01:30 AM, Koen Kooi wrote:
> 
> Op 25 apr 2011, om 19:10 heeft Darren Hart het volgende geschreven:
> 
>> Hi Koen,
>>
>> On 04/23/2011 07:47 AM, Koen Kooi wrote:
>>> Hi,
>>>
>>> Over the holidays I was trying to build some externel kernel modules
>>> and they failed to build because linux/bounds.h wasn't in sysroots.
>>>
>>
>>
>> According the the linux Makefile:
>>
>> ###
>> # Cleaning is done on three levels.
>> # make clean     Delete most generated files
>> #                Leave enough to build external modules
>>
>> The kernel Makefile should not be deleting it.
>>
>> And indeed:
>> https://bugzilla.kernel.org/show_bug.cgi?id=11475
>>
>> This was addressed by the following in 2.6.27:
>> 7d3cc8b6d899e53222c22a78d98bb53a695f7962
>> Don't clean bounds.h and asm-offsets.h
>>
>> Later, bounds.h moved as well in 2.6.33:
>> 01fc0ac198eabcbf460e1ed058860a935b6c2c9a
>> kbuild: move bounds.h to include/generated
>>
>>
>> Which kernel version are you attempting to build?
>>
>> We shouldn't add code to address a bug in a specific kernel version in a
>> kernel base class. That belongs in the specific recipe. I suggest trying
>> to add the 7d3cc8b6d899e53222c22a78d98bb53a695f7962 patch to your kernel
>> recipe and see if that resolves the issue for you without resorting to
>> recreating the clean process in the base class.
> 
> I went with this option: http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/commit/?id=7bcba149f05cc9c5d8ce956ee40e2c6849601470
> 

Works around the problem, but does so in the appropriate place. I would
like to understand if this is something that is likely to bite others,
or if there is something peculiar about this particular kernel. If it
crops up again, we'll need to dig in further.

--
Darren

> regards,
> 
> Koen

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel




More information about the Openembedded-core mailing list