Makefile 1.1 KB

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