2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
13 PKG_VERSION
:=1.0.14rc1
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=ftp
://ftp.alsa-project.org
/pub
/driver
/
18 PKG_MD5SUM
:=4cff99be4b225e96663fbd61cabe3182
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define KernelPackage
/alsa
26 SUBMENU
:=Other modules
27 DEPENDS
:=@USB_SUPPORT @LINUX_2_4
28 TITLE
:=Advanced Linux Sound Architecture
30 FILES
:=$(PKG_BUILD_DIR
)/modules
/*.
$(LINUX_KMOD_SUFFIX
)
31 AUTOLOAD
=$(call AutoLoad
,70,$(shell cat .
/files
/alsa.modules
))
35 ifeq ($(LINUX_KARCH
),i386
)
36 KERNEL_C_OPTS
:= -Os
-mpreferred-stack-boundary
=2 -march
=i486
-fno-unit-at-a-time
38 ifeq ($(LINUX_KARCH
),mips
)
39 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
42 ifeq ($(LINUX_KARCH
),i386
)
43 KERNEL_C_INCS
:= -I
$(LINUX_DIR
)/include/asm-i386
/mach-generic
-I
$(LINUX_DIR
)/include/asm-i386
/mach-default
45 ifeq ($(LINUX_KARCH
),mips
)
46 KERNEL_C_INCS
:= -I
$(LINUX_DIR
)/include/asm-mips
/mach-generic
49 define Build
/Configure
50 (cd
$(PKG_BUILD_DIR
); \
51 CFLAGS
="$(KERNEL_C_INCS)" \
53 --with-build
="$(LINUX_DIR)" \
54 --with-kernel
="$(LINUX_DIR)" \
55 --with-cross
="$(KERNEL_CROSS)" \
61 --with-cards
=usb-audio \
66 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
67 ARCH
="$(LINUX_KARCH)" \
68 CROSS_COMPILE
="$(TARGET_CROSS)" \
69 c_opts
="$(KERNEL_C_OPTS)" \
74 $(eval
$(call KernelPackage
,alsa
))