source: packages/sound/alsa/Makefile @ 26135

Last change on this file since 26135 was 26135, checked in by nbd, 5 years ago

alsa-driver: adding the audio group is no longer necessary

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=alsa-driver
12PKG_VERSION:=1.0.14rc1
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/driver/
17PKG_MD5SUM:=4cff99be4b225e96663fbd61cabe3182
18
19include $(INCLUDE_DIR)/package.mk
20
21define KernelPackage/alsa
22  SUBMENU:=Other modules
23  DEPENDS:=@USB_SUPPORT @LINUX_2_4
24  TITLE:=Advanced Linux Sound Architecture
25  FILES:=$(PKG_BUILD_DIR)/modules/*.$(LINUX_KMOD_SUFFIX)
26  AUTOLOAD=$(call AutoLoad,70,$(shell cat ./files/alsa.modules))
27endef
28
29ifeq ($(KERNEL),2.4)
30  ifeq ($(LINUX_KARCH),i386)
31    KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time
32  endif
33  ifeq ($(LINUX_KARCH),mips)
34    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
35  endif
36endif
37ifeq ($(LINUX_KARCH),i386)
38  KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-i386/mach-generic -I$(LINUX_DIR)/include/asm-i386/mach-default
39endif
40ifeq ($(LINUX_KARCH),mips)
41  KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-mips/mach-generic
42endif
43
44CONFIGURE_VARS:= \
45        CFLAGS="$(KERNEL_C_INCS)"
46
47CONFIGURE_ARGS:= \
48        --with-build="$(LINUX_DIR)" \
49        --with-kernel="$(LINUX_DIR)" \
50        --with-cross="$(KERNEL_CROSS)" \
51        --with-redhat=no \
52        --with-suse=no \
53        --with-oss=yes \
54        --with-isapnp=no \
55        --with-sequencer=no \
56        --with-cards=usb-audio
57
58define Build/Compile
59        $(MAKE) -C $(PKG_BUILD_DIR) \
60                ARCH="$(LINUX_KARCH)" \
61                CROSS_COMPILE="$(TARGET_CROSS)" \
62                c_opts="$(KERNEL_C_OPTS)" \
63                CP="$(CP)" \
64                all
65endef
66
67$(eval $(call KernelPackage,alsa))
Note: See TracBrowser for help on using the repository browser.