Bug 6082 - do_package fails if no modules are built
Summary: do_package fails if no modules are built
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 1.6 M5
Assignee: Darren Hart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-03-31 21:24 UTC by Darren Hart
Modified: 2014-04-07 11:13 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
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 Darren Hart 2014-03-31 21:24:10 UTC
Without CONFIG_MODULES=y and some modules to build, the package split will not find /lib/modules/<kernel-version> and errors out. This can happen if the ktype-kmachine match is not found in the linux-yocto meta data, but can also be intentional for certain machines. We need to be able to handle this scenario gracefully.
Comment 1 Richard Purdie 2014-04-07 11:13:59 UTC
I forced "#CONFIG_MODULES is not set" into my defconfig and the kernel builds just fine. I confirmed that no modules were build and /lib/* didn't exist in the output yet it packaged successfully.

For interest I also tried building perf and that also worked.

I think the issue you encountered must have been something else?