Switch to compat-wireless
[openwrt.git] / package / mmc_over_gpio / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 #XXX This package will go away once the stuff is merged into the kernel.
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=mmc-over-gpio
13 PKG_RELEASE:=1
14
15 include $(INCLUDE_DIR)/package.mk
16
17
18 define KernelPackage/mmc-over-gpio
19 SUBMENU:=Other modules
20 DEPENDS:=@LINUX_2_6 +kmod-spi +kmod-spi-bitbang +kmod-mmc +kmod-mmc-spi
21 TITLE:=MMC/SD card over GPIO support
22 FILES:=$(PKG_BUILD_DIR)/spi_gpio.$(LINUX_KMOD_SUFFIX) \
23 $(PKG_BUILD_DIR)/mmc_over_spigpio.$(LINUX_KMOD_SUFFIX)
24 AUTOLOAD:=$(call AutoLoad,92,spi_gpio mmc_over_spigpio)
25 endef
26
27 define KernelPackage/mmc-over-gpio/description
28 Support for driving an MMC/SD card over GPIO pins via SPI.
29 endef
30
31 define Build/Prepare
32 mkdir -p $(PKG_BUILD_DIR)
33 $(CP) ./src/* $(PKG_BUILD_DIR)/
34 endef
35
36 define Build/Compile
37 $(MAKE) -C "$(LINUX_DIR)" \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
39 ARCH="$(LINUX_KARCH)" \
40 SUBDIRS="$(PKG_BUILD_DIR)" \
41 EXTRA_CFLAGS="$(BUILDFLAGS)" \
42 modules
43 endef
44
45 define KernelPackage/mmc-over-gpio/install
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/mmc_over_gpio.init $(1)/etc/init.d/mmc_over_gpio
48 endef
49
50 $(eval $(call KernelPackage,mmc-over-gpio))
This page took 0.049864 seconds and 5 git commands to generate.