Hello Junjie Shi,
Please refer the following method.
Please clean the Cache
$ bitbake virtual/kernel -c cleansstate
Get the source of Kernel
$ bitbake virtual/kernel -c patch
Please go to Linux Kernel source folder build_t4240rdb/tmp/work/t4240rdb-fsl-linux/linux-qoriq/4.1-r0, please remove git folder, then copy and rename your Kernel source folder as git.
If you want to configure and rebuild Linux Kernel, you could use this method.
$ bitbake virtual/kernel -c configure
Please go to the folder build_t4240rdb/tmp/work/t4240rdb-fsl-linux/linux-qoriq/4.1-r0/build
$ make ARCH=powerpc menuconfig
Got to build_t4240rdb
$ bitbake virtual/kernel
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------