Bug 4286 - recipes that provide kernel modules need to provide packages that begin with 'kernel-module-'
Summary: recipes that provide kernel modules need to provide packages that begin with ...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Yang Shi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-04-12 20:07 UTC by Mark Hatle
Modified: 2013-08-20 18:26 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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