fwtool: update to latest Git head
[openwrt/openwrt.git] / package / system / fwtool / Makefile
1 #
2 # Copyright (C) Felix Fietkau <nbd@nbd.name>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fwtool
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_PROTO:=git
14 PKG_SOURCE_URL=$(PROJECT_GIT)/project/fwtool.git
15 PKG_SOURCE_DATE:=2019-11-09
16 PKG_SOURCE_VERSION:=9d9d4c2847862adec2f474d4126213c17f98e024
17 PKG_MIRROR_HASH:=4a72a48cbc7cda4c1860ec8328c049b4b84f7f00273d82ee98175937b63af1f8
18 CMAKE_INSTALL:=1
19
20 PKG_FLAGS:=nonshared
21
22 PKG_LICENSE:=GPL-2.0
23 PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name>
24 PKG_BUILD_DEPENDS := fwtool/host
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/host-build.mk
28 include $(INCLUDE_DIR)/cmake.mk
29
30 HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
31
32 define Package/fwtool
33 SECTION:=utils
34 CATEGORY:=Base system
35 TITLE:=Utility for appending and extracting firmware metadata and signatures
36 endef
37
38 define Host/Install
39 $(INSTALL_BIN) $(HOST_BUILD_DIR)/fwtool $(1)/bin/
40 endef
41
42 define Package/fwtool/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fwtool $(1)/usr/bin/
45 endef
46
47 $(eval $(call HostBuild))
48 $(eval $(call BuildPackage,fwtool))