add alsa kernel driver (thanks to David Collet)
[openwrt.git] / target / linux / package / alsa / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME:=alsa-driver
7 PKG_VERSION:=1.0.10rc1
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=0fb6b4163c3ed8f4930f00791b8a25c1
10
11 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/driver/
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_CAT:=bzcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16
17 ifeq ($(KERNEL_DIR),)
18 KERNEL_DIR:=$(LINUX_DIR)
19 endif
20
21 include $(TOPDIR)/package/rules.mk
22
23 $(eval $(call PKG_template,KMOD_ALSA,kmod-alsa,$(LINUX_VERSION)$(BOARD)+$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel-$(LINUX_VERSION)-$(BOARD) ($(KERNEL_RELEASE))))
24
25 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
26 (cd $(PKG_BUILD_DIR); \
27 ./configure \
28 --with-kernel=$(KERNEL_DIR) \
29 --with-cross=$(KERNEL_CROSS) \
30 --with-oss=yes \
31 --with-isapnp=no \
32 --with-sequencer=no \
33 --with-cards=usb-audio \
34 );
35 touch $@
36
37 $(PKG_BUILD_DIR)/.built:
38 $(MAKE) -C $(PKG_BUILD_DIR)
39 touch $@
40
41 $(IPKG_KMOD_ALSA):
42 install -d -m0755 $(IDIR_KMOD_ALSA)/etc/modules.d
43 install -m0644 ./files/alsa.modules $(IDIR_KMOD_ALSA)/etc/modules.d/70-alsa
44 install -d -m0755 $(IDIR_KMOD_ALSA)/lib/modules/$(LINUX_VERSION)
45 install -m0644 $(PKG_BUILD_DIR)/modules/*.o \
46 $(IDIR_KMOD_ALSA)/lib/modules/$(LINUX_VERSION)/
47 $(IPKG_BUILD) $(IDIR_KMOD_ALSA) $(PACKAGE_DIR)
This page took 0.046115 seconds and 5 git commands to generate.