Bug 6082

Summary: do_package fails if no modules are built
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Darren Hart <dvhart>
Component: kernelAssignee: Darren Hart <dvhart>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Undecided CC: bruce.ashfield, richard.purdie, tom.zanussi
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

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?