anchor.diff:  IWMMXT_FEED = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', 'iwmmxt', '',d)}"
   
   do_compile() {
  -        mkdir -p ${S}/${sysconfdir}/opkg
  -	for feed in base debug perl python gstreamer ; do
  -          echo "src/gz ${feed} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
  +	mkdir -p ${S}/${sysconfdir}/opkg
  +
  +	rm ${S}/${sysconfdir}/opkg/arch.conf || true
  +	ipkgarchs="${PACKAGE_ARCHS}"
  +	priority=1
  +	for arch in $ipkgarchs; do 
  +		echo "arch $arch $priority" >> ${S}/${sysconfdir}/opkg/arch.conf
  +		priority=$(expr $priority + 5)
   	done
   
  -        echo "src/gz ${MACHINE_ARCH} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/machine/${MACHINE_ARCH}" >  ${S}/${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf
  +	for feed in base debug perl python gstreamer ; do
  +		  echo "src/gz ${feed} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
  +	done
  +
  +		echo "src/gz ${MACHINE_ARCH} ${ANGSTROM_URI}/${FEED_BASEPATH}${FEED_ARCH}/machine/${MACHINE_ARCH}" >  ${S}/${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf
   	echo "src/gz no-arch ${ANGSTROM_URI}/${FEED_BASEPATH}/all" > ${S}/${sysconfdir}/opkg/noarch-feed.conf
  -        
  +		
   	# iwmmxt is a special case, add the iwmmxt feed for machine that have 'iwmmxt' in MACHINE_FEATURES
  -        if [ "${IWMMXT_FEED}" = "iwmmxt" ] ; then
  +		if [ "${IWMMXT_FEED}" = "iwmmxt" ] ; then
   	  echo "src/gz iwmmxt ${ANGSTROM_URI}/${FEED_BASEPATH}iwmmxt/base" > ${S}/${sysconfdir}/opkg/iwmmxt-feed.conf
   	fi  
   
  
positive.code: }
  
  FILES_${PN} = "${sysconfdir}/opkg/base-feed.conf \
                      ${sysconfdir}/opkg/debug-feed.conf \
                      ${sysconfdir}/opkg/perl-feed.conf \
                      ${sysconfdir}/opkg/python-feed.conf \
                      ${sysconfdir}/opkg/gstreamer-feed.conf \
                      ${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
                      ${sysconfdir}/opkg/noarch-feed.conf \
                      ${sysconfdir}/opkg/iwmmxt-feed.conf \
                  "
  
  CONFFILES_${PN} += "${sysconfdir}/opkg/base-feed.conf \
                      ${sysconfdir}/opkg/debug-feed.conf \
                      ${sysconfdir}/opkg/perl-feed.conf \
                      ${sysconfdir}/opkg/python-feed.conf \
                      ${sysconfdir}/opkg/gstreamer-feed.conf \
                      ${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
                      ${sysconfdir}/opkg/noarch-feed.conf \
                     "
  
  python populate_packages_prepend () {
  	etcdir = bb.data.expand('${sysconfdir}/opkg', d)
  
negative.code: DESCRIPTION = "Configuration files for online package repositories aka feeds"
  
  RRECOMMENDS_${PN} += "opkg-nogpg"
  
  #PV = "${DISTRO_VERSION}"
  PR = "r8"
  PACKAGE_ARCH = "${MACHINE_ARCH}"
  
  FEED_BASEPATH ?= "unstable/feed/"
  