[OpenWrt-Devel,2/2] genimage: new host package

Message ID 1490345416-19734-3-git-send-email-yegorslists@googlemail.com
State New
Headers show

Commit Message

Yegor Yefremov March 24, 2017, 8:50 a.m.
From: Yegor Yefremov <yegorslists@googlemail.com>

genimage is a tool to generate multiple filesystem and flash
images from a given root filesystem tree. genimage is
intended to be run in a fakeroot environment.

Configuration is done in a config file parsed by
libconfuse. Options like the path to tools can be given in
environment variables, the config file or commandline
switches.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 tools/genimage/Makefile | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 tools/genimage/Makefile

Patch

diff --git a/tools/genimage/Makefile b/tools/genimage/Makefile
new file mode 100644
index 0000000..7c8d597
--- /dev/null
+++ b/tools/genimage/Makefile
@@ -0,0 +1,28 @@ 
+# 
+# Copyright (C) 2017 Yegor Yefremov <yegorslists@googlemail.com>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=genimage
+PKG_VERSION:=9
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=http://www.pengutronix.de/software/genimage/download
+PKG_MIRROR_HASH:=69f35af7edf6f4dbdac7a18ddc69dcf38c501e43d8b50c524555754c51479078
+
+HOST_BUILD_PARALLEL:=1
+HOST_BUILD_DEPENDS:=confuse/host pkg-config/host
+
+include $(INCLUDE_DIR)/host-build.mk
+
+HOSTCC := $(HOSTCC_NOCACHE)
+HOSTCXX := $(HOSTCXX_NOCACHE)
+
+define Host/Install
+	+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install
+endef
+
+$(eval $(call HostBuild))