anchor.diff:  	echo "UCTOOL_PREFIX=${TARGET_PREFIX}" >> ${S}/Rules.make
   	echo "LINUXKERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR}"  >> ${S}/Rules.make
   
  -	# Build the cmem kernel module	
  +	# Build the cmem kernel module
  +	# We unset CFLAGS because kernel modules need different ones, this is basically a verbatim copy of kernel.bbclass and module-base.bbclass	
   	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS	
   	cd ${S}/cetools/packages/ti/sdo/linuxutils/cmem
   
   	oe_runmake clean
  +	# We probably don't need to build all 3, but atm it doesn't hurt us	
   	oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR}   \
              KERNEL_SRC=${STAGING_KERNEL_DIR}    \
              KERNEL_VERSION=${KERNEL_VERSION}    \
  
positive.code: 
  	export KERNEL_DIR=${STAGING_KERNEL_DIR}
  	export TOOL_PREFIX=${TARGET_PREFIX} 
  	
  	sed -i -e s:/db/toolsrc/library/tools/vendors/mvl/arm/omap3/OMAP35x_SDK_0.9.7/src/linux/kernel_org/2.6_kernel:${STAGING_KERNEL_DIR}:g \
             -e s:/db/toolsrc/library/tools/vendors/cs/arm/arm-2007q3/bin/arm-none-linux-gnueabi-:${TARGET_PREFIX}:g \
             -e s:/db/atree/library/trees/power/power-d02x/imports:${STAGING_DIR}/${MULTIMACH_TARGET_SYS}:g \
  
negative.code: 	# Build the DSP power manager kernel module
  	cd ${S}/cetools/packages/ti/bios/power
  
  	# Unpack all kernel sources for the DSP power manager module
  	for dsp in $(ls | grep bld | awk -F, '{print $2}' | awk -F_ '{print $1}') ; do
  		if ! [ -e $dsp ] ; then tar xf ti_bios_power,${dsp}_bld.tar ; fi
  	done		
  