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.
7 # $Id: Makefile 6501 2007-03-04 04:41:46Z pavlov $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=fonera-mp3-driver
15 PKG_BUILD_DIR
:= $(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 define KernelPackage
/fonera-mp3-driver
20 SUBMENU
:=Other modules
21 DEPENDS
:=@LINUX_2_6_ATHEROS
22 TITLE
:=Fonera-MP3 driver
(VS1011X
)
23 DESCRIPTION
:=driver for a vs1011X attached to a fonera
24 FILES
:=$(PKG_BUILD_DIR
)/mp3_drv.
$(LINUX_KMOD_SUFFIX
)
25 AUTOLOAD
:=$(call AutoLoad
,25,mp3-drv
)
29 $(call Build
/Prepare
/Default
)
30 $(CP
) -r src
/* $(PKG_BUILD_DIR
)/
34 $(MAKE
) -C
"$(LINUX_DIR)" \
35 CROSS_COMPILE
="$(TARGET_CROSS)" \
36 ARCH
="$(LINUX_KARCH)" V
="$(V)" \
37 SUBDIRS
="$(PKG_BUILD_DIR)" \
38 KERNELVERSION
="$(KERNEL)" \
39 KERNEL_SOURCES
="$(LINUX_DIR)" \
43 $(eval
$(call KernelPackage
,fonera-mp3-driver
))