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

Message ID 1490345416-19734-3-git-send-email-yegorslists@googlemail.com
State Changes Requested
Delegated to: John Crispin
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

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


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
+HOST_BUILD_DEPENDS:=confuse/host pkg-config/host
+include $(INCLUDE_DIR)/host-build.mk
+define Host/Install
+	+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install
+$(eval $(call HostBuild))