diff mbox series

[v2,3/4] package/s6-linux-utils: Add option to build multicall binary

Message ID 20240811-s6-multicall-v2-3-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.6.1.0, with another bugfix in 2.6.2.0, s6-linux-utils
can be built as a multicall binary, similar to busybox.

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


--
2.43.0
diff mbox series

Patch

diff --git a/package/s6-linux-utils/Config.in b/package/s6-linux-utils/Config.in
index 43e6bb9144..20b267a2cc 100644
--- a/package/s6-linux-utils/Config.in
+++ b/package/s6-linux-utils/Config.in
@@ -7,3 +7,12 @@  config BR2_PACKAGE_S6_LINUX_UTILS
 	  system utilities.

 	  http://skarnet.org/software/s6-linux-utils/
+
+if BR2_PACKAGE_S6_LINUX_UTILS
+
+config BR2_PACKAGE_S6_LINUX_UTILS_MULTICALL
+	bool "s6-linux-utils multicall binary"
+	help
+	  Build s6-linux-utils as a multicall binary to save disk space.
+
+endif
diff --git a/package/s6-linux-utils/s6-linux-utils.mk b/package/s6-linux-utils/s6-linux-utils.mk
index f83f47ac3e..04e08c3d43 100644
--- a/package/s6-linux-utils/s6-linux-utils.mk
+++ b/package/s6-linux-utils/s6-linux-utils.mk
@@ -17,6 +17,7 @@  S6_LINUX_UTILS_CONF_OPTS = \
 	--with-dynlib=$(STAGING_DIR)/lib \
 	--with-lib=$(STAGING_DIR)/lib/skalibs \
 	$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
+	$(if $(BR2_PACKAGE_S6_LINUX_UTILS_MULTICALL),--enable-multicall,) \
 	$(SHARED_STATIC_LIBS_OPTS)

 define S6_LINUX_UTILS_CONFIGURE_CMDS