Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Copyright (C) 2013 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:=kobs-ng
  9. PKG_VERSION:=3.0.35-4.0.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://repository.timesys.com/buildsources/k/kobs-ng/kobs-ng-$(PKG_VERSION)/
  13. PKG_MD5SUM:=26104c577f59a6b81782a5bd16aadd82
  14. PKG_LICENSE:=GPLv2
  15. PKG_LICENSE_FILES:=COPYING
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/kobs-ng
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=Application for writing bootstreams to NAND flash
  21. DEPENDS:=@TARGET_imx6
  22. endef
  23. define Package/kobs-ng/description
  24. The kobs-ng application writes a bootstream to NAND flash with the proper
  25. FCB/DBBT headers and replicated streams.
  26. endef
  27. define Build/Prepare
  28. $(call Build/Prepare/Default)
  29. echo "const char* git_sha = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR)/autoversion.h
  30. endef
  31. define Package/kobs-ng/install
  32. $(INSTALL_DIR) $(1)/usr/sbin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/kobs-ng $(1)/usr/sbin/
  34. endef
  35. $(eval $(call BuildPackage,kobs-ng))