Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) Felix Fietkau <[email protected]>
  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:=fwtool
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=$(PROJECT_GIT)/project/fwtool.git
  12. PKG_SOURCE_DATE:=2019-11-12
  13. PKG_SOURCE_VERSION:=8f7fe925ca205c8e8e2d0d1b16218c1e148d5173
  14. PKG_MIRROR_HASH:=f8309d4cf548ce28d98f8f8313d78e17307ded135b96b49bfbc9ac6b039d8689
  15. CMAKE_INSTALL:=1
  16. PKG_FLAGS:=nonshared
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_MAINTAINER := Felix Fietkau <[email protected]>
  19. PKG_BUILD_DEPENDS := fwtool/host
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/host-build.mk
  22. include $(INCLUDE_DIR)/cmake.mk
  23. HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
  24. define Package/fwtool
  25. SECTION:=utils
  26. CATEGORY:=Base system
  27. TITLE:=Utility for appending and extracting firmware metadata and signatures
  28. endef
  29. define Host/Install
  30. $(INSTALL_BIN) $(HOST_BUILD_DIR)/fwtool $(1)/bin/
  31. endef
  32. define Package/fwtool/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fwtool $(1)/usr/bin/
  35. endef
  36. $(eval $(call HostBuild))
  37. $(eval $(call BuildPackage,fwtool))