tools: add fiptool
[openwrt/staging/stintel.git] / tools / fiptool / Makefile
1 #
2 # Copyright (C) 2017 Stijn Tintel <stijn@linux-ipv6.be>
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
9 PKG_NAME:=fiptool
10
11 PKG_SOURCE_URL=https://github.com/hardkernel/u-boot.git
12 PKG_SOURCE_PROTO:=git
13 PKG_SOURCE_DATE:=2016-06-01
14 PKG_SOURCE_VERSION:=3a2dd09540d3639671d86145336f400ec07b1a4e
15
16 PKG_LICENSE:=BSD-3-Clause
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 define Host/Compile
21 +$(HOST_MAKE_VARS) \
22 $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/tools/fip_create \
23 $(HOST_MAKE_FLAGS) \
24 $(1)
25 endef
26
27 define Host/Install
28 $(INSTALL_BIN) \
29 $(HOST_BUILD_DIR)/tools/fip_create/fip_create \
30 $(STAGING_DIR_HOST)/bin/
31 endef
32
33 define Host/Clean
34 rm -f $(STAGING_DIR_HOST)/bin/fip_create
35 endef
36
37 $(eval $(call HostBuild))