Bug 4286

Summary: recipes that provide kernel modules need to provide packages that begin with 'kernel-module-'
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mark Hatle <mark.hatle>
Component: kernelAssignee: Yang Shi <yang.shi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bruce.ashfield, dvhart, tom.zanussi, yang.shi
Version: 1.4   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mark Hatle 2013-04-12 20:07:07 UTC
Recipes that provide kernel modules, such as compat-wireless (from meta-oe), hello-mod (from meta-skeleton), etc are producing packages that do NOT start with 'kernel-module-'.

This causes a number of subtle problems, as the system keys various checks against the package name begining with 'kernel-module-'.  See package.bbclass and insane.bbclass.

In addition, if multilib support is enabled and the user attempts to build a multilib image, i.e. bitbake lib32-core-image-minimal, the recipes will be incorrectly renamed if they occur in IMAGE_INSTALL.  There is a check in the remapping code of meta/lib/oe/classextend.py.  This specifically checks for 'kernel-'.

Recipes that inherit the module.bbclass (and related) should automatically get their produced packages prefixed with 'kernel-module-'.  

I.e. PKG_${PN} = "kernel-module-${PN}"

A sanity check should be added that the package name of modules will startwith 'kernel-module-' or an error should be generated.
Comment 1 Yang Shi 2013-08-20 18:26:08 UTC
Fixed by below commits:

0bc564af07c1bae8112f834a60aea3b72af7de13
0e78c2931397f5a6811119ad33c9f95975aef8b7 
8b075050e4889e0a06d6d7d01b28b8645d2f2af5