Hi,
I like to change the default kernel configuration and I want the changes to be updated on kernel build even after cleansstate
So I generated the kernel configuration difference by
bitbake -c diffconfig virtual/kernel
the above command generated a *.cfg which I copied the files to meta-*/recipies-kernel/linux/files/
Then, I created a *.bbappend files in meta-*/recipies-kernel/linux/
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://fragmemt.cfg"@
When I did a bitbake
bitbake -c cleansstate virtual/kernel
WARNING: No recipes available for:
/home/project/P1010RDB/Source/yocto/QorIQ-SDK-V1.8-20150619-yocto/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq_3.12_config.bbappend
Solved! Go to Solution.
Hi,
I got solution for the above problem.
after successfully modified the kernel configuration then follow the below steps
step 1: bitbake -c diffconfig virtual/kernel
the above command will generate fragment.cfg
step 2: copy the fragment.cfg to source/meta-**/recipes-kernel/linux/linux-qoriq-3.12-config/
step 3: modify the linux-qoriq.inc
line 17: DELTA_KERNEL_DEFCONFIG="${THISDIR}/linux-qoriq-3.12-config/*"
make sure there should not be any space in the above line
Now bitbake cleansstate and bitbake again.
Note:
Someone patch this to source please.
Thanks
Nobel
I struggled with this for quite a while, trying to enable the CRYPTO_USER feature.
It is possible to do completely in a private layer. Assuming you have your own layer
referenced in conf/bblayers.conf (which you should, makes things much easier)...
a) use menuconfig and diffconfig to create a fragment.
b) Create a layer with a linux-qoriq_1_3.12.bbappend (or other version if yours is different)
c) VERIFY WITH bitbake-layers show-appends that your file is being pulled in
d) In the bbappend dir, save the fragment under files/build (IMPORTANT) i.e files/build/myfragment.cfg
e) in the bbappend file, add...
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://build/myfragment.cfg "
DELTA_KERNEL_DEFCONFIG += " myfragment.cfg "
Note build is in the SRC_URI, not in DELTA_KERNEL_DEFCONFG. Finding out
where do_configure() actually ran took a bit of effort.
Hope this helps someone...
Cary
Hi Cary,
You are right, build is in the SRC_URI, not in DELTA_KERNEL_DEFCONFG in 1.9 SDK.
but if you look at older version 1.8 SDK, it is DELTA_KERNEL_DEFCONFIG.
Regards
Nobel
Hi,
I got solution for the above problem.
after successfully modified the kernel configuration then follow the below steps
step 1: bitbake -c diffconfig virtual/kernel
the above command will generate fragment.cfg
step 2: copy the fragment.cfg to source/meta-**/recipes-kernel/linux/linux-qoriq-3.12-config/
step 3: modify the linux-qoriq.inc
line 17: DELTA_KERNEL_DEFCONFIG="${THISDIR}/linux-qoriq-3.12-config/*"
make sure there should not be any space in the above line
Now bitbake cleansstate and bitbake again.
Note:
Someone patch this to source please.
Thanks
Nobel