e0ed0207fa92923838573be5f755a2ff1e6875da
2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_RELEASE
:=$(LINUX_VERSION
)
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/spidev-test
22 DEPENDS
:=+kmod-spi-dev
23 TITLE
:=SPI testing utility
24 VERSION
:=$(LINUX_VERSION
)-$(PKG_RELEASE
)
25 URL
:=http
://www.kernel.org
26 MAINTAINER
:=Florian Fainelli
<florian@openwrt.org
>
29 define Package
/spidev-test
/description
37 $(TARGET_CC
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/spidev_test \
38 $(LINUX_DIR
)/Documentation
/spi
/spidev_test.c
41 define Package
/spidev-test
/install
42 $(INSTALL_DIR
) $(1)/sbin
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/spidev_test
$(1)/sbin
/
46 $(eval
$(call BuildPackage
,spidev-test
))