2005-09-29 10:18:31 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include ../../rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=alsa-driver
|
2006-03-28 20:38:01 +03:00
|
|
|
PKG_VERSION:=1.0.11rc4
|
2005-09-29 10:18:31 +03:00
|
|
|
PKG_RELEASE:=1
|
2006-03-28 20:38:01 +03:00
|
|
|
PKG_MD5SUM:=8e5794026082a964b09b46f9d881e6ec
|
2005-09-29 10:18:31 +03:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/driver/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
2005-10-03 05:16:27 +03:00
|
|
|
ifeq ($(LINUX_KARCH),i386)
|
2006-01-17 15:26:00 +02:00
|
|
|
KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-i386/mach-generic -I$(LINUX_DIR)/include/asm-i386/mach-default
|
2005-10-03 05:16:27 +03:00
|
|
|
KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time
|
|
|
|
endif
|
|
|
|
ifeq ($(LINUX_KARCH),mips)
|
2006-01-10 21:43:00 +02:00
|
|
|
KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-mips/mach-generic
|
2005-10-03 05:16:27 +03:00
|
|
|
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
|
|
|
|
endif
|
|
|
|
|
2006-01-13 19:33:38 +02:00
|
|
|
$(eval $(call PKG_template,KMOD_ALSA,kmod-alsa,$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE))))
|
2005-09-29 10:18:31 +03:00
|
|
|
|
2005-10-22 16:10:06 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
2005-09-29 10:18:31 +03:00
|
|
|
(cd $(PKG_BUILD_DIR); \
|
2005-11-07 00:54:25 +02:00
|
|
|
CFLAGS="$(KERNEL_C_INCS)" \
|
2005-09-29 10:18:31 +03:00
|
|
|
./configure \
|
2006-01-10 21:43:00 +02:00
|
|
|
--with-build=$(LINUX_DIR) \
|
|
|
|
--with-kernel=$(LINUX_DIR) \
|
2005-09-29 10:18:31 +03:00
|
|
|
--with-cross=$(KERNEL_CROSS) \
|
2005-11-07 00:54:25 +02:00
|
|
|
--with-redhat=no \
|
|
|
|
--with-suse=no \
|
2005-09-29 10:18:31 +03:00
|
|
|
--with-oss=yes \
|
|
|
|
--with-isapnp=no \
|
|
|
|
--with-sequencer=no \
|
|
|
|
--with-cards=usb-audio \
|
|
|
|
);
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-10-03 05:16:27 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2005-11-01 19:30:26 +02:00
|
|
|
ARCH="$(LINUX_KARCH)" \
|
2005-11-02 04:42:06 +02:00
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
c_opts="$(KERNEL_C_OPTS)" \
|
|
|
|
all
|
2005-09-29 10:18:31 +03:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(IPKG_KMOD_ALSA):
|
|
|
|
install -d -m0755 $(IDIR_KMOD_ALSA)/etc/modules.d
|
|
|
|
install -m0644 ./files/alsa.modules $(IDIR_KMOD_ALSA)/etc/modules.d/70-alsa
|
|
|
|
install -d -m0755 $(IDIR_KMOD_ALSA)/lib/modules/$(LINUX_VERSION)
|
2005-11-01 19:30:26 +02:00
|
|
|
install -m0644 $(PKG_BUILD_DIR)/modules/*.$(LINUX_KMOD_SUFFIX) \
|
2005-09-29 10:18:31 +03:00
|
|
|
$(IDIR_KMOD_ALSA)/lib/modules/$(LINUX_VERSION)/
|
|
|
|
$(IPKG_BUILD) $(IDIR_KMOD_ALSA) $(PACKAGE_DIR)
|