Message ID | 20211204172628.710545-1-mans0n@gorani.run |
---|---|
State | Accepted |
Delegated to: | Sungbo Eo |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=UMqFqfqg; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gorani.run header.i=@gorani.run header.a=rsa-sha256 header.s=MBO0001 header.b=TYNJws6I; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J5xX25SjHz9s1l for <incoming@patchwork.ozlabs.org>; Sun, 5 Dec 2021 04:29:36 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=N/ljJXsugGgysYJWrhhj6978XitmC7aCmtrg0UdYUx0=; b=UMqFqfqg3QbLLr l93UqsMtT3GUdAksUTkuVOznRqTRyLCRBc3cRineIWJoYdfwej9BtCnmw8U2joIwn+Stq2FI7ZBew T4LhntA4qIQlpTusOM8UYFvYbG60CZHD3n7r1PWUPo+ybhzIigkHPbB5a3EJ5PGu/PLKgZau9A8AE 8xNdVKC8ceqDr7bPheRAZEwlL8eEKeva4EXl0g1vvjVmR7iyKYiV52sSsFjzPDX20h/PFcGU27L4A K6tlNXYrS3mnaGWNd/LJRQufi1G7CDQxjQ0NSnolD1rPm1Y9VdBxVIcJjFoQ0TW6xGewdWjQwIwlg Gw88cHp+yQ9OCwcP7I8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mtYoH-000ZzQ-Lj; Sat, 04 Dec 2021 17:26:53 +0000 Received: from mout-p-101.mailbox.org ([2001:67c:2050::465:101]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mtYoE-000Zz3-Ks for openwrt-devel@lists.openwrt.org; Sat, 04 Dec 2021 17:26:52 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4J5xSg1lBPzQkHx; Sat, 4 Dec 2021 18:26:43 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1638638801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jzCIlBPI/VtcMb2lwFbB3i0IXt2IDDlZKv3d/YlKGTU=; b=TYNJws6IornumZv6VUCy1MyVzRXUQNqO5QsUbgVzBILLPA07qOI4FNkyML48jrbW/yc9P6 EeuWduXMwAL7DFC2zRyWQcwFGhhat83NJtpV5d1FQyZxlKBeNnpU7iGRVpC2BerT5GOnct KAWst3/kAPWjaD9BUWHwrXUczCin/evU6kQe6ZiM1myWIUwmTdmG+N75uah+FBYREeNi1o XFN83kWcqG6fEOOm2LJo1sU1LWDA/6Iz9CqVfO0sienb5OMrYgFH1Rv7hgFAYQGmkhaAHe B+S941QqxpdX6x5BTxkcFaQyvPVnWZLO51y2VW3sW8Q2OS3yeNvf3Ht5jNDHTg== From: Sungbo Eo <mans0n@gorani.run> To: openwrt-devel@lists.openwrt.org Cc: Sungbo Eo <mans0n@gorani.run> Subject: [PATCH] build: image: improve zip build recipe Date: Sun, 5 Dec 2021 02:26:28 +0900 Message-Id: <20211204172628.710545-1-mans0n@gorani.run> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211204_092650_921063_DB582A9C X-CRM114-Status: UNSURE ( 6.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * clean before build * specify executable path * allow adding extra options for zip * use basename of $@ Signed-off-by: Sungbo Eo <mans0n@gorani.run> --- Actually I failed to reproduce any evidence that `$(STAGING_DIR_HOST)/bin/zip` is indeed necessary. But I added it for consistency with other recipes. Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [2001:67c:2050:0:0:0:465:101 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
build: image: improve zip build recipe
|
expand
|
diff --git a/include/image-commands.mk b/include/image-commands.mk index f0557936c9..4c5fe32e24 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -524,12 +524,14 @@ define Build/xor-image endef define Build/zip + rm -rf $@.tmp mkdir $@.tmp - mv $@ $@.tmp/$(1) + mv $@ $@.tmp/$(word 1,$(1)) - zip -j -X \ + $(STAGING_DIR_HOST)/bin/zip -j -X \ $(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \ - $@ $@.tmp/$(if $(1),$(1),$@) + $(wordlist 2,$(words $(1)),$(1)) \ + $@ $@.tmp/$(if $(word 1,$(1)),$(word 1,$(1)),$$(basename $@)) rm -rf $@.tmp endef
* clean before build * specify executable path * allow adding extra options for zip * use basename of $@ Signed-off-by: Sungbo Eo <mans0n@gorani.run> --- Actually I failed to reproduce any evidence that `$(STAGING_DIR_HOST)/bin/zip` is indeed necessary. But I added it for consistency with other recipes. Ref: b993b68b6ca8 ("build: introduce $(MKHASH)") 33411ee9190b ("target/x86/image: use qemu-img from STAGING_DIR_HOST") 26a016731d1f ("firmware-utils: mksercommfw: overhaul image creation") --- include/image-commands.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)