I am using Yocto to produce a build for a SolidRun i.MX8 platform. For this I am using the official NXP Kirkstone release with the Linux kernel 5.15.
# Inialize NXP repositories RUN .bin/repo init -u https://github.com/nxp-imx/imx-manifest.git -b imx-linux-kirkstone -m imx-5.15.71-2.2.0.xml
I have a bbappend in my own layer that I want to override the kernel defconfig with. No matter what I do, the original defconfig is never overridden.
Here is what I have tried so far:
# Include kernel configuration fragment FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI += "file://defconfig \ " do_configure_append() { bbwarn "1.) Applying Linux Kernel configuration fragment ..." cat ${WORKDIR}/defconfig >> ${B}/.config } KBUILD_DEFCONFIG_imx8mpsolidrun = "" unset KBUILD_DEFCONFIG do_copy_defconfig_append () { bbwarn "2.) Applying Linux Kernel configuration fragment ..." #cp ${WORKDIR}/defconfig ${WORKDIR}/defconfig cp ${WORKDIR}/defconfig ${WORKDIR}/build/.config }
I can see the 'bbwarn' messages on the console, however the defconfig is never overridden.
How can I successfully override the linux-imx defconfig with NXP's official Yocto Kirkstone release? Thanks.
Hi,
Thank you for your interest in NXP Semiconductor products,
Did you copy your custom defconfig file?
You can start with a basis from Yocto Project guide.
Also by this advanced guide which also covers customization.
And this knowledge base.
Regards