[OE-core] [PATCH] module.bbclass: Allow for modules to be packaged seperate from ${PN}

Darren Hart dvhart at linux.intel.com
Thu Jan 31 00:30:50 UTC 2013



On 01/30/2013 04:19 PM, Saul Wold wrote:
> On 01/30/2013 04:03 PM, Darren Hart wrote:
>> On 01/30/2013 03:05 PM, Saul Wold wrote:
>>> This patch will allow recipes that provide kernel modules to package
>>> the module or modules in specific packages. That list is contained in
>>> MODULE_PACKAGES, this defaults to  to preserve the current behavior.
>>
>> s/to to preserve/to preserving/
>>
> Fixed in my MUT branch
> 
>>> The package can also define MODULE_FILES to specify files.
>>
>> So, for example, the hello-mod recipe in meta-skeleton can remain unchanged?
> Correct, the default for MODULE_PACKAGES is "${PN}" so no changes are 
> required.
> 
>> It will then get /lib/modules/*/hello.ko in FILES_hello-mod and
>> MODULE_PACKAGES will be set to hello-mod. If I wanted to, hello-mod
>> could create to modules, and package them separately by specifying two
>> values in MODULE_PACKAGES and creating the appropriate
>> MODULE_FILES_foo|bar entries?
>>
> Correct, 2 packages would be created and the files specified would be 
> packaged into foo and bar.
> 
>> Right, seems to make sense to me. What testing has this seen? Have you
>> verified it with hello-mod?
>>
> I verified it with lttng-module and added MODULE_PACKAGES = 
> "module-test" and MODULE_FILES_module-test = "/etc" and then verified 
> packages and variables.
> 
> Sau!
> 
>> --
>> Darren
>>
>>>
>>> [YOCTO #3803]
>>>
>>> Signed-off-by: Saul Wold <sgw at linux.intel.com>

Acked-by: Darren Hart <dvhart at linux.intel.com>

Thanks Saul!

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




More information about the Openembedded-core mailing list