[OE-core] [PATCH 1/1] kernel.bbclass: Remove warnings for modutils and modprobe.d

Darren Hart dvhart at linux.intel.com
Wed Mar 7 17:04:06 UTC 2012



On 03/07/2012 12:21 AM, Koen Kooi wrote:
> 
> Op 7 mrt. 2012, om 09:06 heeft Darren Hart het volgende geschreven:
> 
>> Fixes [Yocto #2036]
>>
>> The source and build directories are unused, remove them.
>>
>> The modutils and modprobe.d directories may be used if modules are built that
>> are either autoloaded or have modprobe.d entries. This isn't known at install
>> time, so check after the package split if these directories are empty and
>> remove them if they are.
>>
>> Signed-off-by: Darren Hart <dvhart at linux.intel.com>
>> CC: Paul Eggleton <paul.eggleton at linux.intel.com>
>> ---
>> meta/classes/kernel.bbclass |   10 ++++++++++
>> 1 files changed, 10 insertions(+), 0 deletions(-)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index 8fbec90..169df33 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -105,6 +105,8 @@ kernel_do_install() {
>> 		oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install
>> 		rm -f "${D}/lib/modules/${KERNEL_VERSION}/modules.order"
>> 		rm -f "${D}/lib/modules/${KERNEL_VERSION}/modules.builtin"
>> +		rm "${D}/lib/modules/${KERNEL_VERSION}/build"
>> +		rm "${D}/lib/modules/${KERNEL_VERSION}/source"
> 
> How do you want to support on-target building of exernal modules?

That is an open issue that needs to be addressed, but we don't install
the build or source directories now (unless I'm missing something), so
these are links to nowhere at the moment.

We do have a bug open to support on-target module building. I supect
we'll need to add these as part of a headers package or similar. So
these may come back.

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




More information about the Openembedded-core mailing list