replace a few unnecessary $(shell) calls
[openwrt/mini2440.git] / package / mmc_over_gpio / Makefile
blobcd911c6f55a53b054839d286f2df1b05d02812dd
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 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/kernel.mk
10 PKG_NAME:=mmc-over-gpio
11 PKG_RELEASE:=3
13 include $(INCLUDE_DIR)/package.mk
16 define KernelPackage/mmc-over-gpio
17 SUBMENU:=Other modules
18 DEPENDS:=@GPIO_SUPPORT +kmod-mmc-spi +kmod-spi-gpio-old
19 KCONFIG:=CONFIG_GPIOMMC CONFIG_CONFIGFS_FS=y
20 TITLE:=MMC/SD card over GPIO support
21 FILES:=$(LINUX_DIR)/drivers/mmc/host/gpiommc.$(LINUX_KMOD_SUFFIX)
22 AUTOLOAD:=$(call AutoLoad,93,spi_gpio gpiommc)
23 endef
25 define KernelPackage/mmc-over-gpio/description
26 Support for driving an MMC/SD card over GPIO pins via SPI.
27 endef
29 define Build/Prepare
30 mkdir -p $(PKG_BUILD_DIR)
31 endef
33 define Build/Compile
34 endef
36 define KernelPackage/mmc-over-gpio/install
37 $(INSTALL_DIR) $(1)/etc/config
38 $(INSTALL_DATA) ./files/mmc_over_gpio.config $(1)/etc/config/mmc_over_gpio
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_BIN) ./files/mmc_over_gpio.init $(1)/etc/init.d/mmc_over_gpio
41 endef
43 $(eval $(call KernelPackage,mmc-over-gpio))