1 DESCRIPTION = "Alsa Drivers"
2 MAINTAINER = "Rene Wagner <rw@handhelds.org>"
7 DEPENDS += "fakeroot-native virtual/kernel"
9 SRC_URI = "ftp://ftp.handhelds.org/packages/alsa-driver/alsa-driver-${PV}.tar.gz \
10 file://sound.p.patch;patch=1 \
11 file://h5400.patch;patch=1 \
12 file://sa11xx.patch;patch=1 \
13 file://adriver.h.patch;patch=1"
15 inherit autotools module
17 # avoid miscompilation
18 KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_ARCH}"
20 EXTRA_OECONF = "--with-sequencer=yes \
23 --with-kernel=${STAGING_KERNEL_DIR} \
24 --with-kernel-version=${KERNEL_VERSION}"
26 PACKAGES =+ "${PN}-midi ${PN}-misc"
27 FILES_${PN} = "/lib/modules/*/misc/snd* \
28 ${sysconfdir}/modutils/*"
29 midi_modules = "snd-seq-midi-emul.o \
30 snd-seq-midi-event.o \
34 FILES_${PN}-midi = "${@' '.join(map ((lambda x: '/lib/modules/*/misc/%s' % x), bb.data.getVar('midi_modules', d).split()))}"
35 misc_modules = "snd-gus-synth.o \
42 FILES_${PN}-misc = "${@' '.join(map ((lambda x: '/lib/modules/*/misc/%s' % x), bb.data.getVar('misc_modules', d).split()))}"
44 # put in-kernel headers first in the include search path.
45 # without this all configure checks fail
46 CFLAGS =+ "-I${STAGING_KERNEL_DIR}/include"
51 if egrep "CONFIG_SA1100_H3[168]00=y" "${STAGING_KERNEL_DIR}/.config" ; then
52 cards="$cards,sa11xx-uda1341"
55 if grep "CONFIG_ARCH_H3900=y" "${STAGING_KERNEL_DIR}/.config" ; then
56 cards="$cards,pxa-uda1380,h5400-ak4535"
59 cards="$cards,bluez-sco,pdaudiocf"
61 oe_runconf --with-cards=${cards}
67 if egrep "CONFIG_SA1100_H3[168]00=y" "${STAGING_KERNEL_DIR}/.config" ; then
70 if grep "CONFIG_ARCH_H3900=y" "${STAGING_KERNEL_DIR}/.config" ; then
74 fakeroot make -k NODEPMOD=yes DESTDIR=${D} install;
76 if [ -d ${D}${sysconfdir}/modutils/ ] ; then
77 rm -r ${D}${sysconfdir}/modutils/ ;
79 mkdir -p ${D}${sysconfdir}/modutils/
80 cp familiar/alsa-modules-${familiar_arch} ${D}${sysconfdir}/modutils/