Hello Sara Sirota,
Building with CodeWarrior is not recommended and it is not necessary either. Please use SDK to build image and use CodeWarrior to debug.
You could modify Kernel source code or reconfigure, then rebuild images as the following.
1. $bitbake virtual/kernel -c cleansstate
2. $bitbake virtual/kernel -c configure
3. Go to the folder build_p4080ds/tmp/work/p4080ds-fsl-linux/linux-qoriq/4.1-r0/build/
Configure Linux Kernel with the command "make ARCH=powerpc menuconfig"
Modify Kernel source in "source" folder.
4. Rebuild Linux Kernel with "bitbake virtual/kernel -c compile -f "
5. $bitbake virtual/kernel
Please do step 3-5 to continue modify and rebuild.
If your CodeWarrior installed in a different machine from the PC installing SDK, please copy the whole build folder for debugging.
Please refer to the document Debugging Linux Kernel with CodeWarrior for PA to setup debug environment.
Please note, in SDK 2.0, no need to configure "DEBUG_CW" to configure Linux Kernel.
Thanks,
Yiping