get rid of $Id$ - it has never helped us and it has broken too many patches ;)
[openwrt-10.03/.git] / package / broadcom-mmc / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=broadcom-mmc
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=1
14
15 include $(INCLUDE_DIR)/package.mk
16
17 MAKEFLAGS_KMOD:= -C "$(LINUX_DIR)" \
18                 CROSS_COMPILE="$(TARGET_CROSS)" \
19                 ARCH="$(LINUX_KARCH)" \
20                 PATH="$(TARGET_PATH)" \
21                 SUBDIRS="$(PKG_BUILD_DIR)"
22
23 define KernelPackage/broadcom-mmc
24   SUBMENU:=Other modules
25   DEPENDS:=@TARGET_brcm_2_4
26   TITLE:=Kernel driver for the Linksys WRT54G MM/SD-Card Mod
27   URL:=http://kiel.kool.dk/
28   FILES:=$(PKG_BUILD_DIR)/mmc.$(LINUX_KMOD_SUFFIX)
29   AUTOLOAD:=$(call AutoLoad,80,mmc)
30 endef 
31
32 define KernelPackage/broadcom-mmc/description
33         Kernel driver for the Linksys WRT54G MM/SD-Card Mod
34 endef
35
36 define Build/Prepare
37         mkdir -p $(PKG_BUILD_DIR)
38         $(CP) ./src/* $(PKG_BUILD_DIR)/
39 endef
40
41 define Build/Compile
42         $(MAKE) $(MAKEFLAGS_KMOD) \
43                 modules
44 endef
45
46 $(eval $(call KernelPackage,broadcom-mmc))