a96e4f0f619d463058626bb65b14141c4cfab23a
[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 PKG_CAT:=bzcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define KernelPackage/alsa
24 SUBMENU:=Other modules
25 DEPENDS:=@USB_SUPPORT @LINUX_2_4
26 TITLE:=Advanced Linux Sound Architecture
27 DESCRIPTION:=
28 FILES:=$(PKG_BUILD_DIR)/modules/*.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD=$(call AutoLoad,70,$(shell cat ./files/alsa.modules))
30 endef
31
32 ifeq ($(KERNEL),2.4)
33 ifeq ($(LINUX_KARCH),i386)
34 KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time
35 endif
36 ifeq ($(LINUX_KARCH),mips)
37 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
38 endif
39 endif
40 ifeq ($(LINUX_KARCH),i386)
41 KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-i386/mach-generic -I$(LINUX_DIR)/include/asm-i386/mach-default
42 endif
43 ifeq ($(LINUX_KARCH),mips)
44 KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-mips/mach-generic
45 endif
46
47 CONFIGURE_VARS:= \
48 CFLAGS="$(KERNEL_C_INCS)"
49
50 CONFIGURE_ARGS:= \
51 --with-build="$(LINUX_DIR)" \
52 --with-kernel="$(LINUX_DIR)" \
53 --with-cross="$(KERNEL_CROSS)" \
54 --with-redhat=no \
55 --with-suse=no \
56 --with-oss=yes \
57 --with-isapnp=no \
58 --with-sequencer=no \
59 --with-cards=usb-audio
60
61 define Build/Compile
62 $(MAKE) -C $(PKG_BUILD_DIR) \
63 ARCH="$(LINUX_KARCH)" \
64 CROSS_COMPILE="$(TARGET_CROSS)" \
65 c_opts="$(KERNEL_C_OPTS)" \
66 CP="$(CP)" \
67 all
68 endef
69
70 $(eval $(call KernelPackage,alsa))
This page took 0.035925 seconds and 3 git commands to generate.