[meta-freescale] [meta-fsl-ppc] How to change the kernel config?

Joerg Albert jal2 at gmx.de
Tue Jul 8 02:41:50 PDT 2014


Hi,

zhenhua.luo at ... <zhenhua.luo at ...> writes:
> [Luo Zhenhua-B19537] Following is my suggestion. 
> 	1. copy defconfig in <custom_layer>/recipe-kernel/linux/files/
> 	2. ensure following content is in
<custom_layer>/recipe-kernel/linux/linux-qoriq-sdk_3.12.bbappend
> 	FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> 	SRC_URI += "files://defconfig"
> 	3. redefine KERNEL_DEFCONFIG in conf files in the custom layer, e.g,
conf/local.conf
> 	KERNEL_DEFCONFIG = "${WORKDIR}/defconfig"

sorry for the delay.
Unfortunately this doesn't work. I've got a copy of my defconfig in
${WORKDIR} but as kernel_do_configure in meta/classes/kernel.bbclass contains:

        if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
                cp "${WORKDIR}/defconfig" "${B}/.config"

and meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc runs:

  do_configure_prepend() {

        cp ${KERNEL_DEFCONFIG} ${B}/.config

before kernel_do_configure, my ${WORKDIR}/defconfig is not copied into
{B}/.config.

Cheers,
Joerg






More information about the meta-freescale mailing list