anchor.diff:  
   	# add missing link to libgcc_s.so.1
   	# libgcc-dev should be responsible for that, but it's not getting built
  -	# RP: it gets smashed up depending on the order that gcc, gcc-cross and
  +	# RP: it gets smashed up depending on the order that gcc, gcc-cross and 
   	# gcc-cross-sdk get built :( (30/11/07)
   	ln -sf libgcc_s.so.1 ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libgcc_s.so
   
  
positive.code: 	for sitefile in ${CONFIG_SITE} ; do
  		cat $sitefile >> $siteconfig
  	done
  }
  
  do_package_sdk() {
  	# package it up
  	mkdir -p ${SDK_DEPLOY}
  	cd ${SDK_OUTPUT}
  	fakeroot tar cfj ${SDK_DEPLOY}/${SDK_SYS}-sdk-${DISTRO}-${DISTRO_VERSION}-${FEED_ARCH}-${TARGET_OS}.tar.bz2 .${prefix}
  	rm -f ${SDK_DEPLOY}/${SDK_SYS}-sdk-${DISTRO}-${DISTRO_VERSION}-${FEED_ARCH}-${TARGET_OS}.zip
  	zip -r -D ${SDK_DEPLOY}/${SDK_SYS}-sdk-${DISTRO}-${DISTRO_VERSION}-${FEED_ARCH}-${TARGET_OS}.zip .${prefix}
  }
  
  do_populate_sdk[nostamp] = "1"
  do_populate_sdk[recrdeptask] = "do_package_write"
  addtask populate_sdk before do_build after do_install
  
  do_package_sdk[nostamp] = "1"
  do_package_sdk[recrdeptask] = "do_populate_sdk"
  addtask package_sdk before do_build after do_populate_sdk
  
negative.code: 				orig_pkg=`ipkg-list-fields $pkgnames | grep OE: | cut -d ' ' -f2`
  				pkg_subdir=$arch${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]}
  				mkdir -p ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime
  				cp ${STAGING_DIR}/pkgdata/$pkg_subdir/$orig_pkg ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/
  				subpkgs=`cat ${STAGING_DIR}/pkgdata/$pkg_subdir/$orig_pkg | grep PACKAGES: | cut -b 10-`
  				for subpkg in $subpkgs; do
  					cp ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime/
  					if [ -e ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ];then
  						cp ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime/
  					fi
  					if [ -e ${STAGING_DIR_TARGET}/shlibs/$subpkg.list ]; then
  						cp ${STAGING_DIR_TARGET}/shlibs/$subpkg.* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/shlibs/
  