2016-11-14 15:02:46 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) Felix Fietkau <nbd@nbd.name>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=fwtool
|
2019-11-09 13:33:13 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/fwtool.git
|
2019-11-14 21:42:41 +00:00
|
|
|
PKG_SOURCE_DATE:=2019-11-12
|
|
|
|
PKG_SOURCE_VERSION:=8f7fe925ca205c8e8e2d0d1b16218c1e148d5173
|
2024-03-17 17:43:10 +00:00
|
|
|
PKG_MIRROR_HASH:=f8309d4cf548ce28d98f8f8313d78e17307ded135b96b49bfbc9ac6b039d8689
|
2019-11-09 13:33:13 +00:00
|
|
|
CMAKE_INSTALL:=1
|
2016-11-14 15:02:46 +00:00
|
|
|
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
2019-11-09 13:33:13 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2016-11-14 15:02:46 +00:00
|
|
|
PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name>
|
|
|
|
PKG_BUILD_DEPENDS := fwtool/host
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2019-11-09 13:33:13 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2016-11-14 15:02:46 +00:00
|
|
|
|
|
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
|
|
|
|
|
|
|
define Package/fwtool
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=Utility for appending and extracting firmware metadata and signatures
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/fwtool $(1)/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fwtool/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2019-11-09 13:33:13 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fwtool $(1)/usr/bin/
|
2016-11-14 15:02:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,fwtool))
|