Bug 12643

Summary: util-linux: lscpu is not populated in rootfs
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ramon Fried <rfried.dev>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, richard.purdie, tim.orling
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: arm64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ramon Fried 2018-04-02 05:49:27 UTC
Preconditions/Environment
-------------------------
Setup is: OE build for Dragonboard410c.
target image is rpb-desktop-image

Triggering Action/Cause
-----------------------
Just running bitbake rpb-desktop-image

Expectation
-----------
lscpu should be part of rootfs

Actual Result
-------------
lscpu is compiled but it's not populated in the end image.

Reproducibility
---------------
All the time.
Comment 1 Tim Orling 2018-04-05 07:51:26 UTC
You need to add util-linux-lscpu package to your image:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/util-linux/util-linux.inc#n33

e.g. IMAGE_INSTALL += "util-linux-lscpu"
Comment 2 Richard Purdie 2018-04-05 07:55:51 UTC
A few things to keep in mind:

* This bugzilla is for OE-Core which does not include the dragonboard or the rpb-desktop-image
* Just because something is built, it doesn't mean it would get included in an image, the image does need to explictly say what it needs to include.

I therefore suspect that you need to include this in your image (through something like IMAGE_INSTALL_append += "util-linux-lscpu")
Comment 3 Ramon Fried 2018-04-07 22:29:45 UTC
I thought, like any other package that just by adding:
RDEPENDS_packagegroup-rpb = "linux-util"
will be enough to inlcude all the files in the package.
Thanks for clarifying.

Warm regards,
Ramon.