Hello Ling Yunhui,
Please use the following procedure to modify Kernel source or reconfigure Kernel, and rebuild Kernel image in Linux SDK.
1. Clean Cache.
$bitbake virtual/kernel -c cleansstate
2. Get Kernel source.
$bitbake virtual/kernel -c patch
3. Get default Kernel configuration
$bitbake virtual/kernel -c configure
4. Go to Kernel source code folder
build_<platform>_release/tmp/work/<platform>-fsl-linux-gnuspe/linux-qoriq/3.12-r0/git/.
Modify the Kernel source, such as dts file in arch/powerpc/boot/dts/, or configure Kernel for your target with the command "make ARCH=powerpc menuconfig".
5. Go back to build folder and run
$ bitbake virtual/kernel -c compile
6. Go to step 4 to continue to modify Kernel source and rebuild Kernel image again with the command.
$ bitbake virtual/kernel -c compile -f
(-f option is used to force build action, because Kernel has been built previously).
7. $bitbake virtual/kernel
Get Kernel images in build_<platform>_release/tmp/deploy/images/<platform>/.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------