linux-2.6: Add a driver to run an MMC or SD card over a GPIO based SPI interface.
[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 # $Id: Makefile 10138 2008-01-06 19:28:26Z nbd $
8
9 #XXX This package will go away once the stuff is merged into the kernel.
10
11 include $(TOPDIR)/rules.mk
12 include $(INCLUDE_DIR)/kernel.mk
13
14 PKG_NAME:=mmc-over-gpio
15 PKG_RELEASE:=1
16
17 include $(INCLUDE_DIR)/package.mk
18
19
20 define KernelPackage/mmc-over-gpio
21 SUBMENU:=Other modules
22 DEPENDS:=@LINUX_2_6 +kmod-spi +kmod-spi-bitbang +kmod-mmc +kmod-mmc-spi
23 TITLE:=MMC/SD card over GPIO support
24 FILES:=$(PKG_BUILD_DIR)/spi_gpio.$(LINUX_KMOD_SUFFIX) \
25 $(PKG_BUILD_DIR)/mmc_over_spigpio.$(LINUX_KMOD_SUFFIX)
26 AUTOLOAD:=$(call AutoLoad,90,spi_gpio mmc_over_spigpio)
27 endef
28
29 define KernelPackage/mmc-over-gpio/description
30 Support for driving an MMC/SD card over GPIO pins via SPI.
31 endef
32
33 define Build/Prepare
34 mkdir -p $(PKG_BUILD_DIR)
35 $(CP) ./src/* $(PKG_BUILD_DIR)/
36 endef
37
38 define Build/Compile
39 $(MAKE) -C "$(LINUX_DIR)" \
40 CROSS_COMPILE="$(TARGET_CROSS)" \
41 ARCH="$(LINUX_KARCH)" \
42 SUBDIRS="$(PKG_BUILD_DIR)" \
43 EXTRA_CFLAGS="$(BUILDFLAGS)" \
44 modules
45 endef
46
47 $(eval $(call KernelPackage,mmc-over-gpio))
This page took 0.045819 seconds and 5 git commands to generate.