Ver Fonte

package/s6-portable-utils: add option to build multicall binary

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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
J. Neuschäfer há 1 ano atrás
pai
commit
a6599dbd7d

+ 10 - 0
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

+ 1 - 0
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