You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0 KiB

  1. #
  2. # Copyright (C) 2014-2015 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. PKG_NAME:=spi-tools
  9. PKG_VERSION:=0.8.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=https://codeload.github.com/cpb-/spi-tools/tar.gz/$(PKG_VERSION)?
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=a1846bf3b4d38fc419f8efe4555242aa581358fdca28452b3ca11f74e3572e33
  14. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  15. PKG_LICENSE:=GPL-2.0-only
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_ASLR_PIE:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/spi-tools
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Command line SPI tools
  26. URL:=https://github.com/cpb-/spi-tools
  27. endef
  28. define Package/spi-tools/install
  29. $(INSTALL_DIR) $(1)/usr/bin
  30. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/spi-config $(1)/usr/bin
  31. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/spi-pipe $(1)/usr/bin
  32. endef
  33. $(eval $(call BuildPackage,spi-tools))