Makefile 908 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. # $Id: $
  8. include $(TOPDIR)/rules.mk
  9. include $(INCLUDE_DIR)/kernel.mk
  10. PKG_NAME:=spidev-test
  11. PKG_RELEASE:=$(LINUX_VERSION)
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/spidev-test
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. DEPENDS:=@LINUX_2_6
  17. TITLE:=SPI testing utility
  18. VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
  19. URL:=http://www.kernel.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))