3 include $(TOPDIR
)/rules.mk
9 PKG_MD5SUM
:=0fb6b4163c3ed8f4930f00791b8a25c1
11 PKG_SOURCE_URL
:=ftp
://ftp.alsa-project.org
/pub
/driver
/
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 KERNEL_DIR
:=$(LINUX_DIR
)
21 include $(TOPDIR
)/package
/rules.mk
23 ifeq ($(LINUX_KARCH
),i386
)
24 KERNEL_C_OPTS
:= -Os
-mpreferred-stack-boundary
=2 -march
=i486
-fno-unit-at-a-time
26 ifeq ($(LINUX_KARCH
),mips
)
27 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
30 $(eval
$(call PKG_template
,KMOD_ALSA
,kmod-alsa
,$(LINUX_VERSION
)$(BOARD
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
),kernel-
$(LINUX_VERSION
)-$(BOARD
) ($(KERNEL_RELEASE
))))
32 $(PKG_BUILD_DIR
)/.configured
:
33 (cd
$(PKG_BUILD_DIR
); \
35 --with-kernel
=$(KERNEL_DIR
) \
36 --with-cross
=$(KERNEL_CROSS
) \
40 --with-cards
=usb-audio \
44 $(PKG_BUILD_DIR
)/.built
:
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 c_opts
="$(KERNEL_C_OPTS)"
50 install -d
-m0755
$(IDIR_KMOD_ALSA
)/etc
/modules.d
51 install -m0644 .
/files
/alsa.modules
$(IDIR_KMOD_ALSA
)/etc
/modules.d
/70-alsa
52 install -d
-m0755
$(IDIR_KMOD_ALSA
)/lib
/modules
/$(LINUX_VERSION
)
53 install -m0644
$(PKG_BUILD_DIR
)/modules
/*.o \
54 $(IDIR_KMOD_ALSA
)/lib
/modules
/$(LINUX_VERSION
)/
55 $(IPKG_BUILD
) $(IDIR_KMOD_ALSA
) $(PACKAGE_DIR
)