diff mbox series

[v2,1/4] package/execline: Add option to build multicall binary

Message ID 20240811-s6-multicall-v2-1-14249fd20cbd@gmx.net
State Accepted
Headers show
Series Optionally build some skarnet.org packages as multicall binaries | expand

Commit Message

J. Neuschäfer Aug. 11, 2024, 10:01 a.m. UTC
Since version 2.9.2.0, with another bugfix in 2.9.4.0, execline can
be built as a multicall binary, similar to busybox. According to
the author[1], this results in space savings of 66-87% on Linux.

[1]: https://skarnet.org/software/execline/execline.html

Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
---
 package/execline/Config.in   | 9 +++++++++
 package/execline/execline.mk | 1 +
 2 files changed, 10 insertions(+)


--
2.43.0
diff mbox series

Patch

diff --git a/package/execline/Config.in b/package/execline/Config.in
index 7a2278fa5a..a7cbba1bb0 100644
--- a/package/execline/Config.in
+++ b/package/execline/Config.in
@@ -10,3 +10,12 @@  config BR2_PACKAGE_EXECLINE
 	  essentially useful inside an execlineb script.

 	  http://skarnet.org/software/execline/
+
+if BR2_PACKAGE_EXECLINE
+
+config BR2_PACKAGE_EXECLINE_MULTICALL
+	bool "execline multicall binary"
+	help
+	  Build execline as a multicall binary to save disk space.
+
+endif
diff --git a/package/execline/execline.mk b/package/execline/execline.mk
index ee38d3ed3c..922fc7b5af 100644
--- a/package/execline/execline.mk
+++ b/package/execline/execline.mk
@@ -19,6 +19,7 @@  EXECLINE_CONF_OPTS = \
 	--with-dynlib=$(STAGING_DIR)/lib \
 	--with-lib=$(STAGING_DIR)/lib/skalibs \
 	$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
+	$(if $(BR2_PACKAGE_EXECLINE_MULTICALL),--enable-multicall,) \
 	$(SHARED_STATIC_LIBS_OPTS)

 define EXECLINE_CONFIGURE_CMDS