Root/package/system/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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=spidev-test
12PKG_RELEASE:=$(LINUX_VERSION)
13
14include $(INCLUDE_DIR)/package.mk
15
16define 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>
24endef
25
26define Package/spidev-test/description
27  SPI testing utility.
28endef
29
30define Build/Prepare
31endef
32
33define Build/Compile
34    $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/spidev_test \
35        $(LINUX_DIR)/Documentation/spi/spidev_test.c
36endef
37
38define Package/spidev-test/install
39    $(INSTALL_DIR) $(1)/sbin
40    $(INSTALL_BIN) $(PKG_BUILD_DIR)/spidev_test $(1)/sbin/
41endef
42
43$(eval $(call BuildPackage,spidev-test))
44

Archive Download this file



interactive