Skip to contentSkip to conversation

package/execline: add option to build multicall binary

Buildroot Thomas Petazzoni via buildroot 1 participant 1 message Sep 6, 2024

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=ef8ed5ccfec1cced0132f03df26b94d656b6ce72
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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

---
 package/execline/Config.in   | 9 +++++++++
 package/execline/execline.mk | 1 +
 2 files changed, 10 insertions(+)
package/execline/Config.in +9 -0
index 7a2278fa5a..a7cbba1bb0 100644
@@ -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
package/execline/execline.mk +1 -0
index ee38d3ed3c..922fc7b5af 100644
@@ -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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot