base-files: drop fwtool_pre_upgrade
[openwrt/staging/wigyori.git] / package / utils / spidev_test / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=spidev-test
12 PKG_RELEASE:=$(LINUX_VERSION)
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/spidev-test
17 SECTION:=utils
18 CATEGORY:=Utilities
19 DEPENDS:=+kmod-spi-dev
20 TITLE:=SPI testing utility
21 VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
22 URL:=http://www.kernel.org
23 MAINTAINER:=Florian Fainelli <florian@openwrt.org>
24 endef
25
26 define Package/spidev-test/description
27 SPI testing utility.
28 endef
29
30 define Build/Compile
31 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/spidev_test \
32 $(PKG_BUILD_DIR)/spidev_test.c
33 endef
34
35 define Package/spidev-test/install
36 $(INSTALL_DIR) $(1)/sbin
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/spidev_test $(1)/sbin/
38 endef
39
40 $(eval $(call BuildPackage,spidev-test))