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