4 COMPATIBLE_MACHINE = "(h3600|h3900)"
6 DESCRIPTION = "Alsa Drivers"
11 DEPENDS += "fakeroot-native"
13 SRC_URI = "ftp://ftp.handhelds.org/packages/alsa-driver/alsa-driver-${PV}.tar.gz \
14 file://sound.p.patch;patch=1 \
15 file://h5400.patch;patch=1 \
16 file://sa11xx.patch;patch=1 \
17 file://adriver.h.patch;patch=1"
19 inherit autotools module
21 EXTRA_OECONF = "--with-sequencer=yes \
24 --with-kernel=${STAGING_KERNEL_DIR} \
25 --with-kernel-version=${KERNEL_VERSION}"
27 PACKAGES =+ "${PN}-midi ${PN}-misc"
28 FILES_${PN} = "/lib/modules/*/misc/snd* \
29 ${sysconfdir}/modutils/*"
30 midi_modules = "snd-seq-midi-emul.o \
31 snd-seq-midi-event.o \
35 FILES_${PN}-midi = "${@' '.join(map ((lambda x: '/lib/modules/*/misc/%s' % x), bb.data.getVar('midi_modules', d).split()))}"
36 misc_modules = "snd-gus-synth.o \
43 FILES_${PN}-misc = "${@' '.join(map ((lambda x: '/lib/modules/*/misc/%s' % x), bb.data.getVar('misc_modules', d).split()))}"
45 # put in-kernel headers first in the include search path.
46 # without this all configure checks fail
47 CFLAGS =+ "-I${STAGING_KERNEL_DIR}/include"
52 if egrep "CONFIG_SA1100_H3[168]00=y" "${STAGING_KERNEL_DIR}/.config" ; then
53 cards="$cards,sa11xx-uda1341"
56 if grep "CONFIG_ARCH_H3900=y" "${STAGING_KERNEL_DIR}/.config" ; then
57 cards="$cards,pxa-uda1380,h5400-ak4535"
60 cards="$cards,bluez-sco,pdaudiocf"
62 oe_runconf --with-cards=${cards}
68 if egrep "CONFIG_SA1100_H3[168]00=y" "${STAGING_KERNEL_DIR}/.config" ; then
71 if grep "CONFIG_ARCH_H3900=y" "${STAGING_KERNEL_DIR}/.config" ; then
75 fakeroot make -k NODEPMOD=yes DESTDIR=${D} install;
77 if [ -d ${D}${sysconfdir}/modutils/ ] ; then
78 rm -r ${D}${sysconfdir}/modutils/ ;
80 mkdir -p ${D}${sysconfdir}/modutils/
81 cp familiar/alsa-modules-${familiar_arch} ${D}${sysconfdir}/modutils/