diff mbox series

[2/3] s6-portable-utils: Add option to build multicall binary

Message ID 20240704-s6-multicall-v1-2-b6adb2bd0905@gmx.net
State Superseded
Headers show
Series Optionally build some skarnet.org packages as multicall binaries | expand

Commit Message

J. Neuschäfer July 4, 2024, 7:53 p.m. UTC
Since version 2.3.0.0, with another bugfix in 2.3.0.3, s6-portable-utils
can be built as a multicall binary, similar to busybox.

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


--
2.43.0
diff mbox series

Patch

diff --git a/package/s6-portable-utils/Config.in b/package/s6-portable-utils/Config.in
index 8521ecfa8a..ba95476777 100644
--- a/package/s6-portable-utils/Config.in
+++ b/package/s6-portable-utils/Config.in
@@ -10,3 +10,12 @@  config BR2_PACKAGE_S6_PORTABLE_UTILS
 	  they work everywhere.

 	  http://skarnet.org/software/s6-portable-utils/
+
+if BR2_PACKAGE_S6_PORTABLE_UTILS
+
+config BR2_PACKAGE_S6_PORTABLE_UTILS_MULTICALL
+	bool "s6-portable-utils multicall binary"
+	help
+	  Build s6-portable-utils as a multicall binary to save disk space.
+
+endif
diff --git a/package/s6-portable-utils/s6-portable-utils.mk b/package/s6-portable-utils/s6-portable-utils.mk
index c40100b06c..826750f387 100644
--- a/package/s6-portable-utils/s6-portable-utils.mk
+++ b/package/s6-portable-utils/s6-portable-utils.mk
@@ -17,6 +17,7 @@  S6_PORTABLE_UTILS_CONF_OPTS = \
 	--with-dynlib=$(STAGING_DIR)/lib \
 	--with-lib=$(STAGING_DIR)/lib/skalibs \
 	$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
+	$(if $(BR2_PACKAGE_S6_PORTABLE_UTILS_MULTICALL),--enable-multicall,) \
 	$(SHARED_STATIC_LIBS_OPTS)

 define S6_PORTABLE_UTILS_CONFIGURE_CMDS