anchor.diff:  SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
   
   IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}"
  -IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/temp-target"
  +IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDK_PREFIX}/${TARGET_SYS}"
   
   TOOLCHAIN_HOST_TASK ?= "task-sdk-host"
   TOOLCHAIN_TARGET_TASK ?= "task-sdk-bare"
  
positive.code: 	${IPKG_TARGET} update
  	${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK}
  
  	mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include
  	mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/
  	mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/share
  	mv ${SDK_OUTPUT}/temp-target/usr/lib/opkg/status ${SDK_OUTPUT}/${prefix}/package-status
  	rm -rf ${SDK_OUTPUT}/temp-target/usr/lib/opkg/
  	cp -pPR ${SDK_OUTPUT}/temp-target/usr/include/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/
  	cp -pPR ${SDK_OUTPUT}/temp-target/usr/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/
  	if [ -d ${SDK_OUTPUT}/temp-target/usr/lib/.debug ]; then
  		cp -pPR ${SDK_OUTPUT}/temp-target/usr/lib/.debug/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/
  	fi
  	cp -pPR ${SDK_OUTPUT}/temp-target/usr/share/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/share/
  	cp -pPR ${SDK_OUTPUT}/temp-target/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/
  	if [ -d ${SDK_OUTPUT}/temp-target/lib/.debug ]; then
  		cp -pPR ${SDK_OUTPUT}/temp-target/lib/.debug/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/.debug/
  	fi
  	rm -rf ${SDK_OUTPUT}/temp-target/
  
  	for fn in `ls ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/`; do
  		if [ -h ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn ]; then
  			link=`readlink ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn`
  			bname=`basename $link`
  			if [ ! -e $link -a -e ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$bame ]; then
  				rm ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn
  				ln -s $bname ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn
  			fi
  		fi
  	done
  
  	echo 'GROUP ( libpthread.so.0 libpthread_nonshared.a )' > ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libpthread.so
  	echo 'GROUP ( libc.so.6 libc_nonshared.a )' > ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libc.so
  
  	# remove unwanted housekeeping files
  	mv ${SDK_OUTPUT}/usr/lib/opkg/status ${SDK_OUTPUT}/${prefix}/package-status-host
  	rm -Rf ${SDK_OUTPUT}/usr/lib
  
  	# extract and store ipks, pkgdata and shlibs data
  	target_pkgs=`cat ${SDK_OUTPUT}/${prefix}/package-status | grep Package: | cut -f 2 -d ' '`
  
negative.code: 	touch $script
  	echo 'export PATH=${prefix}/bin:$PATH' >> $script
  	echo 'export PKG_CONFIG_SYSROOT_DIR=${prefix}/${TARGET_SYS}' >> $script
  	echo 'export PKG_CONFIG_PATH=${prefix}/${TARGET_SYS}${layout_libdir}/pkgconfig' >> $script
  	echo 'export CONFIG_SITE=${prefix}/site-config' >> $script
  	echo "alias opkg='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${sysconfdir}/opkg-sdk.conf -o ${prefix}'" >> $script
  	echo "alias opkg-target='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${prefix}/${TARGET_SYS}${layout_sysconfdir}/opkg.conf -o ${prefix}/${TARGET_SYS}'" >> $script
  
  	# Add version information
  	versionfile=${SDK_OUTPUT}/${prefix}/version
  