From a6599dbd7dafdf31e1ca101224c0d5aeec597cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Neusch=C3=A4fer?= Date: Sun, 11 Aug 2024 12:01:12 +0200 Subject: [PATCH] package/s6-portable-utils: add option to build multicall binary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Thomas Petazzoni --- package/s6-portable-utils/Config.in | 10 ++++++++++ package/s6-portable-utils/s6-portable-utils.mk | 1 + 2 files changed, 11 insertions(+) diff --git a/package/s6-portable-utils/Config.in b/package/s6-portable-utils/Config.in index 8521ecfa8a..d4ecfcc38b 100644 --- a/package/s6-portable-utils/Config.in +++ b/package/s6-portable-utils/Config.in @@ -10,3 +10,13 @@ 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