[OpenWrt-Devel] [PATCH] build: depend on host zip tool
Sven Roederer
devel-sven at geroedel.de
Thu Oct 11 13:34:35 EDT 2018
tools/firmware-utils/src/mksercommfw.c depends on the zip-tool to generate the
firmwareimage.
/* now that we got the rootfs, repeat the whole thing again(sorta):
* 1. zip the rootfs */
char *zipper = malloc(5 + 2*strlen(rootfs.file_name) + 4);
sprintf(zipper, "%s %s %s", "zip ", zipfsname, rootfs.file_name);
int ret = system(zipper);
Check that the zip command is installed on the host.
Signed-off-by: Sven Roederer <freifunk at it-solutions.geroedel.de>
---
include/prereq-build.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/prereq-build.mk b/include/prereq-build.mk
index a416a2d232..1cb560c506 100644
--- a/include/prereq-build.mk
+++ b/include/prereq-build.mk
@@ -128,6 +128,9 @@ $(eval $(call SetupHostCommand,stat,Cannot find a file stat utility, \
gstat -c%s $(TOPDIR)/Makefile, \
stat -c%s $(TOPDIR)/Makefile))
+$(eval $(call SetupHostCommand,zip,Please install 'zip', \
+ zip -h))
+
$(eval $(call SetupHostCommand,unzip,Please install 'unzip', \
unzip 2>&1 | grep zipfile, \
unzip))
--
2.11.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list