>On Mon, Oct 28, 2019 at 11:36 AM Michael Lim <youh...@us.ibm.com> wrote:
>>
>> 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?

>You want the kernel-devsrc package, not kernel-dev in this case.

>Bruce

Thank you for responding Bruce.

I do not see kernel-devsrc defined in the kernel.bbclass

Is there a bug in the kernel.bbclass where it includes ${KERNEL_SRC_PATH}
in the kernel-dev?  If that part is correct, is there a bug that prevent
code copy to ${KERNEL_SRC_PATH}?

${KERNEL_SRC_PATH} seems to be a relative path in the yocto build.  is ${D}
${KERNEL_SRC_PATH}  the absolute path?

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:  youh...@us.ibm.com
-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to