5703db1905b2d04a22a26f2503f49d006cb8a2e1
[openwrt.git] / package / alsa / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include $(TOPDIR)/package/kernel.mk
5
6 PKG_NAME:=alsa-driver
7 PKG_VERSION:=1.0.11
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=57534e4297cd683371402220e3753885
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:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16
17 include $(TOPDIR)/package/rules.mk
18
19 ifeq ($(LINUX_KARCH),i386)
20 KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-i386/mach-generic -I$(LINUX_DIR)/include/asm-i386/mach-default
21 KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time
22 endif
23 ifeq ($(LINUX_KARCH),mips)
24 KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-mips/mach-generic
25 KERNEL_C_OPTS:= -Os -G 0 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
26 endif
27
28 define Build/Configure
29 (cd $(PKG_BUILD_DIR); \
30 CFLAGS="$(KERNEL_C_INCS)" \
31 ./configure \
32 --with-build=$(LINUX_DIR) \
33 --with-kernel=$(LINUX_DIR) \
34 --with-cross=$(KERNEL_CROSS) \
35 --with-redhat=no \
36 --with-suse=no \
37 --with-oss=yes \
38 --with-isapnp=no \
39 --with-sequencer=no \
40 --with-cards=usb-audio \
41 );
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 ARCH="$(LINUX_KARCH)" \
47 CROSS_COMPILE="$(TARGET_CROSS)" \
48 c_opts="$(KERNEL_C_OPTS)" \
49 all
50 endef
51
52 define Package/kmod-alsa
53 SECTION:=drivers
54 CATEGORY:=Drivers
55 DEPENDS:=@PCI_SUPPORT
56 TITLE:=Advanced Linux Sound Architecture
57 DESCRIPTION:=Advanced Linux Sound Architecture
58 URL:=http://alsa-project.org/
59 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
60 endef
61
62 define Package/kmod-alsa/install
63 install -d -m0755 $(1)/etc/modules.d
64 install -m0644 ./files/alsa.modules $(1)/etc/modules.d/70-alsa
65 install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
66 install -m0644 $(PKG_BUILD_DIR)/modules/*.$(LINUX_KMOD_SUFFIX) \
67 $(1)/lib/modules/$(LINUX_VERSION)/
68 endef
69
70 $(eval $(call BuildPackage,kmod-alsa))
This page took 0.042967 seconds and 3 git commands to generate.