Makefile 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=spidev-test
  10. PKG_RELEASE:=$(LINUX_VERSION)
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/spidev-test
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. DEPENDS:=+kmod-spi-dev
  16. TITLE:=SPI testing utility
  17. VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
  18. URL:=http://www.kernel.org
  19. MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  20. endef
  21. define Package/spidev-test/description
  22. SPI testing utility.
  23. endef
  24. define Build/Prepare
  25. endef
  26. define Build/Compile
  27. $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/spidev_test \
  28. $(LINUX_DIR)/Documentation/spi/spidev_test.c
  29. endef
  30. define Package/spidev-test/install
  31. $(INSTALL_DIR) $(1)/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/spidev_test $(1)/sbin/
  33. endef
  34. $(eval $(call BuildPackage,spidev-test))