2008-04-15 10:33:43 +03:00
|
|
|
#
|
2008-03-21 18:52:27 +02:00
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mmc-over-gpio
|
2008-11-18 01:22:27 +02:00
|
|
|
PKG_RELEASE:=3
|
2008-03-21 18:52:27 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
|
|
|
|
define KernelPackage/mmc-over-gpio
|
|
|
|
SUBMENU:=Other modules
|
2008-05-02 03:30:39 +03:00
|
|
|
DEPENDS:=@GPIO_SUPPORT +kmod-mmc-spi +kmod-spi-gpio
|
2008-07-20 22:34:09 +03:00
|
|
|
KCONFIG:=CONFIG_GPIOMMC CONFIG_CONFIGFS_FS=y
|
2008-03-21 18:52:27 +02:00
|
|
|
TITLE:=MMC/SD card over GPIO support
|
2008-07-18 23:53:08 +03:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/mmc/host/gpiommc.$(LINUX_KMOD_SUFFIX)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,93,spi_gpio gpiommc)
|
2008-03-21 18:52:27 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/mmc-over-gpio/description
|
|
|
|
Support for driving an MMC/SD card over GPIO pins via SPI.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
2008-03-21 19:38:16 +02:00
|
|
|
define KernelPackage/mmc-over-gpio/install
|
2008-11-18 01:22:27 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/mmc_over_gpio.config $(1)/etc/config/mmc_over_gpio
|
2008-03-21 19:38:16 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/mmc_over_gpio.init $(1)/etc/init.d/mmc_over_gpio
|
|
|
|
endef
|
|
|
|
|
2008-03-21 18:52:27 +02:00
|
|
|
$(eval $(call KernelPackage,mmc-over-gpio))
|