anchor.diff:  	${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/
  +	install -d ${SDK_OUTPUT}/${prefix}/usr/lib/opkg
  +	mv ${SDK_OUTPUT}/usr/lib/opkg/* ${SDK_OUTPUT}/${prefix}/usr/lib/opkg/
  +	rm -Rf ${SDK_OUTPUT}/usr/lib
   
  -	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
  +	install -d ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/${layout_sysconfdir}
  +	install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/${layout_sysconfdir}/
   
  -	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
  +	install -d ${SDK_OUTPUT}/${sysconfdir}
  +	install -m 0644 ${IPKGCONF_SDK} ${SDK_OUTPUT}/${sysconfdir}/
   
   	# extract and store ipks, pkgdata and shlibs data
   	target_pkgs=`cat ${SDK_OUTPUT}/${prefix}/package-status | grep Package: | cut -f 2 -d ' '`
  
positive.code: 	# gcc-cross-sdk get built :( (30/11/07)
  	ln -sf libgcc_s.so.1 ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libgcc_s.so
  
  	# Remove broken .la files
  	rm -f ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/*.la
  
  	# Generate link for sysroot use
  	# /usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr -> .
  	cd ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}
  	ln -sf . usr 
  
  	# fix pkgconfig data files
  	if [ -e ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/pkgconfig ]; then
  		cd ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/pkgconfig
  		for f in *.pc ; do
  			sed -i 's%=/usr%=${prefix}/${TARGET_SYS}%g' "$f"
  		done
  		for f in *.pc ; do
  			sed -i 's%${STAGING_DIR}%${prefix}%g' "$f"
  		done
  	fi
  	
  
  	# Setup site file for external use
  	siteconfig=${SDK_OUTPUT}/${prefix}/site-config
  
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
  