From patchwork Sun Aug 11 10:01:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 1971254 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WhY8L4q7Tz1ydh for ; Sun, 11 Aug 2024 20:01:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5A2864059D; Sun, 11 Aug 2024 10:01:35 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Mjz6SyFJIBvw; Sun, 11 Aug 2024 10:01:34 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5CE064059E Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 5CE064059E; Sun, 11 Aug 2024 10:01:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C17011BF2AA for ; Sun, 11 Aug 2024 10:01:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id AE88A40B7B for ; Sun, 11 Aug 2024 10:01:26 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ZlB8ikcJScuO for ; Sun, 11 Aug 2024 10:01:25 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.227.17.22; helo=mout.gmx.net; envelope-from=j.neuschaefer@gmx.net; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 36BBD40B87 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 36BBD40B87 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by smtp4.osuosl.org (Postfix) with ESMTPS id 36BBD40B87 for ; Sun, 11 Aug 2024 10:01:24 +0000 (UTC) X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([89.0.46.195]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MpUYu-1rpUwt1ZkK-00oiNe; Sun, 11 Aug 2024 12:01:19 +0200 Date: Sun, 11 Aug 2024 12:01:11 +0200 MIME-Version: 1.0 Message-Id: <20240811-s6-multicall-v2-1-14249fd20cbd@gmx.net> References: <20240811-s6-multicall-v2-0-14249fd20cbd@gmx.net> In-Reply-To: <20240811-s6-multicall-v2-0-14249fd20cbd@gmx.net> To: buildroot@buildroot.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1723370475; l=1456; i=j.neuschaefer@gmx.net; s=20240329; h=from:subject:message-id; bh=j0C2j+EihXs7xN41vSXmRnIgPhOP7jgedYH0AhQohBw=; b=uBHJROaR0cvduoZ+0kJHuLDgccIdDDm4tPaFGi+lCV1+Esz4/fvwVsh5QZoaZGa59L8fk5oZy y+2x6KUhkBTCQX9kGMybuUxnOaYxlWMcBqrG62hVt4fBMdV9bilTq1Y X-Developer-Key: i=j.neuschaefer@gmx.net; a=ed25519; pk=NIe0bK42wNaX/C4bi6ezm7NJK0IQE+8MKBm7igFMIS4= X-Provags-ID: V03:K1:DzQ0KPdbOgZy9IOPF33aWSsdW8lF0wKTLR/YT/pV1V/dqO2spuG jNRDSekNznHHX7csQ7k8fNqgnRsJ2qXNCMotix4whzcw8KunjzmFRo+MyBYAanUIu8BxXfm RezFMTwZAuTXSfYPBcKUdTTpAxg3Lnsqr++biEbBgi9Ju542dor0qIyUmy2cD8YvFllxO8B W7/w9SDnqfMoY73cmO3Uw== UI-OutboundReport: notjunk:1;M01:P0:hqHaKeHOxME=;oSaOkhcCJztHWqW33K8Flflx5dp 3HY2aW8/KIcH/GjVOlB0EdTleHeHzfBIWWmZsj02q+zf/WQsomOArslr7nsX5qSVlzRiGhe03 OfjVpHd4m2hwS/ujB03dWOOe1eAcTk+yaKy0o8b9CKU1VsQlRT7NIzy8fhZfhY+r+CB8BBUqv Xkfo5wFL/HyEZ06jJKhsUpAaBxjh1maFj2htGChBqOpZP4lGOpIT/tdgQOmJF9QWIXs5JFzMY C86XpNRdDoXz5P/Dx8MqwGPtK3FcjcCHLIFpzY8kHiia57uyTSBzZVRKE5y+Q1uZ1nHHrGjMi hdQVniMUkicOCYsnGXGIvbl+HsjdLZDdihtc0H6NFe6xeZgLvoDUhksz/54dgANxX0ElrsIFl 1W0MZWc31w4fbPFFjRMHVDkD9gki8EAcyyiLQERadbKIb8GnA7J+mBrlYFmTrv4MqVJnbU176 Q8u+VC1+z3RP1SR25cPpKIwVTGtDh9LjRPszYKRnOCpy6EGMwJMz64WxTS91q/x5Bl79j1WIu 7IjgJoonorJprIDGEi4LOnPsKNjwSLFosFxokJPpE6hBtzwVFqxw6/GobqLphpISUEXYpbxCn tYno/77/g3q0oLxsaAn/pGAC4RXXmxKWP94Xx5KuUZ2qxEDVQO1VA8Zjn2j+Bm9sfy34zlj7R JE4cf3WcVy5t0gGoVkhT55TyGGtz7QRxSLY17JrY0kSOTudFd0PVixd52OYtXq37DYE7DSh3V bXSwfKwG/oLWKgg8/E7sj6MLyGA+OwpPeuVKVv8ZrTUtvT6oIBhj2Vy9Bd5NEBp3yvSnp26mj zKsowuk4v2tLITjdhLVPaqoQ== X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1723370479; x=1723975279; i=j.neuschaefer@gmx.net; bh=wauedL11xPUobEn/7+7O/Uhh/eoOYRCRkt4LvWcqhmo=; h=X-UI-Sender-Class:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=tG9uEjkCheJPhMFsD4oFQUcvbU54Bh+PPK8QWHIdfPsQOz67iA8GQUEhdLuow6kh KDu5oXWYzMH3u4G/69e8x5bhSl7hOOYlAqKa6YYNYC/PZufTaGZJe1eA1YfclejIx vlHxZQP/rgJD4gwHedwXjyWyIN4gQO/eFxXbmHvcnXbRuOc9iAEZmE7AzqtTqo1Ev 0h8A/kbs+51eh5fxFbzBfxys7ekgTYafYwxHsW/coGqVn5jMaVdlmv4GMOGs3BC9l p5rakOcHkPdSbi9mwlW5CDBS3a9yoCc0L/BTzBlX2BclSN8JUhJe5ov3nCfOmryQX VU5ybM5FNlCboNAZtw== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.net X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmx.net header.i=j.neuschaefer@gmx.net header.a=rsa-sha256 header.s=s31663417 header.b=tG9uEjkC Subject: [Buildroot] [PATCH v2 1/4] package/execline: Add option to build multicall binary X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?J=2E_Neusch=C3=A4fer_via_buildroot?= From: =?utf-8?q?J=2E_Neusch=C3=A4fer?= Reply-To: =?utf-8?q?J=2E_Neusch=C3=A4fer?= Cc: Eric Le Bihan , =?utf-8?q?J=2E_Neusch=C3=A4fe?= =?utf-8?q?r?= Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" 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 Signed-off-by: J. Neuschäfer --- package/execline/Config.in | 9 +++++++++ package/execline/execline.mk | 1 + 2 files changed, 10 insertions(+) -- 2.43.0 diff --git a/package/execline/Config.in b/package/execline/Config.in index 7a2278fa5a..a7cbba1bb0 100644 --- a/package/execline/Config.in +++ b/package/execline/Config.in @@ -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 diff --git a/package/execline/execline.mk b/package/execline/execline.mk index ee38d3ed3c..922fc7b5af 100644 --- a/package/execline/execline.mk +++ b/package/execline/execline.mk @@ -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