2 # High Capacity Media card driver. Handles high capacity and standard multimedia
3 # and secure digital cards
5 # This makefile is compatible for building under the kamikaze 8.09 branch
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=broadcom-sdhc
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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
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
)
30 $(PKG_BUILD_DIR
)/sdhc.
$(LINUX_KMOD_SUFFIX
)\
31 $(PKG_BUILD_DIR
)/sdhcd.
$(LINUX_KMOD_SUFFIX
)
32 URL
:=http
://www
.4mul8.ca
/openwrt
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
).
42 $(MAKE
) -C
"$(LINUX_DIR)" \
43 CROSS_COMPILE
="$(TARGET_CROSS)" \
44 ARCH
="$(LINUX_KARCH)" \
45 SUBDIRS
="$(PKG_BUILD_DIR)" \
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
)/
57 $(eval
$(call KernelPackage
,broadcom-sdhc
))