[package] add pcmcia hermes module, patch from Guillaume Lecerf
[openwrt.git] / package / broadcom-sdhc / Makefile
1 #
2 # High Capacity Media card driver. Handles high capacity and standard multimedia
3 # and secure digital cards
4 #
5 # This makefile is compatible for building under the kamikaze 8.09 branch
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=broadcom-sdhc
12 PKG_VERSION:=2.0.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.4mul8.ca/openwrt/source/broadcom-sdhc-2.0.2
17 PKG_MD5SUM:=6238463bce27e64829eda1d88f1a7edd
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define KernelPackage/broadcom-sdhc
25 SUBMENU:=Other modules
26 DEPENDS:=@TARGET_brcm_2_4
27 TITLE:= MMHC/SDHC card driver - Linksys WRT54G/GS/GL
28 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_VERSION)-$(PKG_RELEASE)
29 FILES:=\
30 $(PKG_BUILD_DIR)/sdhc.$(LINUX_KMOD_SUFFIX)\
31 $(PKG_BUILD_DIR)/sdhcd.$(LINUX_KMOD_SUFFIX)
32 URL:=http://www.4mul8.ca/openwrt
33 endef
34
35 define KernelPackage/broadcom-sdhc/description
36 Driver for Linksys WRT54G/GS/GL MM/SD card modification.
37 Supports standard and high capacity cards.
38 May work for other broadcom based routers (Buffalo, etc).
39 endef
40
41 define Build/Compile
42 $(MAKE) -C "$(LINUX_DIR)" \
43 CROSS_COMPILE="$(TARGET_CROSS)" \
44 ARCH="$(LINUX_KARCH)" \
45 SUBDIRS="$(PKG_BUILD_DIR)" \
46 modules
47 endef
48
49 define KernelPackage/broadcom-sdhc/install
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sdcard $(1)/etc/init.d/sdcard
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/sdcard.conf $(1)/etc/sdcard.conf
53 $(CP) $(PKG_BUILD_DIR)/sdhc.o $(1)/lib/modules/$(LINUX_VERSION)/
54 $(CP) $(PKG_BUILD_DIR)/sdhcd.o $(1)/lib/modules/$(LINUX_VERSION)/
55 endef
56
57 $(eval $(call KernelPackage,broadcom-sdhc))
This page took 0.058014 seconds and 5 git commands to generate.