create new config fragment without menuconfig

Just to be sure against what we'll make the config fragment:

bitbake linux-yocto-custom -c menuconfig

Where is the .config file used?



bitbake linux-yocto-custom -e | grep ^WORKDIR=
which returns e.g.:

WORKDIR="/tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/custom-jethro-multi-v7-core-image-minimal-sato-sdk-toolchain/build/build/tmp/work/multi_v7_ml-poky-linux-gnueabi/linux-yocto-custom/4.4.1-custom-ml-debug+gitAUTOINC+f1ab5eafa3-r0"



ls -lah /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/custom-jethro-multi-v7-core-image-minimal-sato-sdk-toolchain/build/build/tmp/work/multi_v7_ml-poky-linux-gnueabi/linux-yocto-custom/4.4.1-custom-ml-debug+gitAUTOINC+f1ab5eafa3-r0/linux-multi_v7_ml-debug-build/

total 476K
drwxr-xr-x 3 genius genius 4.0K Feb 15 17:45 ./
drwxr-xr-x 19 genius genius 4.0K Feb 15 17:46 ../
-rw-r--r-- 1 genius genius 150K Feb 15 17:45 .config <-- that's it
-rw-r--r-- 1 genius genius 150K Feb 15 17:45 .config.old
-rw-r--r-- 1 genius genius 150K Feb 15 17:45 .config.orig
-rw-r--r-- 1 genius genius 0 Feb 15 17:45 .scmversion
-rw-r--r-- 1 genius genius 896 Feb 15 17:45 Makefile
drwxr-xr-x 4 genius genius 4.0K Feb 15 17:45 scripts/
lrwxrwxrwx 1 genius genius 168 Feb 15 17:45 source -> /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/custom-jethro-multi-v7-core-image-minimal-sato-sdk-toolchain/build/build/tmp/work-shared/multi-v7-ml/kernel-source

Let's try to create the diff:


diff -Nurp config.orig .config | sed -n "s/^\+//p" > frag.cfg
so it's something like:

diff -Nurp /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/custom-jethro-multi-v7-core-image-minimal-sato-sdk-toolchain/build/build/tmp/work/multi_v7_ml-poky-linux-gnueabi/linux-yocto-custom/4.4.1-custom-ml-debug+gitAUTOINC+f1ab5eafa3-r0/linux-multi_v7_ml-debug-build/.config /tmp/yocto-autobuilder/builds/config | sed -n "s/^\+//p"
++ /tmp/yocto-autobuilder/builds/config 2016-02-15 17:55:38.203760316 +0000
CONFIG_MTD_CFI=y
CONFIG_MTD_JEDECPROBE=y
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_CFI_INTELEXT=y
CONFIG_MTD_CFI_AMDSTD=y
CONFIG_MTD_CFI_STAA=y
CONFIG_MTD_CFI_UTIL=y
CONFIG_MTD_PHYSMAP=y
# CONFIG_MTD_PHYSMAP_COMPAT is not set
CONFIG_MTD_PHYSMAP_OF=y
# CONFIG_MTD_IMPA7 is not set
CONFIG_SPI_ZYNQ_QSPI=y
# CONFIG_SPI_ZYNQ_QSPI_DUAL_STACKED is not set

and we can dump it into a file:


diff -Nurp /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/custom-jethro-multi-v7-core-image-minimal-sato-sdk-toolchain/build/build/tmp/work/multi_v7_ml-poky-linux-gnueabi/linux-yocto-custom/4.4.1-custom-ml-debug+gitAUTOINC+f1ab5eafa3-r0/linux-multi_v7_ml-debug-build/.config /tmp/yocto-autobuilder/builds/config | sed -n "s/^\+//p" > frag.cfg

Now add your patches/config fragments.
To check that the config fragments made it into the config:

bitbake linux-yocto-custom -c cleansstate
bitbake linux-yocto-custom -c menuconfig








Comments

Popular posts from this blog

Yocto: BitBake and Dependencies - e.g. One recipe to use output of another recipe

Yocto: kernel modules not showing up in the rootfs

Yocto/Qt5: hello-qt part2 - Licensing