2 # Copyright (C) Felix Fietkau <nbd@nbd.name>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
=$(PROJECT_GIT
)/project
/fwtool.git
15 PKG_SOURCE_DATE
:=2019-11-12
16 PKG_SOURCE_VERSION
:=8f7fe925ca205c8e8e2d0d1b16218c1e148d5173
17 PKG_MIRROR_HASH
:=fe00ac98103645d20a211732ebbbd3d46acb1e5b29392dddca2df56531e54a2e
23 PKG_MAINTAINER
:= Felix Fietkau
<nbd@nbd.name
>
24 PKG_BUILD_DEPENDS
:= fwtool
/host
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/host-build.mk
28 include $(INCLUDE_DIR
)/cmake.mk
30 HOST_BUILD_PREFIX
:=$(STAGING_DIR_HOST
)
35 TITLE
:=Utility for appending and extracting firmware metadata and signatures
39 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/fwtool
$(1)/bin
/
42 define Package
/fwtool
/install
43 $(INSTALL_DIR
) $(1)/usr
/bin
44 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/fwtool
$(1)/usr
/bin
/
47 $(eval
$(call HostBuild
))
48 $(eval
$(call BuildPackage
,fwtool
))