How to keep config for 3.14.28 kernel together with 3.14.28.bb?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to keep config for 3.14.28 kernel together with 3.14.28.bb?

913 Views
yanfengliu
Contributor III

We can use "bitbake linux-imx -c menuconfig" to customize the 3.14.28 kernel configuration.

However, we can't persist the customized configuration by following the Building Linux Kernel link, reason is 3.14.28.bb kernel recipe doesn't take defconfig saved under the folds mentioned in that guide since it contains the following line:

{code}

do_configure_prepend() {

   # copy latest defconfig for imx_v7_defoonfig to use

   cp ${S}/arch/arm/configs/imx_v7_defconfig ${S}/.config

   cp ${S}/arch/arm/configs/imx_v7_defconfig ${S}/../defconfig

}

{code}

Can we modify the 3.14.28.bb somehow to use a defconfig in a folder similar to the one mentioned in Building Linux Kernel​?

Regards,

yanfeng

Labels (3)
0 Kudos
1 Reply

516 Views
jamesbone
NXP TechSupport
NXP TechSupport

You need to do the following:

bitbake linux-imx -c menuconfig

linux-imx_3.14.28.bb

do_configure_prepend() {

# copy latest defconfig for imx_v7_defconfig  to use

   cp ${S}/arch/arm/configs/imx_v7_defconfig  ${S}/.config

   cp ${S}/arch/arm/configs/imx_v7_defconfig  ${S}/../defconfig

fi

}

Please see more details in the following threads

Kernel config file used by Yocto

Changing the Kernel configuration for i.MX6 SABRE

0 Kudos