81fbaddb9aaa3376b25bb7621de7d360dcdf4063
[openwrt/svn-archive/archive.git] / package / fonera-mp3-drv / Makefile
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 # $Id: Makefile 6501 2007-03-04 04:41:46Z pavlov $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=fonera-mp3-driver
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define KernelPackage/fonera-mp3-driver
20 SUBMENU:=Other modules
21 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(LINUX_RELEASE)
22 DEPENDS:=@LINUX_2_6_ATHEROS
23 TITLE:=Fonera-MP3 driver (VS1011X)
24 DESCRIPTION:=driver for a vs1011X attached to a fonera
25 FILES:=$(PKG_BUILD_DIR)/mp3_drv.$(LINUX_KMOD_SUFFIX)
26 AUTOLOAD:=$(call AutoLoad,25,mp3-drv)
27 endef
28
29 define Build/Prepare
30 $(call Build/Prepare/Default)
31 $(CP) -r src/* $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/Compile
35 $(MAKE) -C "$(LINUX_DIR)" \
36 CROSS_COMPILE="$(TARGET_CROSS)" \
37 ARCH="$(LINUX_KARCH)" V="$(V)" \
38 SUBDIRS="$(PKG_BUILD_DIR)" \
39 KERNELVERSION="$(KERNEL)" \
40 KERNEL_SOURCES="$(LINUX_DIR)" \
41 KDIR="$(LINUX_DIR)"
42 endef
43
44 $(eval $(call KernelPackage,fonera-mp3-driver))