anchor.diff:  DESCRIPTION = "Alsa Drivers"
   MAINTAINER = "Pigi"
  -SECTION = "console/utils"
  +SECTION = "base"
   LICENSE = "GPL"
  -#DEPENDS = "alsa-lib"
  -PR = "r1"
  -
  -
  +PR = "r2"
   
   SRC_URI = "ftp://ftp.handhelds.org/packages/alsa-driver/alsa-driver-${PV}.tar.gz \
   	file://sound.p.patch;patch=1 \
   	file://sa11xx.patch;patch=1 \
  -	file://adriver.h.patch;patch=1 "
  +	file://adriver.h.patch;patch=1"
   
  -#inherit autotools
  -#inherit module
  +inherit autotools module
   
  -#EXTRA_OECONF = "  --with-isapnp=no "
  -EXTRA_OECONF=" --with-sequencer=no --with-isapnp=no --with-oss=yes  --with-cards=${cards} --with-kernel=${STAGING_KERNEL_DIR} --with-kernel-version=${KERNEL_VERSION} --host=arm-linux"
  -#EXTRA_OECONF = " /ext/ambient/tmp/work/handhelds-sa-2.4.19-rmk6-pxa1-hh37.4-r5/kernel/ "
  +EXTRA_OECONF=" --with-sequencer=no \
  +	--with-isapnp=no \
  +	--with-oss=yes \
  +	--with-kernel=${STAGING_KERNEL_DIR} \
  +	--with-kernel-version=${KERNEL_VERSION}"
   
   
   do_configure() {
  -
  -VERS=`grep "^VERSION =" ${STAGING_KERNEL_DIR}/Makefile | awk '{print $3}'`
  -PATLEV=`grep "^PATCHLEVEL =" ${STAGING_KERNEL_DIR}/Makefile | awk '{print $3}'`
  -SBLEV=`grep "^SUBLEVEL =" ${STAGING_KERNEL_DIR}/Makefile | awk '{print $3}'`
  -EXVER=`grep "^EXTRAVERSION =" ${STAGING_KERNEL_DIR}/Makefile | awk '{print $3}'`
  -
  -KERNEL_VERSION=$VERS.$PATLEV.$SBLEV$EXVER
   
   cards=
   if egrep "CONFIG_SA1100_H3[168]00=y" "${STAGING_KERNEL_DIR}/.config" ; then
  
positive.code: fi
  cards="$cards,bluez-sco,pdaudiocf"
  
     configure ${EXTRA_OECONF}
     #./config.ipaq ${STAGING_KERNEL_DIR}
  
  }
  
  
  
  do_install() {
  
negative.code:         do rm -f ${D}/lib/modules/*/misc/$i; 
        done
  
        if [ -d ${D}${sysconfdir}/modutils/ ] ; then 
           rm -r ${D}${sysconfdir}/modutils/ ;
        fi
        mkdir -p ${D}${sysconfdir}/modutils/
        cp familiar/alsa-modules-${familiar_arch} ${D}${sysconfdir}/modutils/
  }
  
  