use rc.common for usb init script
[openwrt.git] / package / alsa / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=alsa-driver
13 PKG_VERSION:=1.0.14rc1
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/driver/
18 PKG_MD5SUM:=4cff99be4b225e96663fbd61cabe3182
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define KernelPackage/alsa
23 SUBMENU:=Other modules
24 DEPENDS:=@USB_SUPPORT @LINUX_2_4
25 TITLE:=Advanced Linux Sound Architecture
26 DESCRIPTION:=
27 FILES:=$(PKG_BUILD_DIR)/modules/*.$(LINUX_KMOD_SUFFIX)
28 AUTOLOAD=$(call AutoLoad,70,$(shell cat ./files/alsa.modules))
29 endef
30
31 ifeq ($(KERNEL),2.4)
32 ifeq ($(LINUX_KARCH),i386)
33 KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time
34 endif
35 ifeq ($(LINUX_KARCH),mips)
36 KERNEL_C_OPTS:= -Os -G 0 -mlong-calls -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
37 endif
38 endif
39 ifeq ($(LINUX_KARCH),i386)
40 KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-i386/mach-generic -I$(LINUX_DIR)/include/asm-i386/mach-default
41 endif
42 ifeq ($(LINUX_KARCH),mips)
43 KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-mips/mach-generic
44 endif
45
46 CONFIGURE_VARS:= \
47 CFLAGS="$(KERNEL_C_INCS)"
48
49 CONFIGURE_ARGS:= \
50 --with-build="$(LINUX_DIR)" \
51 --with-kernel="$(LINUX_DIR)" \
52 --with-cross="$(KERNEL_CROSS)" \
53 --with-redhat=no \
54 --with-suse=no \
55 --with-oss=yes \
56 --with-isapnp=no \
57 --with-sequencer=no \
58 --with-cards=usb-audio
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 ARCH="$(LINUX_KARCH)" \
63 CROSS_COMPILE="$(TARGET_CROSS)" \
64 c_opts="$(KERNEL_C_OPTS)" \
65 CP="$(CP)" \
66 all
67 endef
68
69 $(eval $(call KernelPackage,alsa))
This page took 0.045798 seconds and 5 git commands to generate.