[linux-yocto] kernel-dev rpm does not have much contents

Michael Lim youhour at us.ibm.com
Mon Oct 28 08:00:32 PDT 2019



I am building a power pc core-image-minimal in yocto using linux-yoct_4.19.
The project was built successfully,  However, the kernel-dev rpm does not
have much content.

Its contents below:
fips_ppcnf]$ rpmv kernel-dev-4.19.61+git0
+960be42184_4ec6f25516-r0.fips_ppcnf.rpm
drwxr-xr-x    2 root    root                        0 Oct 26 17:04 /boot
-rw-r--r--    1 root    root                   375741 Oct 26
17:04 /boot/Module.symvers-4.19.61-yocto-standard
-rw-r--r--    1 root    root                  1542246 Oct 26
17:04 /boot/System.map-4.19.61-yocto-standard
-rw-r--r--    1 root    root                    60694 Oct 26
17:04 /boot/config-4.19.61-yocto-standard

There are no contents relate to the header files nor any built code.

The kernel.bbclass  has this line
FILES_${KERNEL_PACKAGE_NAME}-dev =
"/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH} $
{nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"

KERNEL_SRC_PATH="/usr/src/kernel"
KERNEL_VERSION="4.19.61-yocto-standard"

Seems like the contents in the bold path were not included in the rpm.

I'm not sure where the ${KERNEL_SRC_PATH} is.  So I changed it to  $
{STAGING_KERNEL_BUILDDIR}.  As I know there are contents there.
Unfortunately,  kernel-dev rpm does not contains the file in  $
{STAGING_KERNEL_BUILDDIR}.

STAGING_KERNEL_BUILDDIR="/tmp/youhour/b20191023a/fips-build/fips-ppcnf/build/tmp/work-shared/fips-ppcnf/kernel-build-artifacts"

I am very very new to the yocto build.  Can someone help pointing out what
I need to do to get all the code in ${STAGING_KERNEL_BUILDDIR} the
kernel-dev rpm?

By the way,  I am using yocto 'WARRIOR' branch.

Thank you in advance.




Best Regards,
Michael Y. Lim

HW VPD Template
Boston SFO


Office:     045/C-08
Tie Line:  363-7244
Phone:   (512) 286-7244
email:  youhour at us.ibm.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/linux-yocto/attachments/20191028/255d3949/attachment.html>


More information about the linux-yocto mailing list