anchor.diff:  	# gcc-cross-sdk get built :( (30/11/07)
   	ln -sf libgcc_s.so.1 ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libgcc_s.so
   
  -	# remove unwanted executables
  -	rm -rf ${SDK_OUTPUT}/${prefix}/sbin ${SDK_OUTPUT}/${prefix}/etc
  +	# Remove broken .la files
  +	rm -f ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/*.la
   
  -	# 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
  
positive.code: DESCRIPTION = "Meta package for building a installable toolchain"
  LICENSE = "MIT"
  DEPENDS = "ipkg-native ipkg-utils-native fakeroot-native sed-native"
  PR = "r2"
  
  inherit sdk meta
  
  SDK_DIR = "${WORKDIR}/sdk"
  SDK_OUTPUT = "${SDK_DIR}/image"
  SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
  SDK_SUFFIX = "toolchain"
  
  FEED_ARCH ?= "${TARGET_ARCH}"
  
  IPKG_HOST = "ipkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}"
  IPKG_TARGET = "ipkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${prefix}"
  
  TOOLCHAIN_HOST_TASK ?= "task-sdk-host"
  TOOLCHAIN_TARGET_TASK ?= "task-sdk-bare"
  
  RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}"
  
  
negative.code: 		done
  	fi
  	
  
  	# Setup site file for external use
  	siteconfig=${SDK_OUTPUT}/${prefix}/site-config
  	touch $siteconfig
  	for sitefile in ${CONFIG_SITE} ; do
  		cat $sitefile >> $siteconfig
  	done
  
  	# Create environment setup script
  	script=${SDK_OUTPUT}/${prefix}/environment-setup
  	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}/lib/pkgconfig' >> $script
  	echo 'export CONFIG_SITE=${prefix}/site-config' >> $script
  
  	# Add version information
  	versionfile=${SDK_OUTPUT}/${prefix}/version
  	touch $versionfile
  	echo 'Distro: ${DISTRO}' >> $versionfile
  	echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile
  	echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile
  	echo 'Timestamp: ${DATETIME}' >> $versionfile
  
  	# Package it up
  	mkdir -p ${SDK_DEPLOY}
  	cd ${SDK_OUTPUT}
  	fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .
  	cd ${SDK_OUTPUT2}
  	fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}-extras.tar.bz2 .
  }
  
  do_populate_sdk[nostamp] = "1"
  