2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 10138 2008-01-06 19:28:26Z nbd $
9 #XXX This package will go away once the stuff is merged into the kernel.
11 include $(TOPDIR
)/rules.mk
12 include $(INCLUDE_DIR
)/kernel.mk
14 PKG_NAME
:=mmc-over-gpio
17 include $(INCLUDE_DIR
)/package.mk
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
)
29 define KernelPackage
/mmc-over-gpio
/description
30 Support for driving an MMC
/SD card over GPIO pins via SPI.
34 mkdir
-p
$(PKG_BUILD_DIR
)
35 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
39 $(MAKE
) -C
"$(LINUX_DIR)" \
40 CROSS_COMPILE
="$(TARGET_CROSS)" \
41 ARCH
="$(LINUX_KARCH)" \
42 SUBDIRS
="$(PKG_BUILD_DIR)" \
43 EXTRA_CFLAGS
="$(BUILDFLAGS)" \
47 $(eval
$(call KernelPackage
,mmc-over-gpio
))