From patchwork Tue May 20 05:21:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891300 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428256wrm; Mon, 19 May 2025 22:23:32 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWs/6/GCYYH4E3Uv/f6i/X039Utj8G6+ON0F//Ge4zGP4m/7yk67ZY3NLtNPd9G5DeOEDfGgA==@linaro.org X-Google-Smtp-Source: AGHT+IF9wfow5yT9LmyxiloaB890CO6bFaUaXJknkJIQj/UIrk4cjnrY1oUTAxPzYFQP0Y5x2UDb X-Received: by 2002:a05:600c:384b:b0:43c:f8fc:f6a6 with SMTP id 5b1f17b1804b1-442fd6100famr135671635e9.9.1747718612541; Mon, 19 May 2025 22:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718612; cv=none; d=google.com; s=arc-20240605; b=W4sts/id115FIygBEgaRBX6wkfYL8dJYN/yh8g9m8UKiHKVh1tVKYip3aVRMQzn1Bj olOytn3lHMHCtn6rhiqmTTMM+Guf4I8mprGzEfoBCn05oav2sHzGuTTj1OR0loRBrLrj a2MulIx69kKKZVGqOMeZB5YfT7FmB/xePelfD0LdJpoAAB28KjRjl58FyYZ1w8VLBRwe hGziR08tmO1oIhwVaHCBNjUhP8aQalKU1TwIT8NCBslJtD2NIF1VFXocbUoETMdGWUum ERNYVbCLrRIVZ7a2eA0Wau6XS/2agenUaU7od1vMJ9VMfTcSOz3rJ1n348/vtxdpipVG dTQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NSNNW0Lxdsdb+CG0WOvzIn/xRqPJRoz2EmMLVVPhvP0=; fh=xvdzN2hualmecMDDvGhh1+ixBXgPC+stdhudVM1ylTo=; b=bDaXajtt7x/zxpu51J1ZDpPDPGgAfcscoTRShVUmSAi5UoHXCJ2jZRBKrvQknphi4B gMIr8p6CkxHvg0DT1A4G/yv2phFtivBR1eCu4btrHgAaBQpis6E7OdU3Ze0rSoUO6Ph8 QXMs7eOv/xFE8Ovk3VCRAq8YeT4ZAHPOiJge5AHsvKoxDaHtyLOXhNDcCsSCpmriyk2s IxN1ezVRcC027u1gSSCeOHlGN/pKlZzA6eP79KBps43cXNjbUfHTiSDogLFBzvkILqer ji4riqJyjsrfPrfLv1T6RhgXsaM1hvbbwL6k6zrqdYz/k3R5FukqZ7LbDlAxlqoXW2/l ZNDA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uyBobRLZ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 5b1f17b1804b1-447f5514e8fsi6723515e9.39.2025.05.19.22.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:23:32 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uyBobRLZ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2657582C8A; Tue, 20 May 2025 07:22:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="uyBobRLZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BC12B82C96; Tue, 20 May 2025 07:22:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C779482BD9 for ; Tue, 20 May 2025 07:22:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3a37a243388so287965f8f.1 for ; Mon, 19 May 2025 22:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718541; x=1748323341; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NSNNW0Lxdsdb+CG0WOvzIn/xRqPJRoz2EmMLVVPhvP0=; b=uyBobRLZkt4T3JXK3T3jcb8yZjO/pXz8RkrHKEe7VNXFgZoIUO+5fLOe6C/L/3v4x+ Hb7S9AxmmAd/Xlzb8xhmKO5EcziLw7mxSCTpTdIepczlP7M4PqV28u7njehEwGzvvj4p 2qLdUze8bjJMnyFMGXriwqGxIJDe+Ucnyth5TkUGEjBG8hXg2NXjKSMgan83wyMtvg9S W6OYyJjrvwYiy3DWXv890XySYCOj4x/UuOxD3GfYe5l8CHoTZtbS6hpAmJH04eGQ/crG HfPNKQNMWhzM0cfgwv+hGxCzenh/ZFVg2Qe2nbdX+gmej9ugGRdnIRLrTgTG5115fGsQ Ek6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718541; x=1748323341; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NSNNW0Lxdsdb+CG0WOvzIn/xRqPJRoz2EmMLVVPhvP0=; b=dL0n2fcnigAw+mZ+aWYw33+TWAZoR024uVxh7uLz7S1zDWKOzn/eLr+uy+gC971ak8 2uLAnYUv5pNimt4z1LU825tOYc95E6bjGPOxuHZ+XiRtjvTsoKy4WxhyRM0EwHIXSrDs Gwe8VLke3/UcYeERIxRlG6aFZ4LqzemcbgoufA7ZM/iUTxk4brXKySbQqV1hHj1zQcM/ QHq6MuftTcKO0JzGwRyrtjRHI3L7cpayuMgi/rY0PqSOHbzqBF8NHiYfsT/B0Ztx3SfG ytLLAZF8x1iLW1SR/n4exhR2CpQ6mBtGBVLktsTc904zkJRdKsRlbm4abB3sD4O/nvfM q7Qg== X-Forwarded-Encrypted: i=1; AJvYcCWpbrOG+pD03y+bKjzIux7OCkGQBQRdzYgf08EznYdwBnC7sZO9BNH1vXFnfDcp7BEZhqV+kW8=@lists.denx.de X-Gm-Message-State: AOJu0YweNmk7XAd+PUG/7iD/kCHF1BKlD/mTqd2R48Mn75scTBgjKziE vIOXLi4gfoxn+Veg9FGyBCg9Xjm94isKxXvFtsJQDVk4XI3XO/JJoem7f4Yyrfpzv+MASAYxDb+ SObET X-Gm-Gg: ASbGnctM05JZrsVpa0kkAiwTpyKjGQjWTF7APBTjs4FsiSmWschi6rEkjf8Xb09bvCp 69hX9C5wf+x2P0M5ZN2UBHnZSTlu+WpBgr0Otl4aPjMuOtPLu3hbvu5tSRjOfswlk+MQ63fa2/A zynb7jJwhnRHhs+qK4kSK8MmEZMpvOmzZy44/HBGaNpBBWO1EwqIe1GHpMCnnWQYnUSc+nO9wha 2eXO075oVIlzuzytXIeOaJsUBkVgGkvcGqeSGyymyhHoQrZ4ed1jleTg0LOs1q/cKYgr6fJ2bGH zFu8Xw6R/HAFEjubsgwxX5PIYqX/9oBU3/2hXHdDBqy9KLTwlizSqRX5bPW5yMRaEUPB47QF4QY = X-Received: by 2002:a05:6000:40c9:b0:3a0:7aa3:cc74 with SMTP id ffacd0b85a97d-3a35c808cb7mr14847328f8f.6.1747718541308; Mon, 19 May 2025 22:22:21 -0700 (PDT) Received: from localhost.localdomain ([46.198.180.244]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a35ca889e6sm15100762f8f.71.2025.05.19.22.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:20 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Prasad Kummari , Michal Simek , Jiaxun Yang , Rasmus Villemoes , Sam Edwards , Jonathan Humphreys , Quentin Schulz , u-boot@lists.denx.de Subject: [PATCH 09/24] kbuild: remove unnecessary in-subshell execution Date: Tue, 20 May 2025 08:21:20 +0300 Message-ID: <20250520052153.307194-10-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250520052153.307194-1-ilias.apalodimas@linaro.org> References: <20250520052153.307194-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Backport kernel changes commit b79c6aa6a1f1 ("kbuild: remove unnecessary in-subshell execution") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.lib | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 4861b1332c3c..28295c7ff125 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -324,7 +324,7 @@ DTC_FLAGS += $(if $(filter $(patsubst $(obj)/%,%,$@), $(base-dtb-y)), -@) quiet_cmd_dt_S_dtb= DTBS $@ # Modified for U-Boot cmd_dt_S_dtb= \ -( \ +{ \ echo '.section .dtb.init.rodata,"a"'; \ echo '.balign 16'; \ echo '.global __dtb_$(subst -,_,$(*F))_begin'; \ @@ -333,7 +333,7 @@ cmd_dt_S_dtb= \ echo '__dtb_$(subst -,_,$(*F))_end:'; \ echo '.global __dtb_$(subst -,_,$(*F))_end'; \ echo '.balign 16'; \ -) > $@ +} > $@ $(obj)/%.dtb.S: $(obj)/%.dtb $(call cmd,dt_S_dtb) @@ -560,20 +560,20 @@ printf "%08x\n" $$dec_size | \ ) quiet_cmd_bzip2 = BZIP2 $@ -cmd_bzip2 = (cat $(real-prereqs) | bzip2 -9 && $(size_append)) > $@ +cmd_bzip2 = { cat $(real-prereqs) | bzip2 -9 && $(size_append); } > $@ # Lzma # --------------------------------------------------------------------------- quiet_cmd_lzma = LZMA $@ -cmd_lzma = (cat $(real-prereqs) | lzma -9 && $(size_append)) > $@ +cmd_lzma = { cat $(real-prereqs) | lzma -9 && $(size_append); } > $@ quiet_cmd_lzo = LZO $@ -cmd_lzo = (cat $(real-prereqs) | lzop -9 && $(size_append)) > $@ +cmd_lzo = { cat $(real-prereqs) | lzop -9 && $(size_append); } > $@ quiet_cmd_lz4 = LZ4 $@ -cmd_lz4 = (cat $(real-prereqs) | lz4c -l -c1 stdin stdout && \ - $(size_append)) > $@ +cmd_lz4 = { cat $(real-prereqs) | lz4c -l -c1 stdin stdout && \ + $(size_append); } > $@ # U-Boot mkimage # --------------------------------------------------------------------------- @@ -617,12 +617,11 @@ quiet_cmd_uimage = UIMAGE $(UIMAGE_OUT) # big dictionary would increase the memory usage too much in the multi-call # decompression mode. A BCJ filter isn't used either. quiet_cmd_xzkern = XZKERN $@ -cmd_xzkern = (cat $(filter-out FORCE,$^) | \ - sh $(srctree)/scripts/xz_wrap.sh && $(size_append)) > $@ +cmd_xzkern = { cat $(filter-out FORCE,$^) | \ + sh $(srctree)/scripts/xz_wrap.sh && $(size_append); } > $@ quiet_cmd_xzmisc = XZMISC $@ -cmd_xzmisc = (cat $(filter-out FORCE,$^) | \ - xz --check=crc32 --lzma2=dict=1MiB) > $@ +cmd_xzmisc = cat $(real-prereqs) | xz --check=crc32 --lzma2=dict=1MiB > $@ # Additional commands for U-Boot #