From patchwork Tue May 20 05:21:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891292 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1427899wrm; Mon, 19 May 2025 22:22:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUpx7AUiax8Gc/KfbYnJhBpY+eVjFMwXrnXBaOSz8Scc/8VdaCZh9Rrwsqel9Ij3OxsoNcSmw==@linaro.org X-Google-Smtp-Source: AGHT+IEVAd25KsuY/OyIB3s5CFDo96oQnr6G8t3BrqkF5EusNLB/UqDKL6YHDUl1UYROTA76P0i2 X-Received: by 2002:a05:600c:3554:b0:442:cd13:f15d with SMTP id 5b1f17b1804b1-442fd67197dmr141177845e9.29.1747718535276; Mon, 19 May 2025 22:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718535; cv=none; d=google.com; s=arc-20240605; b=PrYRAGGspqlqroomYlNyn3CfdjQPiDN4yfURuFwKryjRv3pf99LIBx76LezOIEArd8 jSNXZTk5pjV0Qm8OP/GJzE9BRzsajf1L2A6r/tTphL3KNklpQOsOYNBbFdSQc+Ztcn3n bGm/VZrOBFTcXRmy0mevzb0Rr/k5G6i/mNfcv+LGyYrCWLnXMhA49aPRm3vrscPEBB7I pLejxsfIPDH2FGepO0Ej7vrK6HhFPLJWKbY8QekcBHm3fy49uxu53UUS4XRr5sKwSPAG qUZVTCGhalp892K/HNzj0j4pUu4yQ+C3pkRjEQi8WfF4CNwgA2m5jTePkFB4ruEhBs6d kDwg== 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=QfQ1a4M1KVIw2CBwf7u747pnSGqTK3IwJyxpzizwiWQ=; fh=fgKJDaMo1KMtS1FZwIIUC7UmZdBzBON83nT//od/rJU=; b=ez82kvnjetxTIs1K0DpC8hKKDOuBQMmKnefieJAIx0Th81NZAnSiIcivLwGvud4ILt uVu7xsH81GjV+D3+OtJk28P9pASYU3voYP4P4m4kol2FTfGJ/pDcjlIZwUnrYyMXgdA1 ci05XPjj7R7GUuExw3dVjPFEY1jcHI/Bv5ozSYMVcsdXiafrdbC3uqdLusiBDY0ffTIu 75UdlQmYzyKbQbAQTV9UD0YwUtkHqG0PpwWRFlZmGjB2j1S5Mbs9yX1fndX0vGV7DR+Z 4L5DnKZLW49sKNmWLyGKcMZoDS56vRmKpTaBLMIq+1P1XKpdryFx2QSz2J4MeXug4BLz xB5g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gF2vhB0d; 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-447f3bebd3esi6822775e9.98.2025.05.19.22.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:15 -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=gF2vhB0d; 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 BD08082BF3; Tue, 20 May 2025 07:22:05 +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="gF2vhB0d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F3CBB82BF2; Tue, 20 May 2025 07:22:04 +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-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 050F782BD7 for ; Tue, 20 May 2025 07:22:03 +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-x435.google.com with SMTP id ffacd0b85a97d-3a36efcadb8so1447286f8f.0 for ; Mon, 19 May 2025 22:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718522; x=1748323322; 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=QfQ1a4M1KVIw2CBwf7u747pnSGqTK3IwJyxpzizwiWQ=; b=gF2vhB0dhR1LtY0o05iYkUdnBfuHGL2IS0/nEKhNZ1bx8rCMCUI+I4743UW+c+ZFvb ffsiouFQjQneE6duMa4auhkdZcSDnURdotTPcepFHlD4GfvU3k00vcYNzOPa4xaaiuv6 xO/lxc2gR9jykD73ZCRJ6FUtLJdX4APZoQW0m31Vad1OGJWhkClGxyr9HrIyCBrwOZus cdxh1KucxgCjnhKxNgqboXUjCUZKNPCcQpgM0bxN8iZS7uVSycy4BjH67TZRSZ/02iqF hWfoUneUXD3ScCMqryW9nZDYuLtgz/VWHYfHOK3UxUdgXPl5hUI+TFsyJxnzVqsTG3Mc klEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718522; x=1748323322; 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=QfQ1a4M1KVIw2CBwf7u747pnSGqTK3IwJyxpzizwiWQ=; b=G/Jc/wwyOfUdxJTIQWkuiRzJgmIOZnv01+T2QYjEwITV2G3Q5JtCyaoavayc0ZYdan mLUlHZQPjSIEq18sdYl3KXO84h6ir1OH3dBkWh0Yw1t+Yma9qPT+iyh9+ZwcrP6Z11cp 3SWUMAXAU3QKNu94CNTqNQ2pDUplGubVbbEqmi5G3Fsr2nGAwvYA+1Efm1xCS6gdnN5k oqUGiB7WNq21fsie+naszayu68ZDhb0+Kmj+q8Ta9bi56aXyfcWIIFxGAJyhoRH0trBQ nSXucCelT90d9eBKEhCLFz7g62AO1AoDCKlpmatI8lSh+v6r2lR9A75ZretZUQ7ZEzZR cF8Q== X-Forwarded-Encrypted: i=1; AJvYcCWGzGTcNaD0F8nPfMI5f7Ad6ecMzmZMXtg176ARxyniTpGnbH6jTQcrTFrLJ67yTV3dpZAn+vM=@lists.denx.de X-Gm-Message-State: AOJu0Yzpmg6dAOEnO50M9hLBMUHpqb+1j3BJP0gUGw1A5kkI40nA7zbO XRyKRZLeIh1h7zCguQ/2NQ9tdklkEjeuR2i9zUAoiNWAQZLIFcDTHhAV4oOMfa6FqhA= X-Gm-Gg: ASbGncvUuMXeUXHOnv5UzxJ/ChjbgObfok2lHxzt4fEA+opIxf/wQkRaRp6mSeeEqKa C77EVvHI9Vfzv8AMrb8adg/VE2ThX+W10yvMAdHzt/MomokI0G5E+wUyJQnsUJWnSBpAYYCyMoR 04r8gZTZoWzGkwIjyUSRyM8AiqZyuSDIuhPaFfuppV6xhX/ehQcu50R69oNjjIWAA/C2eWviQNW 7qh1eujXxyO3zpczApVWs+0p+7jHPOul8xlSN+FV3cwRl0WPqOOpQEquZAL1zHCIJNeWV1D32bZ W4HgzplHhdsvIRMtBFTzBvUJ8NZ11o9jVq4BFO9ziCTCrR5/knYiKF1nB7cKCDOnkrvyLnN5pzI = X-Received: by 2002:a5d:64c7:0:b0:3a3:6481:1ca4 with SMTP id ffacd0b85a97d-3a364812b25mr10748158f8f.43.1747718522485; Mon, 19 May 2025 22:22:02 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:02 -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 , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 01/24] kbuild: de-duplicate fixdep usage Date: Tue, 20 May 2025 08:21:12 +0300 Message-ID: <20250520052153.307194-2-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 Backported from the linux kernel commit e4aca4595005 ("kbuild: de-duplicate fixdep usage") A lot of the kernels kbuild depend on that patch. Backport it and pull in the 'rule_as_o_S'a rule as well. This might end up being unused but it doesn't break anything and makes diffing the files easier. Signed-off-by: Ilias Apalodimas --- scripts/Kbuild.include | 5 ++++- scripts/Makefile.build | 17 ++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 054dd157485c..7468223d3233 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -266,10 +266,13 @@ if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ # Execute the command and also postprocess generated .d dependencies file. if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ @set -e; \ + $(cmd_and_fixdep), @:) + +cmd_and_fixdep = \ $(echo-cmd) $(cmd_$(1)); \ scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ rm -f $(depfile); \ - mv -f $(dot-target).tmp $(dot-target).cmd, @:) + mv -f $(dot-target).tmp $(dot-target).cmd; # Usage: $(call if_changed_rule,foo) # Will check if $(cmd_foo) or any of the prerequisites changed, diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 90aed148c44b..10f31a57a0f9 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -241,14 +241,17 @@ endif define rule_cc_o_c $(call echo-cmd,checksrc) $(cmd_checksrc) \ - $(call echo-cmd,cc_o_c) $(cmd_cc_o_c); \ + $(call cmd_and_fixdep,cc_o_c) \ $(cmd_modversions) \ - $(call echo-cmd,record_mcount) \ - $(cmd_record_mcount) \ - scripts/basic/fixdep $(depfile) $@ '$(call make-cmd,cc_o_c)' > \ - $(dot-target).tmp; \ - rm -f $(depfile); \ - mv -f $(dot-target).tmp $(dot-target).cmd + $(cmd_objtool) \ + $(call echo-cmd,record_mcount) $(cmd_record_mcount) +endef + +define rule_as_o_S + $(call cmd_and_fixdep,as_o_S) + $(call cmd,gen_ksymdeps) + $(call cmd,objtool) + $(call cmd,modversions_S) endef # Built-in and composite module parts From patchwork Tue May 20 05:21:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891293 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1427946wrm; Mon, 19 May 2025 22:22:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVA7sJxgcWmGocBnG5vsvqVzZGwbfXKReFd7g3U6P4Qa351vR6ZRBHx5DlvSNGqdP1eSfSgdg==@linaro.org X-Google-Smtp-Source: AGHT+IE6w82jOVFqKgwmqwp0TsfFO30uWWum8hQyNtHFiwV2koSrZfzqECnEaCVWrOB8KEAnKF/9 X-Received: by 2002:a05:6000:ecf:b0:3a3:5e77:436e with SMTP id ffacd0b85a97d-3a35e77460fmr9775139f8f.43.1747718544984; Mon, 19 May 2025 22:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718544; cv=none; d=google.com; s=arc-20240605; b=MjG4tcEP57S7yFVRbMqcBYm684c5d4IUfHdvC8K9uheHxo41OkaCRLJGM7X93iOQ7y eYaTK4esFtMG7u9Yj3nNeoB+Pf9L/IUbCLpCqCRcU58IKBos5CktRCI4zy1h30Z6Qobd ONm7np9SSVfeZTy9hJ7mBvPsg+inp3cUA2ay75Im4zD/dHdF29JcIpWd3L9vA2udzkVq M0Omy9/mMO1IGCUaEz2fBavbVkbd3x5eWzLEMu3ppK6pAhunTWaFc5o3oNG4c9Y9+hvl aRTI1O4N5gLERYVAcsZGBmvJErL30i+CaR48pi5wqKgF1vb6IWJXA8G+PcOAmvc0l48r oCAw== 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=hLBYUCG2aR96Y6W3ij/bCgrGA+lEuBvlwVcfMTYe918=; fh=0CmpRpiePNr5dmSBJwVoWHKn3oMmLoYcnFc72Eo7H/A=; b=a7bPfnY7yGigdmqwzwGvo9PkDO3glTV8LQj835B3DMMeQpkKA27MChtHhVoicSggG/ 6WHtJiJ1FyeCA7gu+ktuDTWRce8EJDr0qfeIhD2D+i/ut8jXAueNahJTZpQpu1l0owCS z5wueqJDd4Am+Ge5wkk4/uFtXxkfFfc7EMwCg/moSw5pLbDINXOQhM18Bqvi1HQtDHiE ZnhD9nLtSdQKpCEpps1hSZ++yy43U8GZij1noq7FLsThRqelK4xV9PTKK8fJ3J4edyvK yBNrbFPp9Ad+ZqcRKc/bw6nfhdhDgbYJcMMMVplay9fZtrTR3KDs5WSWiO9Vdosao0QV Ip4Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=njhn4byR; 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 ffacd0b85a97d-3a35ca4be6fsi7209060f8f.66.2025.05.19.22.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:24 -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=njhn4byR; 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 0BCE382C10; Tue, 20 May 2025 07:22:08 +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="njhn4byR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2DCD582C0C; Tue, 20 May 2025 07:22:07 +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-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 4541382BD7 for ; Tue, 20 May 2025 07:22:05 +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-wm1-x334.google.com with SMTP id 5b1f17b1804b1-442fda876a6so33711155e9.0 for ; Mon, 19 May 2025 22:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718525; x=1748323325; 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=hLBYUCG2aR96Y6W3ij/bCgrGA+lEuBvlwVcfMTYe918=; b=njhn4byRgQV11ImYABkKA5FZg+8tao9Jo0A1Bc+h4jldWUBD+OA5HgWv+oUBX5WzQD umr3t+EJNq8Lerk4qbVJDlQC0n8MkfSwW7AMFbwygerfvE4daXNjvfYtH9tUCw11F7dL eTQ0iiZcB3XRI0TbEYjDRPNWIdOFkqU3T0hB5iTMsvc6GYWSz+JjmHyPQWs+aZNKwvE/ QwQ2p4H9EL76Txa2rcyvc4tzL1Ghitg9Wd/oI3M1kcJ8yj3PJQVKVJV+N5IIZ3jjGFZH 2eo0eoeuiMZEuTJPOk0+e7WPOHIRQvwXKEINZZ0aZ9zEDmH/xPyr0pdxTFB5LH4GGoPN k2Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718525; x=1748323325; 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=hLBYUCG2aR96Y6W3ij/bCgrGA+lEuBvlwVcfMTYe918=; b=YXFON5mvbs/Xh7qBP33np0irTzog7rQ2Uw/kZE6gLX/+capkrQdwEOGHRwhoFs3SR4 yEDxYgpWCZjTEbNyq47XMI33H+FYkdZLy1Jksubf4E3b2MV6DHKuiGcP33J1GnxCxaBp ckvYsiD8Qu5OmWpx58gtiofbvArxMO0ruifVmhTXk0yuUTlLE0VkPu9mZFRvkxjux72I F2uo5WVXywo+trQexbeAXPSNV00jOhHu82jlVqRG3H0laJpKBA7fO/OeuP4wc6RimFAk UC7T44G8I2y5cIeKGfsV/sTLjxHdFJQhR9D1+oz4Fxg0GoPRfXY6Bb71g8LOqU+ONfil iwzQ== X-Forwarded-Encrypted: i=1; AJvYcCVTrtWsYWpPdZm3cnnp86dmsSo0ZPJOrE/J19sS+/0/2kcXYtLE74d1POtO/XPc3Kfs9AOfRv0=@lists.denx.de X-Gm-Message-State: AOJu0YwFlwriJPtB8TdKzoWGCX4UPyF+lQ/QfqHrVRsU4xmV98+/H+xu dRqKpCfLCLOuM9FFKYDpnwFyPjV/XEbuN9cYa0+hj+sXQkd5UGbWkQ120sicYsLfNlQ= X-Gm-Gg: ASbGncsanDadY8dKLoSCQqvUPdMcRK9FxORXrxeez3Og8mu7oxqlplIuaRVoJx9aJdq XJnGCh60oicd2juatBLnFwNAaVeBWsYr1pmTwCmsr90g7QBnJBw7KTHGVa+AyGQIXuUfPOShXCf Ya32YCVXbYGx5WnKdLdUSlxEQL88dmXmoVnc5pUKpikdG1qU8XfPkJjyhbi5FenwSMd1aIP8yik D2RmP6HKJo7ru86h/D5mbn1LjqWaPwmqT8f4nufqWffWeUEXmzoB/W4aI9wCBm+r9ikC16pJ+T3 Dg351b5G9ppA1f2THGDRhIZRzsYs5YkGlx1xLhgQwrA4yClTPTBz1PNd5fAP33TVLd9Sn9sYwxk = X-Received: by 2002:a5d:5850:0:b0:3a3:63d3:369d with SMTP id ffacd0b85a97d-3a363d3396cmr9633824f8f.0.1747718524757; Mon, 19 May 2025 22:22:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:04 -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 , Jonathan Humphreys , Sam Edwards , u-boot@lists.denx.de Subject: [PATCH 02/24] kbuild: disable dtc simple_bus_reg warnings by default Date: Tue, 20 May 2025 08:21:13 +0300 Message-ID: <20250520052153.307194-3-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 changes from the kernel commit 70523a3ce5ff ("kbuild: disable dtc simple_bus_reg warnings by default") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.lib | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 83fd5ff6c31c..2422ac980a46 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -302,6 +302,7 @@ DTC_FLAGS += -Wno-unit_address_vs_reg \ -Wno-alias_paths \ -Wno-graph_child_address \ -Wno-graph_port \ + -Wno-simple_bus_reg \ -Wno-unique_unit_address \ -Wno-simple_bus_reg \ -Wno-pci_device_reg From patchwork Tue May 20 05:21:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891294 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1427994wrm; Mon, 19 May 2025 22:22:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXvj4rKMAswxJXS59ZZpaEEwZaQ85maEN3PLuy12/IWFHH1hrx6O/X4kcxq6yqmrL9BShmi+w==@linaro.org X-Google-Smtp-Source: AGHT+IGtPm9sBC4V+PWAS1lVXzkUb5NzgzOpR4Ri5yDtD0QbYK/8ZeUGJE3H39dARGX1cttVqrvP X-Received: by 2002:a05:6000:1acd:b0:3a3:7675:902 with SMTP id ffacd0b85a97d-3a376750abemr4011512f8f.21.1747718553996; Mon, 19 May 2025 22:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718553; cv=none; d=google.com; s=arc-20240605; b=adzg6wGqTgdI2MZ70M9rIzuy59s1Q1PXm1TDgw3J0sPOg48zFvrS5fAdoTCDN/1TQM XOm0FZ9OLlPISiYdMzg/3+FLEIxBvRYjvpO7j20otxH3bykOgwJVbJMlUYya9a1m9e4+ oNNMo8ba0t5xBG9QzeQ69YalmQoS6AUb41+UKvpWBU0z27/PSbvhJgsuiF7F7o76Iy95 SLYXGZlCWvieR+iBYfNtuoZ7YIoITq1NadugTwSc/6BpTlAnNzRK5kLAJC51Tlhjf/CK m8Rax22KLtybJaoGByihmwX9inRPJBqagzuAqzd/Yhpj2mX1+H/Lh+1ivK+uUMIdYUsg RU2Q== 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=ivTMYryFiugSVHlDJyBnwzVVzOeu9ckLXmKQbnYxhmY=; fh=DEy2WML/wqR704gTQ3aYSkOSLRZMiRjuy8bKwoWNj0g=; b=CHbNQ0e3MjIIWUboCfztrAcHD3p0sNU9FOUTDk4QTUtz5/WDRWfGKQioC+AYAFOmDF wu7hvB9ISsEydf9wDN6lVYzZcMZvzptnxLyItF6/x59C2X0ydCYXVCdqe0cZFSpI2z7S 290LvzmWFoioBqtZiv0WsDi+eWhfRVgJEiafuaSTcJYmUcmyzZroBUDSch/WnOHoIe7B YYkgSgysqmR7zjAcjxLxeY81EJrOG5MDh66+Kltgw0kVL2datagZSAoe6bskn2aS59MA OlVDtTb3yh/l9x6uoNtyX+LUoi0y28xRViS2JK0s51vpJlz9GR0YxDlPP9ZtkjP1+bwk wgSg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p8MgiHDM; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-3a35ca7fcd1si7290493f8f.414.2025.05.19.22.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:33 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p8MgiHDM; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 5703282C0C; Tue, 20 May 2025 07:22:11 +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="p8MgiHDM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8AB9882BF2; Tue, 20 May 2025 07:22:09 +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-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 A43A182BD7 for ; Tue, 20 May 2025 07:22:07 +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-wm1-x334.google.com with SMTP id 5b1f17b1804b1-442f4a3a4d6so33159265e9.0 for ; Mon, 19 May 2025 22:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718527; x=1748323327; 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=ivTMYryFiugSVHlDJyBnwzVVzOeu9ckLXmKQbnYxhmY=; b=p8MgiHDM21qjvVCRTvOTDYMKAAXuxiFIogHz9B5ejr32mdNJql1pv1p0NQUzjEJ341 UaEqArqhBpw3vzOkozhwLCSs6/cSI+jmgNxlDZLL35KPkJ3l7DSXbb/sVrP+hl6Kkg9U /trWBgZVFrCIuAxXkGmmqGJ3hLT+aM3VPsGFEwHHKLWaS/ihHXvwbAX0ib63Eltq8mNJ GzubfdpSn30euDUW6J7VV4/YxYEbe+lLoOpRDcKY7uUhinLBe4fh9oEgOHEBz7KeZHM8 v4PE+fXgft6XxSxowg63Ms9tx3BNuE21S8F/LOWZL+84ItZ8fRKVMgDdj29kmkIo8uSy hROw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718527; x=1748323327; 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=ivTMYryFiugSVHlDJyBnwzVVzOeu9ckLXmKQbnYxhmY=; b=XHo/+iPw0kIUgc+Q/JGgqrVon+Lxfz48yJiYjauu8IMieakVcWxupJZFWTmDNIIH0P jJcxrLtwt2S/UWeNvvat/At3Q6BfTiZtwIIBilP27dWOJrE5oqXAyXc/HjD9+lXL2Yqp eAQKU6KfNE7kE56EOBly0ip4/m0Jpoy925mRMMl+3gYw7RkN4eIL+1BfVv1GkXU8AXPE IWSMWjmtZmXSGbj904W66/LyQcl6DDkORSZHymdvqlDX4UXtSr6lFzPIL8xJlUoFo+Bf lBNO2pBF5PgA1ZAMqVkN40OuFPblT20yeWLoCypIBAfVFtXivqXojfb7B7qVoo21kYt2 y+Cw== X-Forwarded-Encrypted: i=1; AJvYcCWffcYJR00t5SGQK5ChqmUG/NQZkId9gpXz85CDazVQOzQeke7znL0mZ/pIPbF7nZU6ZD9V1YA=@lists.denx.de X-Gm-Message-State: AOJu0YynmFhc/OYIw+XM2QD+870btsrZKJtgKQ6O45A2Ysi3x32AlvST WhY9rboBcHViwhJaHeQlZIXHlcwIwP+x0YWlKZ793OUGGAjJl3xymmUC0mMIrYW1cHg= X-Gm-Gg: ASbGncvV0smGJqnts3aqx9sEQXFJMQate0QbRxz9kjvbYyIVAkbcYoxrb2flPVAKO7W m6nktHbAcmaWmAeVSaTU9TzXFuKCUhYmyKSJ2kNNcXVQSZS4fcn/uy+7RSALMUfwvEvk4PmrwI4 rHRcDjhe0pLUlrqcoUD+Bo3qffZdhE1A81d2Q2uFVyxqPPJBIrHXiVyu2PeMyoGi2PRXNy3ZLtW QYFKMhG1VX16+oI7S+tf5tPbn+X6RdzTZNYzQ5dzEux5YQiHYEbQpmMvLT9onyo9uMzK1359pQp 2m5EvuUfOTG3OYyiWmbysr8q04MKzXASkIWZF7/W7EwcEVQUIoqJhfpDtsB6H6lPC9XRv8/32Bm Q6UeHksJt+g== X-Received: by 2002:a05:600d:19:b0:442:7c40:fda4 with SMTP id 5b1f17b1804b1-442f84c209dmr165502775e9.1.1747718527113; Mon, 19 May 2025 22:22:07 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:06 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Michal Simek , Prasad Kummari , Jiaxun Yang , Rasmus Villemoes , Sam Edwards , Jonathan Humphreys , Quentin Schulz , u-boot@lists.denx.de Subject: [PATCH 03/24] kbuild: Enable dtc graph_port warning by default Date: Tue, 20 May 2025 08:21:14 +0300 Message-ID: <20250520052153.307194-4-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 changes from the kernel commit a2237fec1e06 ("kbuild: Enable dtc graph_port warning by default") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.lib | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 2422ac980a46..c3c6c941bef4 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -301,7 +301,6 @@ DTC_FLAGS += -Wno-unit_address_vs_reg \ -Wno-avoid_unnecessary_addr_size \ -Wno-alias_paths \ -Wno-graph_child_address \ - -Wno-graph_port \ -Wno-simple_bus_reg \ -Wno-unique_unit_address \ -Wno-simple_bus_reg \ From patchwork Tue May 20 05:21:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891295 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428028wrm; Mon, 19 May 2025 22:22:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUQab1S2g11x4BD/uzaslBuVVQkZAnhrQcHd+D1760OVb+c6hYlv86s7hl0q0Musvb07qasYQ==@linaro.org X-Google-Smtp-Source: AGHT+IF+8OyNCmlYTgFZplD9Pv+OX5aDaqdO52gb4UirGU591bR9IAwPZpgSOKae1PdOpo2dZF7R X-Received: by 2002:a05:6000:2012:b0:39c:1f0e:95af with SMTP id ffacd0b85a97d-3a35c821c15mr11990730f8f.3.1747718563604; Mon, 19 May 2025 22:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718563; cv=none; d=google.com; s=arc-20240605; b=DWbnpE2uplNQBTJflLJbw0HHCytj982pnJZkrKbF/hsP5n9mmvtS4Hvt/wKjNJ3Z9g lf/CMdrliYw9uUkMtWhoWsZLArDu4+YlcAt4hJnc0PTd5UfYAwOvnUy/7ntdz+B4/Jl6 Nv8RpGDHiB/6pncHXAOcRzZlZgKZx6jDtvzlYW4dcOirkoovlIrFiGu+WWkibaV459rC qdA+BvS2JgrqbaJhidGSo83g1ibPNbaaCgHAuUPGr3tRvE0f0Lc2ZycR/vZ1TngqW62t cJWpJGNpAYF6Q1Xg8ugrQsV4YTgqHfKwStXXU1Bt2m9mrjlS7ki7KAnd4v1glMaazEh0 8i6w== 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=JsINoPKzYyO319retZqnRO2Ca2xaXXbDc9IMIr2DgW8=; fh=QBfm4Tt6QSZSgzw94JldoCF3x3RL7VE//IkZCfErAWk=; b=lh1NSDH21QqoLDV9HS5InxM581geyzpmI9FzqPNuJaO4HRvKhd8pUh4Msyu9y2UiBp XtN9yImw1tYWuW7UPnOdfWn8AoDzz1e+57uuVLHdnBi6DOqhiRRbLbDbI61CLMidjYa9 80PXD0XcMetnVBTSpVo+11vXLVsfqYJ5u9B1g+XqQUAtk73YqswxPEbDN1mYlBpVSt5G 7sqiVtrUlK3AyomjB/w6swWUVHKsjmqd6W+8qBJkHS1fp8Hjzs33VryU+2SRUrpUA1oX jD3wekl33uuIotb/XgV1fKmzWmUZ6Yib1C8Bn79dS8PHe/zdTnkYGGptH8H9glUR4K9y NEoA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rBNkEozn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 5b1f17b1804b1-447f1825357si7038415e9.23.2025.05.19.22.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:43 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rBNkEozn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 9FD1782C38; Tue, 20 May 2025 07:22:13 +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="rBNkEozn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 10CB482C30; Tue, 20 May 2025 07:22:12 +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-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 1EFA782BD7 for ; Tue, 20 May 2025 07:22:10 +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-x429.google.com with SMTP id ffacd0b85a97d-3a0ac853894so4495230f8f.3 for ; Mon, 19 May 2025 22:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718529; x=1748323329; 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=JsINoPKzYyO319retZqnRO2Ca2xaXXbDc9IMIr2DgW8=; b=rBNkEoznB5760cYFv+HU15bkS8gVUGY7MUY/94DiI9+TcA/YDWOrbBFaStC4uvibGS 6xXTmyIy18v4eEoiE3RZnLW9lDGrgdq7eViXc92hIEbr+Wpq/cjI7cBr96eXH+CLN8ms yrDiV4CWP54FfYOfzTBAFgPq8C1RLL1rvCLDydQi4QPV0zxo6SPTf6uxSBlT91IbTV9P bRyoMOVNT9WVRc4u3VlOfFV33WSIwQF4Dru07sIO/WXO0BvxpOdwcL1XQhnP6y0xsaqW t007doCiC4vx5x5iswlrvqEzXxeqiQmaAipdTiyTod4gK2iV1DUhRIRVAYVs1ahtV8fV tBwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718529; x=1748323329; 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=JsINoPKzYyO319retZqnRO2Ca2xaXXbDc9IMIr2DgW8=; b=kHb0qbrNWapeJvstlapMnq8bNEmNGEDWmxhMehL6494lMGVQP2A8QlqFrNThTgVFUd +6Yvdnh0qxbzSYG4vwi6IcC3Wdjin6nC8kXlqskq2H1BnNM4AxQSBCGeI1VfRVlxv6bf ee2T0VauOso6R2AR5CXGRBJKgZEmIqNRXDOQF9b1KRwvMW1og2UO5gS1P/AyDRHT6hFw jIRn2tvtcBniMLcrrXoFowAfysYcq4RUjB1ah/09UqvWo50lucHidBF7T5tPb7kf08xC Sfgy+pufvdbFo1Og8XiR7pYVF4uaRLSolj4GwXQw4ipNyqHgOo9Aew3JoCR0ae/oGd/c Leig== X-Forwarded-Encrypted: i=1; AJvYcCWTYXYXUlNXBf2WcL8l1W8fFaGOdSb92YZfpxT5TqsRyrqWZdrHVW4kpUH9adzHSqL9YrfcIcg=@lists.denx.de X-Gm-Message-State: AOJu0YzZKk43PrGF29jmpP+nST9x+VfweZdli8mN3FUAfDPEFJ5unpre fOFQciecK48o8tzMu7WImZFG3qWosZB/9+qUnb9E1Jtw1foDE4nRRDv30awFEWXmiC4= X-Gm-Gg: ASbGncvJVBvHE5ay9jaTYYGFCgxMubViM0xDIEI6y563RjJR7Yft5NZzrZ6+szkbe88 DevqBwYEvhnWdGKxQLM8nk17pZhdhqcKpI3P827pBPjonN8a5MXR/tmP+lCFmDCkpkMxvv4ssKG uQNBlj6vm7Rb/W08WPLeGgupL0zf+BAladJ+FfmiL2+tK82d66qTRMlsHzAyDoyq3bTrCb2+7LF VqKaHcRYNxRFtSk+eLb27jPUcCtrNETnXuh2EwZgUWRNRVa2F58anXshAk1VZRRKuAgD3f216hM sygBBhvEMGZcWlqCKLSNEOS+J13yjx40ARrZ7hNNukaCX/1keWfmLrvPaAQx2YanE3tVgeYK52c = X-Received: by 2002:a05:6000:4304:b0:3a3:6ae4:6615 with SMTP id ffacd0b85a97d-3a36ae46750mr5772110f8f.13.1747718529552; Mon, 19 May 2025 22:22:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:09 -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 04/24] kbuild: remove redundant 'set -e' from filechk_offsets Date: Tue, 20 May 2025 08:21:15 +0300 Message-ID: <20250520052153.307194-5-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 changes from the kernel commit f3fd4a3f3a38 ("kbuild: remove redundant 'set -e' from filechk_offsets") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index c3c6c941bef4..a2b3b2e63872 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -718,7 +718,7 @@ endef # Use filechk to avoid rebuilds when a header changes, but the resulting file # does not define filechk_offsets - (set -e; \ + ( \ echo "#ifndef $2"; \ echo "#define $2"; \ echo "/*"; \ From patchwork Tue May 20 05:21:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891296 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428069wrm; Mon, 19 May 2025 22:22:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX4TEOF6Jr4xoNPOI06N096oZ67f9zvO3mQXf1u5X3D//gbrS9awFwV6jnihnMIElEMoMq3Ag==@linaro.org X-Google-Smtp-Source: AGHT+IFst86pA5K7O2TVWKjHKyTAziwKUN8shdUz9DrpJ6lyWxaxdXEQXuOUUEPVmQ9vxoPAzqCJ X-Received: by 2002:a05:600c:1553:b0:43d:17f1:2640 with SMTP id 5b1f17b1804b1-442fd665728mr125772075e9.26.1747718573094; Mon, 19 May 2025 22:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718573; cv=none; d=google.com; s=arc-20240605; b=fyOYxdbOcMkXUdW94Lpu3BTpNGg72vs8x32zQG9xwII1f10R1dDNnW+efHltYmGB5Q EuvsRIJeLNvDgIFqkP0IZOKm9Q9Wxwa4r2sdcs+JGwczFr1ow+MZGURKkSSSxP/9IYJu JWKCMKN1ML8nYI/OOyJb/C5ukApRKmn8keh+cH7b0LCHaWHCGn3gWpyQidy2GNtnNEmA iu2Pcrc9mtHmKuQkP8PcS8No34zA5BevKkSGVOsk1okq7IUAYdRwfi8w208sairTrciF /6PwE5u2qsVGsWFgOYAQcGYBMvBeNZQlwuFLYYazuy1GeZ57f5gX/0DTqelXoxT7fdfv lI2Q== 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=RId3ynH0dbdaC44l+hzrdwIGHuq1A4xDU8SjctHA4Y4=; fh=PkB+4he6oJLXZ/44lo4tqNqtrOe1OHOWU42UJMmH7cQ=; b=Ku2K6txwscmP8mWfgXte4Wt3ltCXiIs3XioGmYPxRATzz6z4Fx65fPhIxnmb1ZoYnW C2YRxsp7KJW4GiEDDFVdXi72CLTnd/zzmpSjNLAAzL0N+KjippNiIhjUF0YF81u7NcaC /enPfj+0RByCPgsGOD9BKcFZeQyao+5KDmI0XK0nonMaI2BitmpJuK5m1toZ7hbLllAC LZFl5zmHOO4th7MWKIodt7aOLqNjrqB+XlB3g5c/uHreXK02L11Dmn79ykYPJ8Xk+bkX /jvPHQbTMMs8+7op+ytBG5Kzj/WFwCo4P90TuAQW7UmS5+0iWl/L3yrayiT0VpIYUMsm rw/A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZCzaLKdC; 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-447f7ba6964si6566195e9.164.2025.05.19.22.22.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:53 -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=ZCzaLKdC; 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 E700C82C67; Tue, 20 May 2025 07:22:14 +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="ZCzaLKdC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 647D582C57; Tue, 20 May 2025 07:22:14 +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 6A40D82BF2 for ; Tue, 20 May 2025 07:22:12 +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-3a064a3e143so2779764f8f.3 for ; Mon, 19 May 2025 22:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718532; x=1748323332; 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=RId3ynH0dbdaC44l+hzrdwIGHuq1A4xDU8SjctHA4Y4=; b=ZCzaLKdCEgT5ziwv36QHMq0vFe3dX9ZyV2ef4EtKwgSZajsi658mt/SbvMP7zzblsQ DxNWxHUj7r68uS4IlkpOu7lzv2Lk0hIPIkifmmSV/kz2nF5FUmgrdRrkKwDxhf8HBqJN zMRO0kYRfzafSLAUCqS0KLRC+A6u8A9vKQzWU4Hj8PqiGiLLrKN2ShmshdNLTyW/wZB1 yk1u+ClO6sRQxbeoTO9EFAMeYbUcSNOLUH2zePGafulGdd17FTdzHueSC1G/hfPMQmlU PxUR4vmLgGvkz1qi28020m/pjwlr4RAnY5Ja2r3g8HHsDopTeapyQxZJ+mOkSbsB5H16 5a4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718532; x=1748323332; 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=RId3ynH0dbdaC44l+hzrdwIGHuq1A4xDU8SjctHA4Y4=; b=n93LY1VPJCcMefWkgA1fbiNYD3jjbw2ZHCaL5kScjnyOlrfYFRJ0mLfWC1NCEcf8Kh DR3zyjhhgVWoTajtHt5sap5Yzli/mAqYVP+gGhTUpmSARKJId/FLkT4UkxzeLWGfhVER 6WLU9QZhu7RtPQPmEwe6EmKNxBLboVJi+aSOUMmYCGOQNEtndqutYLLLGLIf0zegpHbz uPOkyojfT7qRNvt4gVrxnxTwrIonjsU+iRpuG6WglEPoMYldGtGO8vrV4ap7LTnLkCU/ wKfWfGaZOZy1B/Z/kEFGRqmRzrpVlEW70GkJDrhpq6h2Nupqbbj0A8N/rNft06wtkB8v Kpxw== X-Forwarded-Encrypted: i=1; AJvYcCWvSVWNfDdejxMVaDnayVivxBOAC+mK6ROBvaid1BtjRU3BZXbo2n5ZCO059MAM9S1VV+Dys64=@lists.denx.de X-Gm-Message-State: AOJu0Yz+53nuIq7cCUkB5pzzssgnxvKW3S44qtRJRiHSLw7vVE+/9/jv 5rzLo4NNB4tivSbiGU7a3dDkY9dFeNnvLuFF60RFOeZJDAkSN6l+9DrtJ145qzlMG34= X-Gm-Gg: ASbGncuSty0AWO24SRo1aKiycU5DoplGnzoHsnZ3eIB/MNlJjf9mMlMNFRyo4euhB82 GAOU9QrcyEqVmkp66RbwY9vFJQyplTgZ9tQ8Cg8f7e+HCmU9KjTkfkRnk1yQuATmARIMISUFEbm EziOp1WA+wFS+2np1gZz2smIWD05eNQM6tkLlEqRUbsfZ3P9jVFgdLQ8COKXN3GdY+Nztow6zxA 66rgknZRSo6OWFvJYFsjIBgYXqZmozsAayt5dx60x4//cRuwx3xFsTIMDI9NBo1oGOGcDlloovv WYcitO6ElTQaoz6JLjh+KC3ahjUHK652OlkpA9HXjRiHn3glCui/KWkkUsizu7kA05ETaj4a90w = X-Received: by 2002:a05:6000:18a9:b0:3a3:6d01:1ed3 with SMTP id ffacd0b85a97d-3a36d012147mr6090222f8f.42.1747718531925; Mon, 19 May 2025 22:22:11 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:11 -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 , Jonathan Humphreys , Sam Edwards , u-boot@lists.denx.de Subject: [PATCH 05/24] kbuild: remove redundant target cleaning on failure Date: Tue, 20 May 2025 08:21:16 +0300 Message-ID: <20250520052153.307194-6-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 Bacport from the kernel commit 172caf1993b7 ("kbuild: remove redundant target cleaning on failure") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.lib | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index a2b3b2e63872..7690cc61f9a1 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -288,8 +288,7 @@ cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ # --------------------------------------------------------------------------- quiet_cmd_gzip = GZIP $@ -cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \ - (rm -f $@ ; false) +cmd_gzip = cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@ # DTC # --------------------------------------------------------------------------- @@ -562,26 +561,22 @@ printf "%08x\n" $$dec_size | \ quiet_cmd_bzip2 = BZIP2 $@ cmd_bzip2 = (cat $(filter-out FORCE,$^) | \ - bzip2 -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ - (rm -f $@ ; false) + bzip2 -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ # Lzma # --------------------------------------------------------------------------- quiet_cmd_lzma = LZMA $@ cmd_lzma = (cat $(filter-out FORCE,$^) | \ - lzma -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ - (rm -f $@ ; false) + lzma -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ quiet_cmd_lzo = LZO $@ cmd_lzo = (cat $(filter-out FORCE,$^) | \ - lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ - (rm -f $@ ; false) + lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ quiet_cmd_lz4 = LZ4 $@ cmd_lz4 = (cat $(filter-out FORCE,$^) | \ - lz4c -l -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ - (rm -f $@ ; false) + lz4c -l -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ # U-Boot mkimage # --------------------------------------------------------------------------- @@ -627,13 +622,11 @@ quiet_cmd_uimage = UIMAGE $(UIMAGE_OUT) quiet_cmd_xzkern = XZKERN $@ cmd_xzkern = (cat $(filter-out FORCE,$^) | \ sh $(srctree)/scripts/xz_wrap.sh && \ - $(call size_append, $(filter-out FORCE,$^))) > $@ || \ - (rm -f $@ ; false) + $(call size_append, $(filter-out FORCE,$^))) > $@ quiet_cmd_xzmisc = XZMISC $@ cmd_xzmisc = (cat $(filter-out FORCE,$^) | \ - xz --check=crc32 --lzma2=dict=1MiB) > $@ || \ - (rm -f $@ ; false) + xz --check=crc32 --lzma2=dict=1MiB) > $@ # Additional commands for U-Boot # From patchwork Tue May 20 05:21:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891297 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428120wrm; Mon, 19 May 2025 22:23:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVRsk0jbp3owLiRYRRHmqz+UGv0dpYlNtj5ed7bu5XlO2WV0IwRhHKaxO3FFZVBovNweVkB2A==@linaro.org X-Google-Smtp-Source: AGHT+IG+Fpf1KADUlNnmOIPUJohsQQULb+CfNyQQqnMXoocAP6k1Mg91uspFnIjt/yjF6gHFvqd2 X-Received: by 2002:a05:600c:3f06:b0:43b:ca39:6c75 with SMTP id 5b1f17b1804b1-442fd63c7aemr170351945e9.16.1747718582244; Mon, 19 May 2025 22:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718582; cv=none; d=google.com; s=arc-20240605; b=lvzDz7igwS7bkqnUGdUvvroh7VIG4xBouyFpe9085sqA1cQP2ckQoV+gNrD8qdtSHC hmk1Dp4RU/9+6XaQ34NW7xr1amFLeYj+EwsacSYeQv+3lH7sd/5BbCjA4x1MfbFQ5HVw eQEs58fBQNhjeOTNgzCrWH7M9+z7sAGiZCgwB5CKshQqwc2htIonWEsOQJz4y79n+IvH 5Na4EOTl64wgEIewL/sGlNr7WwwEv7Cs6/WiocvkUj4k7mU4sLf0jv7ZsXI5peZ2KqNH EWBvNWgjcSk3ClAwvjHYuMcKoF1DymWjRZKWE1lHKJVrhyTvPKXWsIkPcq1a9S0FDq65 IKDA== 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=/hd1nfxYzgsiXWY0fAunb5HTMFrTCLpis7HmBV1NZUc=; fh=Gus/QuWaxsvFwc8UDAuSDf75E3ILYUrlQGHL4TLHdd4=; b=gTkZgCwfoIEdUZ5IvbDsw6jpJ9xL0OlHc2i4cc33hHQdkkg5uJrN7G+1YtdLwN4HJz zHYoluyxONHL3cx50Z/ca54LXnxpo0GM9zAJmvMV890VH5jEdHbISj/VJyx9YmO8sX/0 O6YRckxQfqC+LCK23+tir15qHqTcn45GGudVDU26FyA3TvBnxTueUPZeqv5dD9/kgqv2 fkdZz8EL/khJ10jZJxTBitKcAJD3dsX/ER9qLp6q8LGWjbXm4YgSyiHRFytqQScTrTQd fNXrGMI9jmOpnKqqUTWT0PhxyUypyGz8LVRhH2zO1RK0+cOaR9K8yOErYs6H1ibHDs4d fSkw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iufjw8Lk; 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 ffacd0b85a97d-3a35ca93a62si7166098f8f.890.2025.05.19.22.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:23:02 -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=iufjw8Lk; 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 3F8B582C30; Tue, 20 May 2025 07:22:18 +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="iufjw8Lk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B99F182BD7; Tue, 20 May 2025 07:22:16 +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-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (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 BFBBA82BF2 for ; Tue, 20 May 2025 07:22:14 +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-x42d.google.com with SMTP id ffacd0b85a97d-3a36e090102so1046248f8f.2 for ; Mon, 19 May 2025 22:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718534; x=1748323334; 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=/hd1nfxYzgsiXWY0fAunb5HTMFrTCLpis7HmBV1NZUc=; b=iufjw8Lk3k8HV5ZvGF0saYey1qocxxbDG8rhj0BAYTFgWOX14MgUQosHg3zEbvcPgb f3B4c82HUtDV/LF0r7MZXRTvEGElrFqgmNJy5QBDlOQfjz2jfSvw4fPSi8mc+W2pfVnC /mY87fNRpFJjNdzwVd5ndVKzDhohA3PaEdkHGipnBhGTZTaU/WK6WcNdfBrnkT6GISs4 kk8VI7AYBftrlW4/6lViFpOFr/umKLyCE2MAsiqjNJBhBaius848YAs4chCGqo6OO3GC 2P8x5Ka/tTld6eBnJGvakxfAHw8PXa7djOuCroRR0559d6PcnWwSDgciKyRfpH+D+yM1 I/3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718534; x=1748323334; 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=/hd1nfxYzgsiXWY0fAunb5HTMFrTCLpis7HmBV1NZUc=; b=BLXchKapVXOweWwTsCBtoBk3bMWTO9O2M8CfGgpDVXwhrdHLah/RYqjZI8eHNVH75X 32Fluth6nz6HoZOGF5PyufQh8TrAiFzGgEodDEn0PUxo1fPlGOYVp2UJD7YqkvxMscT6 Byaeku5V/t2O//jSJn5p41Xvq3qPrLo5Qq5jDEie4AvAdxhjJ41iQLXWTphZFOtx/NSC Ph1Nfa9tXNHEdnIvwG7fFeakljCJRiyMUcmh40uUnR8ZkHflV19THwDm86/qcLYvMMCm WvOGZKP7e1qGQJ3tBeBxgRUDr5dR2IVWaxqUq5QpmrHqrovCURerV0X6PElSyvLr20IE 0RgQ== X-Forwarded-Encrypted: i=1; AJvYcCVbm15JieX3q/7c2Fr+OCVZqg7h35LyRmehC35ihDR+j/oRSEnJAdIQyseJLvrt4GQaHF/v6Tc=@lists.denx.de X-Gm-Message-State: AOJu0YyKvQmXxtw1Zb/FitWjOhooYa94Fa30N7wvQKWXDEVKP60mMagx 7QoTkkoL9uPU55muLiFkvAGy1ING4e/rQ0oLlP3QYWuMNYcsEbckoJLXsjweGwU29rs= X-Gm-Gg: ASbGnctbzj84eYpnor2CnfSZL2cGOIqHjxzUqk4q6Z6nEQUodUaWS4n3y6seshvF4Jb EBnMGnfM/K/i0prIUSanrQNCY9gwVZJZltgaH/V4y8PfhNffcury00i2vpzCehM0DFWOElcrODp vAnNlNZlpd418EhD31lhA7D19zHC79wbvKcsTgda58/4XVa4NZVtJyg7ibgMUfP75T+sslGHVLj dvo2WPl1zfjpXOxKsORP5QgeCw/Wve12lz6IuTykMlueIVLz8IWK7zwUMadIiyOWYbF7B8e5JXY Tk1XythStj7oI442a6KuGhii1XGlC05ynSRfs1tdhJs4N+NAvf66/QrlI++/Rn30z/AaMOzugAY = X-Received: by 2002:a05:6000:2011:b0:3a3:6f1a:b8f9 with SMTP id ffacd0b85a97d-3a36f1aba52mr5132864f8f.15.1747718534265; Mon, 19 May 2025 22:22:14 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:13 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Michal Simek , Prasad Kummari , Jiaxun Yang , Rasmus Villemoes , Sam Edwards , Jonathan Humphreys , u-boot@lists.denx.de Subject: [PATCH 06/24] kbuild: skip 'addtree' and 'flags' magic for external module build Date: Tue, 20 May 2025 08:21:17 +0300 Message-ID: <20250520052153.307194-7-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 from kernel commit 58156ba4468f ("kbuild: skip 'addtree' and 'flags' magic for external module build") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.host | 6 ++++-- scripts/Makefile.lib | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 7624304e3e9d..bd5ed4c63b7f 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host @@ -72,13 +72,15 @@ _hostc_flags = $(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) \ _hostcxx_flags = $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \ $(HOSTCXXFLAGS_$(basetarget).o) -ifeq ($(KBUILD_SRC),) __hostc_flags = $(_hostc_flags) __hostcxx_flags = $(_hostcxx_flags) -else + +ifeq ($(KBUILD_EXTMOD),) +ifneq ($(KBUILD_SRC),) __hostc_flags = -I$(obj) $(call flags,_hostc_flags) __hostcxx_flags = -I$(obj) $(call flags,_hostcxx_flags) endif +endif hostc_flags = -Wp,-MD,$(depfile) $(__hostc_flags) hostcxx_flags = -Wp,-MD,$(depfile) $(__hostcxx_flags) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 7690cc61f9a1..f1a78886e84f 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -143,15 +143,14 @@ _c_flags += $(if $(patsubst n%,, \ $(CFLAGS_KASAN)) endif -# If building the kernel in a separate objtree expand all occurrences -# of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/'). - -ifeq ($(KBUILD_SRC),) __c_flags = $(_c_flags) __a_flags = $(_a_flags) __cpp_flags = $(_cpp_flags) -else +# If building the kernel in a separate objtree expand all occurrences +# of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/'). +ifeq ($(KBUILD_EXTMOD),) +ifneq ($(KBUILD_SRC),) # -I$(obj) locates generated .h files # $(call addtree,-I$(obj)) locates .h files in srctree, from generated .c files # and locates generated .h files @@ -161,6 +160,7 @@ __c_flags = $(if $(obj),$(call addtree,-I$(src)) -I$(obj)) \ __a_flags = $(call flags,_a_flags) __cpp_flags = $(call flags,_cpp_flags) endif +endif # Modified for U-Boot: LINUXINCLUDE -> UBOOTINCLUDE c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(UBOOTINCLUDE) \ From patchwork Tue May 20 05:21:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891298 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428151wrm; Mon, 19 May 2025 22:23:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVE2Xy3h0le3mU1T3I22p+pkg+zzQjqJinjvfGc/bF+xgiUny2uos4gu5YjlbiAMxdkoi/WPw==@linaro.org X-Google-Smtp-Source: AGHT+IF1A/oEfXSC4jYn3h44fKAk7W1CvEdjKXfsDOz7cB55RK38FzneEVcUh8YnNl4/o14wJjkv X-Received: by 2002:a05:600c:154a:b0:43c:fcbc:9680 with SMTP id 5b1f17b1804b1-442fd664848mr109524005e9.25.1747718591794; Mon, 19 May 2025 22:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718591; cv=none; d=google.com; s=arc-20240605; b=l3NAFyQZUx2IPusfwhUZ8sbbutKK99NP8vRKgsxrG5Kzwb+XocmmhjTmKq93UAMBt2 Qj2nC+GC/zpPKi8GikWqRGAsLW8/fQUDpqV991gmw6mVlHtTtU06o8P0h8kl9iqm49o0 7Mg+UtZ1j3Y7kr3GLc9J0fFMbUiFsi3BIRDuA3LiBMCrYS+fUM7w2AoldbYeb9FzZhy6 8OzFQ/0zXOc8MT0H4Z1LZsAUMU5hH4CDjO2KENWmfHLgYHtl6uVQKt2J/AmzvfyIEzUI pAIrLWu3wG9FwLuxDY0CAvQSeDh6x8jJ9EuZzvCv6Y6WmHI4qpn6BwNWl+X9vRzmulbR zOMg== 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=9pAAAWvH1t7DR8YTJo31VitnrEhEjBt9UETIfCADjWA=; fh=6N/lXyl9b4TIBwsB5AUWRn7esn8IRUv2UhWfNXLFcyI=; b=SqSTOSVKo3Elfv0jQHgqk1HRMYdJf99vboAE2pRY5MixQkMHCcmZBkbOb5rAj2UbAH SulFDI+LCdb0Jx6KKX+TK1QSr6DtZT68M59lICQ0qaTSFZkwU5JqTcTc28lxacFQj3Dw tDYcN1unqsFhMDhgS/B7n2+WxcFCACOn6Xob/FDLxZRtrDf+MMJu1GjdwF6cOajIcff2 sBrO7Q9DCQ40GNH1pJfMXMB/qZX1wSQ6SCwx36JMxzdnkCz/UN8Hr/Q0I8eSYSUBBt9D 14F+Te/OK6lkMv5nJa/vnNgAUEdDWw4u3X47pCbzt/gifvfTBuMVRJqkJgijNDJM3nmU w9Ng==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kjLtIp1c; 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-447f5514d7asi6689095e9.18.2025.05.19.22.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:23:11 -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=kjLtIp1c; 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 89AFE82C57; Tue, 20 May 2025 07:22:20 +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="kjLtIp1c"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 23F4C82C57; Tue, 20 May 2025 07:22:19 +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-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 2AD4582BD7 for ; Tue, 20 May 2025 07:22:17 +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-wm1-x336.google.com with SMTP id 5b1f17b1804b1-442eb5d143eso51257605e9.0 for ; Mon, 19 May 2025 22:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718536; x=1748323336; 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=9pAAAWvH1t7DR8YTJo31VitnrEhEjBt9UETIfCADjWA=; b=kjLtIp1cbZ8lQciHbLKXC26C1Bzj605xG2fb/fGaauOIdQ0Zvcfvja5s9Hza7w0eVg 9pniqtsqrHGxGKh2Rq0GRm+c+iL/Z2wwlFhRWREz0PzHfz/K+hD+9t6FtV6JpM4jrksA ryGlQ7sWSSKwnR+EBqtB8b63fMkalxIJIpwpNTequqgmaXhIEfZGnhpqIo/gtjbSmCVw Kgap76gWjNGHypM1XkHuvlc355XxlVnZrlGHUHPXHakXi35ZOKeoO/QGTEktcJgiIwEC wkpISSF+FxC6XDRnzoEsyqdh5BAuUUlLMOBtwpnfkawq91yZfiM+r/1g1ejinfZpO9x9 IjXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718536; x=1748323336; 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=9pAAAWvH1t7DR8YTJo31VitnrEhEjBt9UETIfCADjWA=; b=Lq2ajTREh0A2P6EkaO91CFIpDBALTnqejD0xB54Pb6dgpbRpARgXN0CATMx98WiQgY UzGHRfD7it+0PvHb5OM7JK9KHYp7cBtidOZ3U7ZRvBo1V6f25/9NkfFCfS1BFX7NcQd1 ekAGXgYUzCZNaf5MH2XMW/6lKHh98vI9MKz4yuAQjZZ6u0T34kaGTt0DC7pe4V0UtrXa 2QOXIsYLgKPo0qiBy5OJ4j6J2RTBntFaw7PFBTquf1EIAFHbOnRuoOMWpWYPMBwlSncS Z3SxYT3VIfd5+0D3pXNR42w1Ib5Jva+UYr7IYu/47QiHqDa4wLx8u76JcM++wEGUKHoL xXkw== X-Forwarded-Encrypted: i=1; AJvYcCUgBLR+LqYiVjknocSBRST9xOZ82RIpzXUPgcBWsjdmHujp5y7Frhl6cdNDWyzdJOAkPXV3j9o=@lists.denx.de X-Gm-Message-State: AOJu0YyyYX0kJkyuvU7uT0ypcnPksYoV5QiRML3irPuTs9apca6pyc6z hoY6DrePYSkeV0Z/0dawKNJVPIgtqP0an2c3El4la4mzYhnTjUkvvZUYPQstfQBFXm6c4x6HBjF inUX9 X-Gm-Gg: ASbGncvp8LZRJXNdm0xWXW0CboBkaECwc5p/8LRm0Rp/uxiLBNByYWs7Xdt2hqQlxiM J0T+JlDScPw5Ned5D3QudOT4xBB1ygTCmPOMfN2m0uiFN7gvZiUC838OWiai7FSPuH15hb+I+L1 2Jn5J8ZtMQHokmqsc40HD5pGEZrLZnb44hT6iY/jmDewMslYPaDKFNK2tTaELsUTdh8lWGblmfT lA/QHyBYNlI+b1GZOq0Qh0wQr4B/ux6Z9u2Wh0WdWxHhRluMkATUIUka7kzIH7mciFbOyjzszEP Kz4xDfg5mrHTFx19U8WWTBnLnf3W/zd6lzwoXYmugeTZ15Tl0u9S5mrSFm6Ks9twQ5SWvXQn1xg = X-Received: by 2002:a05:6000:2285:b0:3a3:68c7:e473 with SMTP id ffacd0b85a97d-3a368c7e5ffmr8169195f8f.25.1747718536576; Mon, 19 May 2025 22:22:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:16 -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 , u-boot@lists.denx.de Subject: [PATCH 07/24] kbuild: simplify rules of data compression with size appending Date: Tue, 20 May 2025 08:21:18 +0300 Message-ID: <20250520052153.307194-8-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 ecbd10d90e94 ("kbuild: simplify rules of data compression with size appending") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.lib | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index f1a78886e84f..6d0cb8e6513f 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -546,7 +546,7 @@ $(obj)/dsdt_generated.c: $(src)/dsdt.asl # append the size as a 32-bit littleendian number as gzip does. size_append = printf $(shell \ dec_size=0; \ -for F in $1; do \ +for F in $(filter-out FORCE,$^); do fsize=$$(stat -c "%s" $$F); \ dec_size=$$(expr $$dec_size + $$fsize); \ done; \ @@ -560,23 +560,20 @@ printf "%08x\n" $$dec_size | \ ) quiet_cmd_bzip2 = BZIP2 $@ -cmd_bzip2 = (cat $(filter-out FORCE,$^) | \ - bzip2 -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ +cmd_bzip2 = (cat $(filter-out FORCE,$^) | bzip2 -9 && $(size_append)) > $@ # Lzma # --------------------------------------------------------------------------- quiet_cmd_lzma = LZMA $@ -cmd_lzma = (cat $(filter-out FORCE,$^) | \ - lzma -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ +cmd_lzma = (cat $(filter-out FORCE,$^) | lzma -9 && $(size_append)) > $@ quiet_cmd_lzo = LZO $@ -cmd_lzo = (cat $(filter-out FORCE,$^) | \ - lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ +cmd_lzo = (cat $(filter-out FORCE,$^) | lzop -9 && $(size_append)) > $@ quiet_cmd_lz4 = LZ4 $@ -cmd_lz4 = (cat $(filter-out FORCE,$^) | \ - lz4c -l -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ +cmd_lz4 = (cat $(filter-out FORCE,$^) | lz4c -l -c1 stdin stdout && \ + $(size_append)) > $@ # U-Boot mkimage # --------------------------------------------------------------------------- @@ -621,8 +618,7 @@ quiet_cmd_uimage = UIMAGE $(UIMAGE_OUT) # 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 && \ - $(call size_append, $(filter-out FORCE,$^))) > $@ + sh $(srctree)/scripts/xz_wrap.sh && $(size_append)) > $@ quiet_cmd_xzmisc = XZMISC $@ cmd_xzmisc = (cat $(filter-out FORCE,$^) | \ From patchwork Tue May 20 05:21:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891299 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428214wrm; Mon, 19 May 2025 22:23:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW1d7VpgaQpFtK4Ju4ibW5zHzDOLsrZ+cpNdqVSUf2sAyQtOZiWcy98EnG1GvHXjZurGARuiA==@linaro.org X-Google-Smtp-Source: AGHT+IH4wQQ0IGeKPD/P4buGCBFMdo0tac2OSNdwVuoGc3JBjw2msbgn/YcB0aqahidD+RmJqM5M X-Received: by 2002:a05:600c:3e88:b0:43d:94:2d1e with SMTP id 5b1f17b1804b1-442fd627303mr141234135e9.13.1747718602478; Mon, 19 May 2025 22:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718602; cv=none; d=google.com; s=arc-20240605; b=kg9uXXV30oTvnu9Nyyj64NQGhDd38Am8pVmXMwyoHluvTKMMfbMe6Lrjg1ee9p7Wyd YgMBRkYxuO3Yt4K6JHFbxo82VNR7hLEG1ygGAxYpiLeHl9rw3G1xvXOVU3XNjCPp0iZN fA7b79K+u8ltkNXDxPTLN7IRGB3WDaDDOT3RbalUeBNaA7YPZVjmfNU00xv7EFJ+AJLW P1Egz1/bo8aEhH6F4jwxmJnrghqwfYPaQh1mbqqGnGQBFEv36C9Hn1NMo9DWzq4HfO6O OQOGfedjNKk4MyeNybV6eTJYnormTmlBdUdg+uFKd+KahuqDWp4EQuQiXSXfeORVXkXk R20w== 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=MNw18Apz6e/E3KjGZ+WTdqsXhZKTri/y2r4tNvNh1Qg=; fh=nIygtionIStRQ6CipTOAnS/zxFLFxarwveo3Ak2SYcg=; b=kMN4XNzrB6AmqIi0CQAakaevQmMB62nCJHxHkUBaNk5gBCh6IVRztA7aLPMEnrfA+N lbtBKlfcpMUv1vjYRLubEJqxjalefL0ycjYAidYrvklo8gsKAQn9xWNQo/kTQQNP3/hA cMsD9Qh+LsJqd7+G4iA/Zr/ECU3Muruq77tQBfPRvjVWa2Dsf+txwJev9Vqc7mdc1w52 nRD1VTzQVxihjTQQyiouOpOvwsA1Lt15Rl3gd7nXdXIUH+qjgdE2pc8J1OSJYPP8DpRL x3Qm4AOk0unQpBwlHA6B4a1YeBXLKO/0Yo2ue96+fGD9YsPjjMbwLyC+JkIkEBVGQP6U 9goQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=UQKtgX1u; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=fail 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-447f77b853dsi6459345e9.124.2025.05.19.22.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:23:22 -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=fail header.i=@linaro.org header.s=google header.b=UQKtgX1u; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=fail header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D793B82C7F; Tue, 20 May 2025 07:22:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="UQKtgX1u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E9B782C7D; Tue, 20 May 2025 07:22:21 +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-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 74FB082BD7 for ; Tue, 20 May 2025 07:22:19 +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-x432.google.com with SMTP id ffacd0b85a97d-3a365a6804eso1655682f8f.3 for ; Mon, 19 May 2025 22:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718539; x=1748323339; 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=MNw18Apz6e/E3KjGZ+WTdqsXhZKTri/y2r4tNvNh1Qg=; b=UQKtgX1uSyNL5nP5CABlnYpDE6jJJe1ZHVpWucobXwjkfjHmNJJGpoJ148h5I/miyi /lc1oGHcatXP5Z3xUhSoPZwzpFlmhawqK0sWw4n2d9rHUFE9DjqYMPM2iy5221Wpz48Y 9Dsp6Otpzh+EztWQZWU4KoB0/02Yx04xzh0DrnVhhrpgkRXHXUzW52iWEjm7dFhrrXlm 6po1hQztvUBMVgF2iQ+wOtHZYWSDZ3a3uvy7L8Tg2iOLmCcjT0imikJLt5A1EmB9W8An FIVgYB//4QIhd7jhFk1jNwHvvknToCGLrKL0MXJki+0B7g4u+zOqmF4AwxYkmja9mCyr 8MhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718539; x=1748323339; 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=MNw18Apz6e/E3KjGZ+WTdqsXhZKTri/y2r4tNvNh1Qg=; b=IT9g0HhCMNsqeHKAMaxsGdlFkt/pgCaINZbId7WzoKUKRcCeuVd8QE5GD6rlIYgmof HR+f5Dx+wr+giTEUZyewfmp50ttLI5JooqUyF7KInc9Y0C+SfI0OXPw295TZ2jcCU407 /kjJiYhcYspWixI5V2M2qtX/Y5u4opNu415uU70KEzkqhJPg5kdcrP7XfFYGfwV1pSEk ZqxRDYI4h13M/30aLuD3U3utvZb+JwKrZh3EAY9AwHtVFIgDc+zp+hdmMVDejsM+GH3v YUbrTn4p464gdpjgfo8lIWSUPSKwVjdoTRYwn5Ht6XmINWRwvTPz2/OjNvyyCKFx/1cr piFQ== X-Forwarded-Encrypted: i=1; AJvYcCUFM0AZn7VZx6A1ghLue8P6NUlN+UQaK9PYW31I/MvkdUv3BPt5Ado3plzXyKeCrPWFdl12erg=@lists.denx.de X-Gm-Message-State: AOJu0Yz0nAKcgffwloiUaLcN14CrmU3bNLk1CiV/QvrgBzecMA8+ZHdD wGTAt5y7aNknFs40LcYkQ935RjHHF2AW9avEtoG1j/dJAJV+dhEehNKcKw8sJPc23Qk= X-Gm-Gg: ASbGnctlPQYg8fPWTR1c6VusyiQMA3JvEjv4BB4rIrJDNxBMQ+GMVzBqLFAYV2lT/6U LROkGimR4ktswE0lIQO2rlMp2r7zB+bVLoG1W6r9dB53vId4gg1aEiSGQAOQDpyEoBlGM4rrfSs 5yb5G99P/Az+3gb4BgwqTVlefP4aZvlnIxInQrW6ZiAuwOhGRKVJ6GRbEXRKouVhdqoFYHirhqr HGbGdf4+wPDVQ+6z3Zv2AKVzfoHthPOHNJI3MNWc2YI81WetqxWr72MXB5iFzLDC2tPcixPgalD o1kgjgM62Lyk5Xx0PvwfXf7d0MpvyXwxK9HkKHkwS7lqkC8pkZr/k04EPXvY5nKgehAAPVWYUR4 = X-Received: by 2002:a05:6000:144f:b0:3a3:7ba5:93a5 with SMTP id ffacd0b85a97d-3a37ba593dbmr388599f8f.26.1747718538930; Mon, 19 May 2025 22:22:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:18 -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 , u-boot@lists.denx.de Subject: [PATCH 08/24] kbuild: add real-prereqs shorthand for $(filter-out FORCE, $^) Date: Tue, 20 May 2025 08:21:19 +0300 Message-ID: <20250520052153.307194-9-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 from kernel commit afa974b77128 ("kbuild: add real-prereqs shorthand for $(filter-out FORCE,$^)") Signed-off-by: Ilias Apalodimas --- scripts/Kbuild.include | 4 ++++ scripts/Makefile.build | 2 +- scripts/Makefile.lib | 10 +++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 7468223d3233..2ef687ea895a 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -27,6 +27,10 @@ basetarget = $(basename $(notdir $@)) # filename of first prerequisite with directory and extension stripped baseprereq = $(basename $(notdir $<)) +### +# real prerequisites without phony targets +real-prereqs = $(filter-out $(PHONY), $^) + ### # Escape single quote for use in echo statements escsq = $(subst $(squote),'\$(squote)',$1) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 10f31a57a0f9..73e1d71e30df 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -356,7 +356,7 @@ $(modorder-target): $(subdir-ym) FORCE # ifdef lib-target quiet_cmd_link_l_target = AR $@ -cmd_link_l_target = rm -f $@; $(AR) cDPrsT$(KBUILD_ARFLAGS) $@ $(lib-y) +cmd_link_l_target = rm -f $@; $(AR) rcsTP$(KBUILD_ARFLAGS) $@ $(real-prereqs) $(lib-target): $(lib-y) FORCE $(call if_changed,link_l_target) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 6d0cb8e6513f..4861b1332c3c 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -546,7 +546,7 @@ $(obj)/dsdt_generated.c: $(src)/dsdt.asl # append the size as a 32-bit littleendian number as gzip does. size_append = printf $(shell \ dec_size=0; \ -for F in $(filter-out FORCE,$^); do +for F in $(real-prereqs); do fsize=$$(stat -c "%s" $$F); \ dec_size=$$(expr $$dec_size + $$fsize); \ done; \ @@ -560,19 +560,19 @@ printf "%08x\n" $$dec_size | \ ) quiet_cmd_bzip2 = BZIP2 $@ -cmd_bzip2 = (cat $(filter-out FORCE,$^) | bzip2 -9 && $(size_append)) > $@ +cmd_bzip2 = (cat $(real-prereqs) | bzip2 -9 && $(size_append)) > $@ # Lzma # --------------------------------------------------------------------------- quiet_cmd_lzma = LZMA $@ -cmd_lzma = (cat $(filter-out FORCE,$^) | lzma -9 && $(size_append)) > $@ +cmd_lzma = (cat $(real-prereqs) | lzma -9 && $(size_append)) > $@ quiet_cmd_lzo = LZO $@ -cmd_lzo = (cat $(filter-out FORCE,$^) | lzop -9 && $(size_append)) > $@ +cmd_lzo = (cat $(real-prereqs) | lzop -9 && $(size_append)) > $@ quiet_cmd_lz4 = LZ4 $@ -cmd_lz4 = (cat $(filter-out FORCE,$^) | lz4c -l -c1 stdin stdout && \ +cmd_lz4 = (cat $(real-prereqs) | lz4c -l -c1 stdin stdout && \ $(size_append)) > $@ # U-Boot mkimage 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 # From patchwork Tue May 20 05:21:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891301 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428320wrm; Mon, 19 May 2025 22:23:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX80DYQuX+PFyE6T9rtixQT0H5X8C2zgNWKWCMfCJijWCvFgNC9jDwKNt946SjoIUzbeLRnmw==@linaro.org X-Google-Smtp-Source: AGHT+IEV23z2FS0j2Brs97K1XIGCtvaaNePIckoKWxMTZAGtny3J7wHiAqHeYT4q15Q7mRiskerm X-Received: by 2002:a05:6000:1847:b0:3a3:6a77:3391 with SMTP id ffacd0b85a97d-3a36a77373amr5630219f8f.15.1747718622994; Mon, 19 May 2025 22:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718622; cv=none; d=google.com; s=arc-20240605; b=iS512EiwN0oM4MgXsC1HMd5oaZtyQ56sX/8Mgz7aa/eZZuYfYfjJbOV9B7E7QKvWcS aTO9yOdjsSmnLzutE5wio5jHSzN8C8uGw51qJW6/+fBbrUZU1OIY39R1HIlU8Or8F16Q OKlvZlzxa4VdCVWe9+AYDXj1lYPEAJyzDgyYCZbTJ/l2XimZeyIKGA8PLEvnkwDkiogf YLgAkPStBEsnWogKUUm0nuFPU4ZHlmkBKdQYeLnWqE/jmCL2kuJLrGixmc0qxxS9uIne dHuZHp5knnjA9TyQN4APRKR8Bx9k8b/LMFktmDzebijJyOoVe9datnRjGIo0mQ4MPjZF Uk8w== 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=siqFNQWCvueAM0VVXekArN+vDPNhJjXRQCAFGK43+g8=; fh=B1qvrdVwLyeh7SQoRfFw/hxichDhVhc75JXcuS6C0c8=; b=Ph7W91mvxm/tsaP4g9mOtGgKTQMIwlZ9QFN7JMc/EDjVKz65z6Q77YSlznNPWVCvrD qeVc3ammHIiH/f7sQrZ6HPbec++O+0dZioP1Lp/FKO3ZBZKKeYijX8rSvWumMYG9foPl RKq4dMSkq3NB16ADxSGYki/N/hWvxg1g9WPAMmu+o9ylFXBIdVe09YjrKpWhYb0mhcw4 ijnmLtJfgXOHtCkLOz5c41+C0TZNnl6BxY94uE5YVORdhQFt5Aw/HfjkqvE2cspjgbtx 1Wt0qlKd8BE7uJ/eW/q/jKiUI9lDZc2LKj1Tw/DvRNm6JXi2jqPSjZkMoMVHEbsLSsey F4Mg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FY+ryaIL; 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 ffacd0b85a97d-3a35ca7f417si7266132f8f.320.2025.05.19.22.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:23:42 -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=FY+ryaIL; 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 675D882C7D; Tue, 20 May 2025 07:22:27 +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="FY+ryaIL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1CBC482BF2; Tue, 20 May 2025 07:22:26 +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-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 2DE5482BD7 for ; Tue, 20 May 2025 07:22:24 +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-x42e.google.com with SMTP id ffacd0b85a97d-3a36abf5df9so1484648f8f.0 for ; Mon, 19 May 2025 22:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718543; x=1748323343; 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=siqFNQWCvueAM0VVXekArN+vDPNhJjXRQCAFGK43+g8=; b=FY+ryaILzAJdAFg0ZhWS/BuX/O7VgBUYpWW3bIzWfwIRPCIpMot3oC1TGI4m8dhtpN 9ZYroSddK7T/CW7AyBvtBTuDoUlV2a1Ysli2fzwxPCeS5+oIkwyNQkj7xsPu3npDRR2q FosvJJpReYq+wDXKXqOOssZ1/EbkE7xStw8oOqcBdBW9fTeeUkRZJF09y5VgwNeH+6+c ltz26UKxzqVTUlR82ThaHNsV6HsaR3FeDh82i39QHkoja9rq9Wn/fdTkInzwGp/H3UPC 8RCJ7Ci19i+Gzls6H7VtFUrutUlm5ZO8dBGlyF7r4hpHFLxFyN7J5jo1RbajWaROs19U e8hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718543; x=1748323343; 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=siqFNQWCvueAM0VVXekArN+vDPNhJjXRQCAFGK43+g8=; b=P9mKLrST8EbOslJAzAAPRBoPmSi28Fy28kkWSIVAoAsGtY5xXMZTd/CmsWfHBNgZyu kt59qcZRlH/hgw4yM9whGG2waacj1B3CM1ZwnTEvownhO+Dogk4aCUyt+ORTr//MV8hL 1QTz23b6BTno0C0S5usFKEXBqFo3JZ36WQv6LNwhJNRbjK3XIOzC9oJCpf+WQaSNf9mj KghtrjNk0O7TLqWEL+9ddbzLA3o/JR2QLBQzqYGwDEALhYBWH1xv+8vZWSyzhu+T4VCl bVyfNsmMeysAvfQPi4gXnwF4v4gxPvxoQ0vzo5Z4IsJt04d3dq3l3yUBqEg8FEhL43oa VLSw== X-Forwarded-Encrypted: i=1; AJvYcCX0L/YBukiDBcTw1p+bfevvO6hudyrk3zNyyeSUc77S1nlUrv0+VUgw/lKCq4TxLx4LeAEllFs=@lists.denx.de X-Gm-Message-State: AOJu0YxoVt8sXkTJobKPFqFt0KVyCjS15+/KHiddgz7ib5OrxCcidG1J DMAj+qQcYCzpMm0VWIwTdcKSSJGegvDXm7WrmEJh51pB7RmqFF8gq6t3dlaP/GzhABo= X-Gm-Gg: ASbGncuV0N3ImXNbLsAHq5CQCQc9DjLrMDeDzmOkur+5N7/44PYbmFUuL2ysBzvEPya E6Y97xQdcMS6+x9GyOgMG7TG6ULI4HHpVoGeUne8CxRIuo9ijAvpZe9fBEuhMGPMpWHTvDCPCqh 8UotfEbtNg0JUnXocBJIe6y76vCU76H5JdIRhldQF2q7HbZ+33adtqbMFOJiMVVroEtisjSiSao k28EfbrPtJGYHm7N5jssfb62VV9uRNVJYX6qdmh6d264ND3voM3+0OYhRD/9M7KpKNg0TndYEfu tYxPfoEVOkEnnuNwaO9o1UXgx6AJ0kXHewipVy7LYlbpoXYiH0zCsvyrEFqsQFogKXAgmRfc6qY = X-Received: by 2002:a5d:62d2:0:b0:3a3:56e1:dff1 with SMTP id ffacd0b85a97d-3a356e1e170mr12474126f8f.4.1747718543613; Mon, 19 May 2025 22:22:23 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:23 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Michal Simek , Prasad Kummari , Jiaxun Yang , Rasmus Villemoes , Sam Edwards , Jonathan Humphreys , u-boot@lists.denx.de Subject: [PATCH 10/24] kbuild: move archive command to scripts/Makefile.lib Date: Tue, 20 May 2025 08:21:21 +0300 Message-ID: <20250520052153.307194-11-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 from kernel commit 898f5a009f22 ("kbuild: move archive command to scripts/Makefile.lib") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 4 +--- scripts/Makefile.lib | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 73e1d71e30df..d90b0b7aa6a0 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -355,11 +355,9 @@ $(modorder-target): $(subdir-ym) FORCE # Rule to compile a set of .o files into one .a file # ifdef lib-target -quiet_cmd_link_l_target = AR $@ -cmd_link_l_target = rm -f $@; $(AR) rcsTP$(KBUILD_ARFLAGS) $@ $(real-prereqs) $(lib-target): $(lib-y) FORCE - $(call if_changed,link_l_target) + $(call if_changed,ar) targets += $(lib-target) endif diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 28295c7ff125..c441be352da1 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -278,6 +278,11 @@ $(obj)/%: $(src)/%_shipped quiet_cmd_ld = LD $@ cmd_ld = $(LD) $(ld_flags) $(filter-out FORCE,$^) -o $@ +# Archive +# --------------------------------------------------------------------------- +quiet_cmd_ar = AR $@ +cmd_ar = rm -f $@; $(AR) rcsTP$(KBUILD_ARFLAGS) $@ $(real-prereqs) + # Objcopy # --------------------------------------------------------------------------- From patchwork Tue May 20 05:21:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891302 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428356wrm; Mon, 19 May 2025 22:23:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVxjH5ExIInvuyvbQYNdreK6pJpAKhKYHbpXsVT+VfP9NN1geE+S1cVmV48J9ECsfSFT9Bx1g==@linaro.org X-Google-Smtp-Source: AGHT+IHt3eTP6o1PNh3NFnveoU/8AIrxucFWjj4+/4GTbXZXuBXuh66vkOdpYRvaEngZZo38xblx X-Received: by 2002:adf:f14d:0:b0:3a3:6234:3736 with SMTP id ffacd0b85a97d-3a362343748mr10027966f8f.38.1747718633180; Mon, 19 May 2025 22:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718633; cv=none; d=google.com; s=arc-20240605; b=PqgNTgy1PnEKSnT6UTIBcjlCt07HZgeCOeC+clLaXqiHZumgUwgav/Y1h3thVBLb0L AX+ixdjakWX2eYDEtcYI7ei8RbLTPPnIPmKDL7YYRamJI0q8yzdaaK2H+wCJhAjYo3fH gxFuTHCSn7h0XNkSKUbWvK7oS3sHqfuffuzXJzR00KXQbZ/XqizcLtHm1Xb390uPES9d rf1dS4j8xoFsvIBkD0siszFVKeFesN4IjeW0OtPGPOu/3j0NQGqZAtJtSrwTlFddoEhP i9MwCqB7T8TQ8lxV+Hf5VG4uhgad4ANazolZkOHC/zcTNH0uFMnYaeWeyOCj8f0y/qmr lKGA== 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=myAQLnNyoEYgTL9thFBm6JVTMfd0yPZIgdnmPcYkCAg=; fh=RMyNY7IAfTjm8rXmBp87lDTzSGQ/+riHsdoZw9iN590=; b=Yv3AtT0ba/652BuiTWuBFCgszVSJsfXN32dFhBHulcqh/V/Mfum9/9xTT+J5IfkOfZ VovgDEcJbI9fPdOfOW8AqrSw8DDd+rQCfZnrEXNKXMqZqHqLFarDHNDYBBYX29nynM1H eoFbWd00Nbxt28fuWOaLKNu9ElneVFB0sZSJetkEH3+nIST3xa9oiAUEYwitBnSQBs2t R+1M4UYMavn7MUKrL+EF7/Z0bMcw9ed0XndebGsPM7Cj0g/RypeCoHXgFGoDOat1mNVb S29q3Vd4Ty/UqVvKp+FhQ8x1NrCdt+1iZnEzECQ55R9/sb7bYi2+F/R4Mu1ppVX2PEFY GAkw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=haj083N7; 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 ffacd0b85a97d-3a35ca8b8bdsi7089761f8f.679.2025.05.19.22.23.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:23:53 -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=haj083N7; 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 ABF1082CA4; Tue, 20 May 2025 07:22:29 +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="haj083N7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B319482CA4; Tue, 20 May 2025 07:22:28 +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-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (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 BB39382BD7 for ; Tue, 20 May 2025 07:22:26 +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-x434.google.com with SMTP id ffacd0b85a97d-3a361b8a664so3654046f8f.3 for ; Mon, 19 May 2025 22:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718546; x=1748323346; 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=myAQLnNyoEYgTL9thFBm6JVTMfd0yPZIgdnmPcYkCAg=; b=haj083N7qZ653hN0FtKx+XJV4GjSRV1+HfEmwGeRu8enYWRljQEzuURVKYSQpyvCJJ MJO99dG4yMi58KrzBGlpbtDgjlOjGE9ttICRYWa4wLQ9Dc9Zhoym5s6zmLHeNJbDw9I/ gGVzMW6dfAN/x279F9ZVTeRLqQ1AcBz4NoVebFNHNBtbRzfee7fPBX9Z5mXCi7mkns5B lQA1l0Ho3370283AVy9X/SNzXEoDApRaz7nIQJtw78xViqKvu5c3msMKCOuHwV8wjnUu xX6z/GQ+eVNJdkwfwhBR34XcHW8qR4MRMQOGX86xcXoEQdK8fkS5nnNx5B3xJDYyrICW Tp6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718546; x=1748323346; 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=myAQLnNyoEYgTL9thFBm6JVTMfd0yPZIgdnmPcYkCAg=; b=Vpov/+eLxswwOpIcSpSVT5+qS6zBd+M2KEg0NOfd18pVzK+cU7gJ0hzYA1XP1FeN/5 AefO930RTt7UiaUmcpK8sj2RCv/U6ImUZg+VgPI0/kjTwq81VxZP4pxcojkl/18QNFkv i8Z0y0FZy1LMS4pgU75B0qp71IWTgoeNbN71SDLgmhnHAAt9jKYShb8BwVp8weWsQIl9 eJuNEvMTJ/Ph0B8e9oOVjhzN2prehNbi8JB5QMdw8gqjzhrn5zoj7gPwpTl1sYaQDk2a 3/jEtXQXE1rml/0zOnGxkikkhozmGU7wb2G+UoUSfU09kPfDruJykaHlhS36Fb/rvRWJ Hc/Q== X-Forwarded-Encrypted: i=1; AJvYcCUjF6YSsTs83n7XGHjqqllldqZICroaSXhCKxs9qMRG/Yqhr2GXq9j+kHFxvUv52mQw+NEwKJs=@lists.denx.de X-Gm-Message-State: AOJu0YwMff6+35ZgVihpFiZ8il/g3FUW+DTiSOyVFqO+Rjoi67Q35x63 EI59JaKXPupZB6cATUYsW068fmUHXZD2/ISCGQPpvftLke4H3yx1SoUmSyJ4bo925H0= X-Gm-Gg: ASbGncujH8FYaLXgU2aJbsoBIlEk0PLQTwL6QmxtrPy1SVIi3Z1cCLh0zKw2FzaqAPj kKOVYnCFWQ/lS0C31dsrUeHlhdyegvsUip71RGy0hF43OVKniY0gtMko6+oCNEKiSH82+Q25Lqz nSRDGzDDN4Z2ehjuS3P4VdcXU5Bm5fspVvwQoQ21KjxSgSJOikOkD70NUbj0URsTieS8GZB8UnG 31wUWyugrj2QmXi3NA61w4kdsOYPcl/iFMzZEkXNWARwGrqKM5otGwkYvyxw9CT2M8G1VzMB0Uf GIECfpXqkP6st4ZF1mBUPoOQs7JGJZukbL1XXAITyGDHi2tEKovAk2bZtkhVrZcDat8AXeZPIGc = X-Received: by 2002:a05:6000:430c:b0:3a3:6947:6d35 with SMTP id ffacd0b85a97d-3a369477158mr7580078f8f.57.1747718546170; Mon, 19 May 2025 22:22:26 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:25 -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 , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 11/24] kbuild: let fixdep directly write to .*.cmd files Date: Tue, 20 May 2025 08:21:22 +0300 Message-ID: <20250520052153.307194-12-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 from kernel commit 392885ee82d3 ("kbuild: let fixdep directly write to .*.cmd files") Signed-off-by: Ilias Apalodimas --- Makefile | 13 +++++-------- scripts/Kbuild.include | 5 ++--- scripts/Makefile.build | 11 +++++++---- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 15c7e633b874..09d36b8cbbed 100644 --- a/Makefile +++ b/Makefile @@ -2538,14 +2538,11 @@ quiet_cmd_rmdirs = $(if $(wildcard $(rm-dirs)),CLEAN $(wildcard $(rm-dirs))) quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files))) cmd_rmfiles = rm -f $(rm-files) -# read all saved command lines - -cmd_files := $(wildcard .*.cmd) - -ifneq ($(cmd_files),) - $(cmd_files): ; # Do not try to update included dependency files - include $(cmd_files) -endif +# read saved command lines for existing targets +existing-targets := $(wildcard $(sort $(targets))) +cmd_files := $(foreach f,$(existing-targets),$(dir $(f)).$(notdir $(f)).cmd) +$(cmd_files): ; # Do not try to update included dependency files +-include $(cmd_files) endif #ifeq ($(config-targets),1) endif #ifeq ($(mixed-targets),1) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 2ef687ea895a..6ef66c451eb1 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -274,9 +274,8 @@ if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ cmd_and_fixdep = \ $(echo-cmd) $(cmd_$(1)); \ - scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ - rm -f $(depfile); \ - mv -f $(dot-target).tmp $(dot-target).cmd; + scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).cmd;\ + rm -f $(depfile) # Usage: $(call if_changed_rule,foo) # Will check if $(cmd_foo) or any of the prerequisites changed, diff --git a/scripts/Makefile.build b/scripts/Makefile.build index d90b0b7aa6a0..2f2d5d4afc25 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -410,14 +410,17 @@ FORCE: # optimization, we don't need to read them if the target does not # exist, we will rebuild anyway in that case. -cmd_files := $(wildcard $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd)) +existing-targets := $(wildcard $(sort $(targets))) -ifneq ($(cmd_files),) - include $(cmd_files) -endif +-include $(foreach f,$(existing-targets),$(dir $(f)).$(notdir $(f)).cmd) # Create directories for object files if they do not exist obj-dirs := $(sort $(obj) $(patsubst %/,%, $(dir $(targets)))) +# If targets exist, their directories apparently exist. Skip mkdir. +existing-dirs := $(sort $(patsubst %/,%, $(dir $(existing-targets)))) +obj-dirs := $(strip $(filter-out $(existing-dirs), $(obj-dirs))) +ifneq ($(obj-dirs),) $(shell mkdir -p $(obj-dirs)) +endif .PHONY: $(PHONY) From patchwork Tue May 20 05:21:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891303 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428404wrm; Mon, 19 May 2025 22:24:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUJbYNvX7GVS8lJNr9pdWyA/x+EivXRyUaFMozD3aCZ1TX5Yx3U7DfUaHx4xw+9ENQyYSxp1g==@linaro.org X-Google-Smtp-Source: AGHT+IFTui8T/Dy8GYhGi4fi9vmzq/kuiBgY4JNiqCkTjSrv/0iwB8FN+8JRYyURBC8olLC7JWgT X-Received: by 2002:a05:600c:b8c:b0:439:5f04:4f8d with SMTP id 5b1f17b1804b1-442fd97a50emr137451355e9.12.1747718642256; Mon, 19 May 2025 22:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718642; cv=none; d=google.com; s=arc-20240605; b=Ij8ZUu5V6AzJfZX2E1UBI4o9q4l7fJW9yg2kKayVHyU7y2s9FMhkyzLirxkztL6Upu H+PJyBblwFbYAv87DDPkEATcVo9UjjpXBebO5iAfOp2g1R5pfs3ZXtUam2NMXgIRIxdK VEd2Xm5CRT9G8K8UhaF3NS9i9t34le5rTXMYBriVxs8cwqWROZwod+VgCs4syvb+7fgN XsFCbV1TjKKGJvNNuDd3fonnzMv1oT5HWQaTVO4qIW0R6+0zxvoUKz+jYVe/tkSQc25x AWo4RquNDeUXewbhNPz3AmnnpfIlkn8oMp3GK0ddwmycx/mYpRabfRZsAq3bxdUEBNpV 0MtA== 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=Dj7+/w/S4KZzGZjJda9e2FMa+lHOPOyGo58Hm86wPLs=; fh=qncdk/rm7U80GBunOPrjoKyysmdezWyb1IcPMCLpw8c=; b=jV+c0G/M5VOM+pvS7FFXbJNzu6G84JY/x0xBRQNmCMagOrlZH9SMGjFs7GoA8uZmAm ++WRit+8cRrF0QIPNkaN4ZE5gHvkHOBvYiJN+0elvFif9vXdiavjdyplL7/j8wxhz6mR 46qK5lZPrRzogYYrVC7gvzxISiR3CD5nly7bqtDKEksiR+PiUj9hPkNrZJDz0fDsLHp4 1seoPd1rl+UrPm5WhPUh5hjf0Y/NBgrvIyhKsQ0UCPtpvfHgTJckMxLFgHEdChDuiO7k Yf6aoJF1C4TILo+xpxTUquIZTT9wGx5jWdCvspOvL1dYXpoBbElCjsUV8b+fXIer25LO YwyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tfw1XzLS; 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-447f7ba68acsi6600905e9.147.2025.05.19.22.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:24:02 -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=Tfw1XzLS; 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 F09BC82CB5; Tue, 20 May 2025 07:22:31 +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="Tfw1XzLS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0D2B582CB0; Tue, 20 May 2025 07:22:31 +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-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 187CA82BD7 for ; Tue, 20 May 2025 07:22:29 +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-x432.google.com with SMTP id ffacd0b85a97d-3a375888297so901952f8f.1 for ; Mon, 19 May 2025 22:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718548; x=1748323348; 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=Dj7+/w/S4KZzGZjJda9e2FMa+lHOPOyGo58Hm86wPLs=; b=Tfw1XzLSQHAqb6YW0gFlOKuy+BO0ZNHvUtg/t/ou69b+0G4bK35Sie+h38xrB07t/Q xGJU0AasAZ3jKc992DjSGhOz1CqhHIEkJ3dQj2lgG+xtjHBfG+fW4doV8XVT2ilR7kI7 rzGKaQ1psis7+Bx67AAXfxI6sCYlJCMSdpiLOKjrYs+Jtql8F4E9PycFVNQaC0Bj1G+4 0AGP9YxLdzNd3l5f649do4y9OMFNNOPAZc0I+9mSYpdy2W/9OGfnC/pg+9We8Lpp9J9C qC7A0y2sXZCc5S7Ydg77J5/MC5QGOFJklDCphRPLzB5eRXwYYhA7bYWWXiaLUlF+p3Bn Lp4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718548; x=1748323348; 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=Dj7+/w/S4KZzGZjJda9e2FMa+lHOPOyGo58Hm86wPLs=; b=RxNHLzQVWfxbRXqIQP6pagdTuAwLqKOWIKTXpyP/MUdTBLER/fF0RgFTmjnLs+Fby8 aDBYf3KFgO/3XePqzOgi6WWFof3FLt2rBm5+tsEeeo/w0MwsGITtPcNC3rY/X+IZ4Au7 v2ZK4rAPvVanxX0RESux9XH4IGz/cofWt/ClvMTcEJrQ9CD+tERCJXo4ymRIjuTp3pWN VGiBvG4sAjliylcblqeur8HFrtbROiUdSOEUYOQdVwuI131FajPcQgWUbhyYkulL/KLX gm8QyDLdQslmGUVp6b+QRKD7+hE7ycHP9qH19Yh2JUufz1LHvkadzGoL66JCXuQuKYKt caug== X-Forwarded-Encrypted: i=1; AJvYcCXiwV5569fflNk+W6n4KGiYkmuL+/isgS8paC+eTM9YMFFNJc+PxgYGfMEbcARMLj8Z3FAv8+g=@lists.denx.de X-Gm-Message-State: AOJu0Yyc3fSuP2JBoU60kWDT/y4dR+Pf5fAX0jIg3yF8VBcCOb9MgV23 2n+EHeHTuxivmwwVltJMPQu9vAY6PBRHwMnAzO5kRNueL+yZiUmJkvMUNt0Df7sBPPcL5+eSl1h 9xu5x X-Gm-Gg: ASbGncs/xGAnUwnkfy4VjJwLs+fwr7/GpPO9C1rVe9q5VzAe2a7+MaTgtlCT0qYM1/A MBS1nuAybU9fpFJhTUQerMZ2uJILWu9Jbml8m9MN0/8BurtSHMBdE6FQTQbPWXbC3zRVQf1S2PB wGoAhRPfnLrRGLjyVpt9fPi3idDPb0pXJzsOyDYR8N5nlzXYpWjfk4ibr6cQzOYgFYTTvnlUicD vqVwgFkDqh0BoQV6tGMRXtGCzfH3fkcA1qyn1xBml9keqGNnMXuwE89amy5FqGp7SfJD3TcXiU+ Oi89KOE3wdZoHvyYtIM9MOkBYATwuT5wDmYUPColeEo1xXlnwdxOvqpT876twN5eQe0UKi15wxY = X-Received: by 2002:a05:6000:400f:b0:3a1:f724:eb15 with SMTP id ffacd0b85a97d-3a35ca76676mr12897259f8f.2.1747718548594; Mon, 19 May 2025 22:22:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:28 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Michal Simek , Prasad Kummari , Jiaxun Yang , Rasmus Villemoes , Sam Edwards , Jonathan Humphreys , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 12/24] kbuild: remove redundant 'set -e' from sub_cmd_record_mcount Date: Tue, 20 May 2025 08:21:23 +0300 Message-ID: <20250520052153.307194-13-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 Back from kernel commit 4317ee3b6a5e ("kbuild: remove redundant 'set -e' from sub_cmd_record_mcount") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 2f2d5d4afc25..b2bf5a2c0001 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -223,7 +223,7 @@ sub_cmd_record_mcount = \ recordmcount_source := $(srctree)/scripts/recordmcount.c \ $(srctree)/scripts/recordmcount.h else -sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ +sub_cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ "$(if $(CONFIG_SYS_BIG_ENDIAN),big,little)" \ "$(if $(CONFIG_64BIT),64,32)" \ "$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS)" \ From patchwork Tue May 20 05:21:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891304 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428438wrm; Mon, 19 May 2025 22:24:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWHaSVAzZey4YMswJEkN+XeBxj8lAnyrBQYJnT0GoYHRMgUkROiTL8q3uZleJrDmeoaZ3omIQ==@linaro.org X-Google-Smtp-Source: AGHT+IGnu9ZwNvhL2k3gLb0zMPsiSIuVSuK/QPweVuF+PwI2QqblYhLDozGnQeT/c3Ep8bYwVeZ2 X-Received: by 2002:a05:600c:46c9:b0:442:f8f6:48e5 with SMTP id 5b1f17b1804b1-442f8f6494fmr176432045e9.8.1747718650688; Mon, 19 May 2025 22:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718650; cv=none; d=google.com; s=arc-20240605; b=EB+WaViIVSDoieTBg3OOAo8WMaMCl7OW+58Fdpi0wXafhs3Ax2rdfEn7RrdDZETLhp JCxaKMLOcJi+RyfYYzeQmoKD4CtjbPfuBgAydo3Ca4HYqWfeZZLL71Fkd7S40/9Smm8a OucM3V8jWrQEfKaQOn3JcooYFHftGfnT6WVM3MeoO/KzZhN/ZgjC0f/MCcC89hY2K8Of E406+g8S2MWzgYbqu4oH5eQ2uoEMTCWSZmXjZTVMSWM+sSGydbUdWzPgqoo3ulTITCch UOaOLEHV/4G74uua0O50kTnxU/HIhW0BJxAwj2++tAWeG+7ahkPRJs8Ca4Go5Qxn6C2J wpRw== 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=k//ry/DIVpP0692vd34TO35qgb1KNGlSmkUjvdkuKck=; fh=esGR06hNHRPtrPcrO36BgMjb6J0LsUrO0ISJceDnDLY=; b=d3w4BCDLBq9SUYxKIeNnkBCOhnW4qHc+XBJWsQE/x2BN7VtGPRnBrFv0zj8k0YFGb0 aZY4sqmyC1G6B64boXGDlAv1ZycQq2lRPB56l8XikttzZwG1FE38C4mxFpcJUbKdrtqB cB1baGjQEBht2/YeFJIgbDT46b5BFIx12TWhrz5pbAsU3Q/UytDs60f715Lz7eRc/nRN SgjAz/WXOy079qRYiUy3my1ZM05R4GVUiW3BE382TItjNoxaYioEfEla4cLzQe4L6W9r BXG1E3Y9odmE87S0wiDcZmjGOzw8YmP33NZjyQnBZdW79/Uw5vihkwPkIETwbzE6jCiH qzjQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GLijJlpj; 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 ffacd0b85a97d-3a35ca8ad7fsi7091345f8f.614.2025.05.19.22.24.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:24:10 -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=GLijJlpj; 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 412B782CB0; Tue, 20 May 2025 07:22:34 +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="GLijJlpj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 89BE282CBC; Tue, 20 May 2025 07:22:33 +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-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 8FD4982BD9 for ; Tue, 20 May 2025 07:22:31 +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-x42c.google.com with SMTP id ffacd0b85a97d-3a36abf5df9so1484694f8f.0 for ; Mon, 19 May 2025 22:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718551; x=1748323351; 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=k//ry/DIVpP0692vd34TO35qgb1KNGlSmkUjvdkuKck=; b=GLijJlpjGx76AShCC9Wwle/NaToTgzkdD9hIjmPagjI1iuCOXzR2LgiSF4QssSz9w0 53fAenZxSXcU4pIKVwEn59l6nc4zAH3Ea+P3+J31qWiSq2SAT2MCzfiECY/dpaMJE64A Rsd7m4zQopE/B7T9FtJ/TFVuTf+THoLpGNpTcrn3Wski14wLldl3ZeOXcvHVsIubb63R MEIVRObdpMzBrSiBJYmpTimfEJoLhUN4Qys6mDWogzSgwb3INwsVDTsFJs2YzkGMo/s2 lKU53uQmaCZyP8fFiGbmSr7AxFTeWv/OkIkdAwZSd+6VR+dVSaoDLOhq8Cc1u1lqmMmJ JwxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718551; x=1748323351; 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=k//ry/DIVpP0692vd34TO35qgb1KNGlSmkUjvdkuKck=; b=Exow0dbsJ3fhAUdwrHss0DrZYx790UtPL06a0JNtznyO/uC18Dw+LSh3SV3jIsDwUO WfkYMBvK7743iEFw1svYW6COgJOP65o5xnX5AyjoK3gvD/yEChI77n00B9XJmWyYjgQA nEJMGWKGoqCjXfERNtmL81PHvamiVova5xkr55Hc9nskDIipGV2waCu2jXpxDFCKl52C xp5qI/t3Q82IGsVYMa4Z/gDL+pW22HbicBeW2V8OdfwKpfAhBbNn8ANutYtbQv9QotoI mBrahsr6iAxp0fy1nnffbHisOCU6oxtldMZ+x3aRvrNig5X5X4tIWsSb5alTaRDYBorC EOfg== X-Forwarded-Encrypted: i=1; AJvYcCVSWKFnMwk69RES/N8DYKdfDg1iTRw0iujL0XXlKCO+awPVqU+AOrtuwh294x84oM62P3ZD1AQ=@lists.denx.de X-Gm-Message-State: AOJu0YyAzuV95snylWKeMlqqSbJXKtwyaic4v6DlJvlk17w079FSPuvn LWqPnFkriSTdK8ifC7eXbsnmTyaa7hh4S+7c584jpzJE4qbUZNrP1Dlc8fDjvP2rx+Y= X-Gm-Gg: ASbGncscUahnCUsiynDd5n8a233+vNS/cYpeZ7/SHVt0wq70mKkmRTGf77dRG4UCSl3 gYxYT+a3DSBwepuc2lx//nBDoRnO4NuLB9j5AeTYx0hEtompNd+/XfMzTIuMwWQ1qvzeMaDgB3U D3OmktKV38Njfh9UfPBKiaYsTDFaQ9SGiNPIysgwBEY2Rk84TXl0XnQjY9wqLK+mPkABK9a+DWZ elJpX8eFRXyHPp0u2K+oCOhOMUY/lVG1WmyILDhRpFm5daCCQiLgVZzrVPgig/lL30+f8yKoggH +P9uXbhlYnxVH5V4fwb9Hv1zp3B+NA9Ivw4a60E6+m6VBy6nUIq6mshJxh2R+hn8bWDLp5X4E2M = X-Received: by 2002:a05:6000:1867:b0:3a3:70ab:b274 with SMTP id ffacd0b85a97d-3a370abb2cemr4764406f8f.12.1747718551048; Mon, 19 May 2025 22:22:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:30 -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 , Jonathan Humphreys , Sam Edwards , Quentin Schulz , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 13/24] kbuild: refactor modversions build rules Date: Tue, 20 May 2025 08:21:24 +0300 Message-ID: <20250520052153.307194-14-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 from kernel commit ee3e46b7efd2 ("kbuild: refactor modversions build rules") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index b2bf5a2c0001..639091e7b29c 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -171,34 +171,30 @@ $(obj)/%.symtypes : $(src)/%.c FORCE # (See cmd_cc_o_c + relevant part of rule_cc_o_c) quiet_cmd_cc_o_c = CC $(quiet_modtag) $@ - -ifndef CONFIG_MODVERSIONS cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $< -else +ifdef CONFIG_MODVERSIONS # When module versioning is enabled the following steps are executed: -# o compile a .tmp_.o from .c -# o if .tmp_.o doesn't contain a __ksymtab version, i.e. does -# not export symbols, we just rename .tmp_.o to .o and -# are done. +# o compile a .o from .c +# o if .o doesn't contain a __ksymtab version, i.e. does +# not export symbols, it's done # o otherwise, we calculate symbol versions using the good old # genksyms on the preprocessed source and postprocess them in a way # that they are usable as a linker script -# o generate .o from .tmp_.o using the linker to +# o generate .tmp_.o from .o using the linker to # replace the unresolved symbols __crc_exported_symbol with # the actual value of the checksum generated by genksyms -cmd_cc_o_c = $(CC) $(c_flags) -c -o $(@D)/.tmp_$(@F) $< +# o remove .tmp_.o to .o cmd_modversions = \ - if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \ + if $(OBJDUMP) -h $@ | grep -q __ksymtab; then \ $(call cmd_gensymtypes,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \ > $(@D)/.tmp_$(@F:.o=.ver); \ \ - $(LD) $(KBUILD_LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \ + $(LD) $(KBUILD_LDFLAGS) -r -o $(@D)/.tmp_$(@F) $@ \ -T $(@D)/.tmp_$(@F:.o=.ver); \ - rm -f $(@D)/.tmp_$(@F) $(@D)/.tmp_$(@F:.o=.ver); \ - else \ mv -f $(@D)/.tmp_$(@F) $@; \ + rm -f $(@D)/.tmp_$(@F:.o=.ver); \ fi; endif From patchwork Tue May 20 05:21:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891305 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428475wrm; Mon, 19 May 2025 22:24:19 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWhMrljWVwsbx1mw4KE6uTquVdDMKHsQ0eJ2JFnOyuc+UT0NusiEob7XD5QEzGsorvIBWeYcQ==@linaro.org X-Google-Smtp-Source: AGHT+IFvQqNSkDFjD2MFHOyZB1uOSKWAC3c1Yc/syAtM5PfHAaxuDi+vuKn22Cp+VjteOPbMDYgU X-Received: by 2002:a05:6000:1acd:b0:3a3:7675:902 with SMTP id ffacd0b85a97d-3a376750abemr4016011f8f.21.1747718659480; Mon, 19 May 2025 22:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718659; cv=none; d=google.com; s=arc-20240605; b=alNAhfUgbWnHQx4LyX7wJRDtlveJZ/GD/L2r6bXi3YMCygm9DlxUx4GgjHS/0MmLoW XmEN8yjqaQAOrfxa7y32iLE1ndLCe4v3XkBBgkTXlBVbPZwqsQVX00AcNgCiipKADAPt sEuGRhUuEhR1kwIidRcY7K7GnNu+MSxAFsYZ16iQb2wXParpKUlrTjihyyVeIUNS5V8c /2C+nNFCwkCscBzlx4+aamxyU1eY5+qEq/r3t6GzDfjFZ4NkauaBqpogecUoo8JNT54V gZcCAsTowJDqvo3tJWzMzN7MQKG3KldcNm5WX1+vES4SSVBnRsnvnh877ax02tZWiFmJ fAEg== 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=QQrSB16BhDCM3PYdSyclKBO+oD+fpgkkI+/nDZCGFTY=; fh=9+kwXOyjrfNH2g+rS+zUYpFXigm/CfIoFvDXUifuOgg=; b=X5PVu/s5w1k66mpJUY2hRUGctm2sf6TbgTGwAk64Ay/C+ZxsTGd8GPXvB6SASrdq10 d1Rabyiv43+jGBg+uSSvKNSXfAe4aTR+vk349fSmavP0SbON6g+B4CMLJZw9Iy9sz3rj Y/GTaZwdpQdJMI7/ByT3ShN74Yfnz1IpPfkUuHvFppp8A6tOIvCwWnthAVBdjcdmoDfU bmksohV437y6WCPGStzLly0kVOE7S+C+fsuhOcF5Dy0SRDgOB4U2raa9ALNonmmRHf3F 2mcg5q/clo0D+3HHhRp0oMdrsmzzEucxFeEorOdEIE5qCQMkwtsymCVTbiIxkVyLB8mN QcqA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M2xCMSrU; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-3a35ca8b5e5si7016215f8f.666.2025.05.19.22.24.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M2xCMSrU; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 3948682CB8; Tue, 20 May 2025 07:22:38 +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="M2xCMSrU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EC61682BD7; Tue, 20 May 2025 07:22:35 +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-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (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 0074D82BD7 for ; Tue, 20 May 2025 07:22:33 +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-x42b.google.com with SMTP id ffacd0b85a97d-3a35b7e60cbso3268346f8f.1 for ; Mon, 19 May 2025 22:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718553; x=1748323353; 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=QQrSB16BhDCM3PYdSyclKBO+oD+fpgkkI+/nDZCGFTY=; b=M2xCMSrUsQTKLP/nYKnk7Hv/5/S5NG+hOdnRtY6uXlEV4yavIk8XB4YWWiK4egMzO6 sO4G/2UvGUGuvJAyRwhPXNNvt5VozamMlvZf0ia6EH+HSNua5RDgPfKd99pokQuA6XO4 KfMWdTsQvBPjN54ESVwFXIdLwFjiaj7kCXthbMH2Z0cvkN2MYH6ePUycpg9X73apn4vk XIL6swluMTegH4vKkwhzKXtiW3ELVpvovrupUDv5t5IAu5WVzlV6tezRObuYqyXWHxxo Wpo9cD+XUOAv2m2wdlitaDWU0ShB4GEK2ATNiHJMON4L51Gyo7qCBlo1jSO+hnzEStRq Y4WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718553; x=1748323353; 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=QQrSB16BhDCM3PYdSyclKBO+oD+fpgkkI+/nDZCGFTY=; b=S0w60y90fIkUjqnmzG9megyI7hfZ6nay7lNhOBgKyhvmwt79nnuW/fpx6HpAupnLnq TWVijrU/wQW8jS1kTP9PKqcnlHcLdm2zwuKs4d1EFlR9l1VEI1oz+gq4i+3xP2pJm+xZ vYfwIyUsAPEjjRU8cSX2pQQlkMC48bZemmxkiEiqJl1Sqvqt92DDtTdDTVNKYMxr0bbP VooI0vrBrZGgsDMgP1cFF0t5oTPduPwY/Istnyv3TXBR9N8EaFC28sQyMLEmSrsn1EZP Zv9jjeeevijCJZOWhoPZe+Ze/6iITu/P9PbwHkMK0qf8IQNnQkfOdFQtGs93+rozuvB3 H+Iw== X-Forwarded-Encrypted: i=1; AJvYcCWNmYvdDu4OvGTi/KXngZ69DVjIJekBanAxUwOUUN93e81Mlvev/jO9Qo5DkTiRw2uG3Qj30CU=@lists.denx.de X-Gm-Message-State: AOJu0YxjGpT+/NDb8vmq0gf+YzyM15n+hLoLAnURRXrOq6dInLA8rQdp Q6AJESu0acwofnyT2gHLe6XXRvICAlExNfJC8ZyzvrsX5Ky8914R9xpGhuVLu1JyTP8= X-Gm-Gg: ASbGncteNiLYtvD2Pq/Vd0TlsR9ZV02H9D1h49bv0vj5R8CAdz1sl2HB6ismz/0dQBD FYmBDwDyJ6EoJkXEmWgMhz6S18XcLRLFTPHKQDqh3iWFx85yRgLmEO8EWjUUdTFi3XaG5O/7vOv T+1y76Wp8rhq2NvSEovXkkaO5R4cUqO30DfGqCxIf29usNrN48WiHZH29v54n8yZYmKn3yJPWVT jDcW+pt5kphDnts2vZ28BHATvmS+ZfdGMY1Q1aQu4V9XP6fUl1ij3rrPkyOgN1AuIJlL0pl2PD1 iEJt2AD9mnr3+JNhwRiJOzwXYMSz/BoYIUwCydseUvV9vuOG/S25H13UkBZlubUcM2opGc6f2DU = X-Received: by 2002:a5d:64e8:0:b0:3a3:6c7b:d0ce with SMTP id ffacd0b85a97d-3a36c7bd389mr6293102f8f.2.1747718553459; Mon, 19 May 2025 22:22:33 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:33 -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 , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 14/24] kbuild: change if_changed_rule for multi-line recipe Date: Tue, 20 May 2025 08:21:25 +0300 Message-ID: <20250520052153.307194-15-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 from kernel commit 3a2429e1faf4 ("kbuild: change if_changed_rule for multi-line recipe") Signed-off-by: Ilias Apalodimas --- scripts/Kbuild.include | 12 ++++-------- scripts/Makefile.build | 12 +++++++----- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 6ef66c451eb1..c0d3440a4b3e 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -226,7 +226,7 @@ echo-cmd = $(if $($(quiet)cmd_$(1)),\ echo ' $(call escsq,$($(quiet)cmd_$(1)))$(echo-why)';) # printing commands -cmd = @$(echo-cmd) $(cmd_$(1)) +cmd = @set -e; $(echo-cmd) $(cmd_$(1)) # Add $(obj)/ for paths that are not absolute objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o))) @@ -268,21 +268,17 @@ if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ printf '%s\n' 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd, @:) # Execute the command and also postprocess generated .d dependencies file. -if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ - @set -e; \ - $(cmd_and_fixdep), @:) +if_changed_dep = $(if $(strip $(any-prereq) $(arg-check)),$(cmd_and_fixdep),@:) cmd_and_fixdep = \ - $(echo-cmd) $(cmd_$(1)); \ + $(cmd); \ scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).cmd;\ rm -f $(depfile) # Usage: $(call if_changed_rule,foo) # Will check if $(cmd_foo) or any of the prerequisites changed, # and if so will execute $(rule_foo). -if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \ - @set -e; \ - $(rule_$(1)), @:) +if_changed_rule = $(if $(strip $(any-prereq) $(arg-check)),$(rule_$(1)),@:) ### # why - tell why a a target got build diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 639091e7b29c..59ff37a53208 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -236,11 +236,13 @@ endif # -record-mcount endif define rule_cc_o_c - $(call echo-cmd,checksrc) $(cmd_checksrc) \ - $(call cmd_and_fixdep,cc_o_c) \ - $(cmd_modversions) \ - $(cmd_objtool) \ - $(call echo-cmd,record_mcount) $(cmd_record_mcount) + $(call cmd,checksrc) + $(call cmd_and_fixdep,cc_o_c) + $(call cmd,gen_ksymdeps) + $(call cmd,checkdoc) + $(call cmd,objtool) + $(call cmd,modversions_c) + $(call cmd,record_mcount) endef define rule_as_o_S From patchwork Tue May 20 05:21:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891306 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428527wrm; Mon, 19 May 2025 22:24:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUt9JAYhOvQnHxldeSOt6p0nmnS8i9UsLuWpv5WZEbo72G1mwtWeZ/ZLJ7QfxdzMqKbB81suw==@linaro.org X-Google-Smtp-Source: AGHT+IF9VcfQgAuCjdhD4IUVhkgjHUg9vgn/LxWse5FdpT4A3ZbV9YdiU09rcC7iO0YsMPDF+KJv X-Received: by 2002:a05:6000:2407:b0:3a0:8330:3377 with SMTP id ffacd0b85a97d-3a3600da349mr13009510f8f.44.1747718668292; Mon, 19 May 2025 22:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718668; cv=none; d=google.com; s=arc-20240605; b=HdfYhGVUnol8NxjD0BEa6MkbtrDInkbYmEytHMSJfEOdeqbbh1Q9d2nV0ksDiyRLCI 7k6owQ8+BB0Lp/GtpFeE6YzcFVzUruUo59FyBp9pAa8I6AbDfYmfqROgza8/6CX5XgFp ZJMj4ITq89SSgA8I7eHMYcHAZCCofCl2GYs2binmtZDeF0zS6O3Rcd1bgSrfpFQV81L2 Zgo8VOg7qrim1BL2OvEnnM6gFg9seUV7dVk0H+A9icYmrWaRhk5DoukGK8ySEZZ+CB4Z LAL3X6L7ZcjPDpgCOLQWqGb6Aee/cX7MwYH7/k5ob+ASr2snQEvMYe0bv1aillXh95no lj7Q== 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=krho0D7xdJC/s/CO/gGJ1CCxpElCy2ScmFM5rXKZo/c=; fh=Hs726Uv47PF8f8j6ifoPjx+4V6x6YE0xQHlnGQCoxao=; b=XeCDfDIrn6aG+8WfKFtIFZLa02TBdOIoquXhyF+Wi7xwpSdUSkd3nHRT8LzE+ZBdVP ztZf7CgABl9PCaiwkjWRQEHZHQxlu4ru1p3lCeZca5EAfo9PbNyFuw4Mz8B904sOQjbu +R3RrOpPf+1UG9UWJ7zPTvg0+i1r2jWuAjxqQR1oKGrfiwr/ZXIgnN2+ZhdFXRMi23Zn FbUI9bajYafUCK4vYzCQJJb36Y8rDb94MSw19413nblk1KgQI4b2N5F8AIG/VYb1dwBE vZ06fl+2LLrdFPHpASUvE71+GlgOnxZs7EaTQTL1+vb8sme5S+xBn0R6hNwIAxRaKhFA 4DHg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wGyOUATu; 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 ffacd0b85a97d-3a36277ed6fsi6359874f8f.15.2025.05.19.22.24.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:24:28 -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=wGyOUATu; 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 620AA82CD2; Tue, 20 May 2025 07:22:41 +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="wGyOUATu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1F94C82CD2; Tue, 20 May 2025 07:22:40 +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-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 4731D82BD7 for ; Tue, 20 May 2025 07:22:37 +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-wm1-x336.google.com with SMTP id 5b1f17b1804b1-441d437cfaaso31081365e9.1 for ; Mon, 19 May 2025 22:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718556; x=1748323356; 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=krho0D7xdJC/s/CO/gGJ1CCxpElCy2ScmFM5rXKZo/c=; b=wGyOUATugje04ChXXfLQIyxlGjXiwRpym9WdmbgAftYJWwch4NXfoGAhREHYZYF0Vc T9lKGnTRPnqmYpYND6MAA6FFIBPLW9UQMlF6lnz5GEHOaTxesq1XMZp8eYlD6FJwiI1U UpMiixb5basPDXaTMSEyZ08dH3AedLrdu/JnIPipakVsOFQwvPt2CyKtMHz8EYgKqAbf An6STfOwJPYkcGZnRYTQ/zqzeWGbr96BeF0tND3EuODMrDEAXm/EN5/QRzmrzpOXWyyT Nlyzvh3i/0dAWMn8l2hHCivMvZe5S/ntW9o+BFZ8WinBvBa5xF9C0klvC+G6NYSNcqsr v/VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718556; x=1748323356; 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=krho0D7xdJC/s/CO/gGJ1CCxpElCy2ScmFM5rXKZo/c=; b=tqnt9OBkEFPB/wwTVq/7CBZaqV9lV95KOt0otTasY4BFLK29Wyl0BP08nQAhyJfchd Uhp6Qr6hoOwqyx2jiN0Y6e9hZoKk6yiSqShKwNXtweUEdODsf19y1g965MCLW0nWlbuT rm7Bygx6AOWFiMGPxh+AeWc7hsUxeRZq0uDDLvRnABkFjb09+lRC1KJ9RK42mnaeQJMu DkIfzWSY9ZQZZkrHvagZEW5QMb1Q1T6aAb+3KQDXjtzmgqdSuTOZIb8wi0oyMKRL68vb Nqs7L5ztjB1EOQ48rST3IX7ZiFy3rk8V6Ypx04U+2hI/IORuyMZ79PY9ZviglTUw/KBm jzqQ== X-Forwarded-Encrypted: i=1; AJvYcCWeVzBn7kPnmdniVAci1fv44bYHb/nRJ1AF0iUEf3WwpkIL12a7OqgVtoj9Zd7g73Ofqa98QEM=@lists.denx.de X-Gm-Message-State: AOJu0YxMX+wY47vHHO5lZAdtVVm5NXRiflTiCwqQCRZM06MRDp/+BidJ zvCmFvI5CSImZxY/JSkXMrHBadnpf8SvAYWFkyGW5tP9y5PH2X7MpUSEJuf6zLA4NHQ= X-Gm-Gg: ASbGncuObXwAHdu6mwJRS5F80GPerFsDn5wSjiGDTjMDyGY3vIxDfwl453I6r0/bt5K vzxOcEf3kjQexpwdto5m7aObejMt6+eXzCanXFVdKshl6NCWy0hrWOLqvxgHLRVXSDXAt3aDOWc b7BTYa9+flBIrkydzLWM4E3TvSB3GNWKEhSy/HLafoJGCLYEVJAaL0qAypgludsAeORocBjQmn3 AXsTpONUeMBRmSPcMB2FBY+icg58UX0uEhGHT0GaCWhtvUW0k7T6Yb2rrAr+O3PArG5FlkxqybL ujhb01gJJiNkCN9TyyQk4XkVvYBUKvgtEF70v0vXewLFWYCKjWLsdcZl9qbs7NQQZPQngLd/sa8 = X-Received: by 2002:a05:600c:528b:b0:43d:4e9:27f3 with SMTP id 5b1f17b1804b1-442fefee1b8mr123261515e9.9.1747718555839; Mon, 19 May 2025 22:22:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:35 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Michal Simek , Prasad Kummari , Jiaxun Yang , Rasmus Villemoes , Jonathan Humphreys , Sam Edwards , Quentin Schulz , u-boot@lists.denx.de Subject: [PATCH 15/24] kbuild: remove trailing semicolon from cmd_* passed to if_changed_rule Date: Tue, 20 May 2025 08:21:26 +0300 Message-ID: <20250520052153.307194-16-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 from kernel commit e5d289100d3a ("kbuild: remove trailing semicolon from cmd_* passed to if_changed_rule") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 59ff37a53208..80caddde09ab 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -94,10 +94,10 @@ __build: $(if $(KBUILD_BUILTIN),$(builtin-target) $(lib-target) $(extra-y)) \ # Linus' kernel sanity checking tool ifeq ($(KBUILD_CHECKSRC),1) quiet_cmd_checksrc = CHECK $< - cmd_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ; + cmd_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< else ifeq ($(KBUILD_CHECKSRC),2) quiet_cmd_force_checksrc = CHECK $< - cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ; + cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< endif # Do section mismatch analysis for each module/built-in.o @@ -231,7 +231,7 @@ cmd_record_mcount = \ if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" = \ "$(CC_FLAGS_FTRACE)" ]; then \ $(sub_cmd_record_mcount) \ - fi; + fi endif # -record-mcount endif From patchwork Tue May 20 05:21:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891307 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428562wrm; Mon, 19 May 2025 22:24:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWSvPZhn86ZM1wA2n0pSxvcXdY/cSxUAGQh1XPKW1WirTpx9UaRbPPzq3S/Fu9tr2vrJlug7w==@linaro.org X-Google-Smtp-Source: AGHT+IExCxltoF5P1CLGpoHur8d3yyzhBfjAfOA0WDRdnZfzxoiCMmr2M2eGkpsXcaVQoFjQmyvx X-Received: by 2002:a05:6000:2404:b0:3a3:7593:8183 with SMTP id ffacd0b85a97d-3a3759382e3mr4040541f8f.34.1747718677636; Mon, 19 May 2025 22:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718677; cv=none; d=google.com; s=arc-20240605; b=ifyjrV/K3FmuClySgwkOTBbr8ilV6DF6Xc6RPyuaNEZ6chiI/VOzh7x9D1vqxZOy68 YCyATPCtxCAq6aWX9Xz6WAQkjQ8fCo3/qnn33yU0hf6gJncqwRtIBZVEAefIiaufwlLm YsrMB7lMlqVt+CVxqh0UObfBBij/bEB8MEXZ7eur5qMZucW4XPIB05CB8xLcH2WZREJP 9HigPK5nZinaShsKcCJJZhRcAcUXA4kG59+346O3qkWiW6cek0r/t6jeBPrEXn20F46u WLA7QUa9HSQt8e2FnosqwXHF4cJr0Ch3//JM4tO5pQNgUr490lzJ5UkZ9cCuGmuzC7So 8nzg== 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=Gz0FBT2PRpQ7wti3FF8BzG2UcXh/a7kQXjjzcGtZsCQ=; fh=DLa114LgsFHL33hswrrC1Mv35i+HhRron84iYwE8wjA=; b=g538n7f9POZTMoWJ68YCJ4FV4bQp2K2PknprqXBlVEaMvqM+cVqnQsRB6aPntZkyAU fSACbQ1l6r80Wp1ybns6UUleD2GPkOu8iUBOWXlflKuF6rhXw7ZW5E4WxiD6eb0sbexp 0ip8YESZWbYQElIPUA74D29fU05vypoWRWIb++ImZ2dkABI5DiQjNeVmxDqqeiv2krZf pFLgHAL2rnot/0p32H3RXG1jO3+CEEyoUGRdfV/OgSbnd9ox/EYbrhDaDmofKnt0U3Dm G1MLTWsoGsHbMf8fTxT8UAvKMcHeHqEcV5KvCz6MZYiD8/O8KFfw+o4sD6tZ0QTCcUOb cFtg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TxuCUhvK; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-3a35ca57b44si7358490f8f.197.2025.05.19.22.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:24:37 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TxuCUhvK; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 A277782CC9; Tue, 20 May 2025 07:22:44 +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="TxuCUhvK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0819F82BD9; Tue, 20 May 2025 07:22:41 +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-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 EA47E82CBB for ; Tue, 20 May 2025 07:22:38 +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-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-442ec3ce724so42137865e9.0 for ; Mon, 19 May 2025 22:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718558; x=1748323358; 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=Gz0FBT2PRpQ7wti3FF8BzG2UcXh/a7kQXjjzcGtZsCQ=; b=TxuCUhvKlEMSJnVVFsdL5fpbfOB6Lry+PvWH1B6iPvbsiUh7CFNzCw0TnU6TTt7z1l D2I8jLbFR8QrmZhxtQqDY/4AO28KDaGYMto4qg+K/KFLKQKFc2EqmV6kVMQnolYwv4i2 8X1pCTQ9vHqL5E+nMgIdW1HJHLA7+9rZjXrov9QuJjtM5SRnMCRt9q3m/MEPm5AfSuBO hyy/zCHWn7AqRWMbf8bHBXARFGL3v682/1559zMnAYXWXhlBjVdkqKs9eiERo5Ix/m+y jL5lAXF0vkSZQiY5Q4MpUvfqxeVxJUgG7q8po/Z+klI4c/VM03gyIEgAJbOvYOVsJQK2 005Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718558; x=1748323358; 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=Gz0FBT2PRpQ7wti3FF8BzG2UcXh/a7kQXjjzcGtZsCQ=; b=GbyS4hPnPZJnfVBgyzCcK7acm9s/3jj4VTujRSNfh3LkWvxLDh0gwgTAlOT///Alkp p1Ne3MXFPBBW+S0iLmUlbnF5l43UrraVjoxc8qv48u5Bq1/X5RW0avPxk8R5hb40VDy4 ZtqyRYpM7wFs8t9K4BAMQgoIDfpsvePufVKLJUqXEJsxZgC6goL2FwjiCe5fwpJdcm7d GHDKk+oFQmkRMWm3JYsVIMA0yzN1S0sxLqRt7cgglyC91uVMnCr4O8K/+U24gt6LXuay 4XM5H5OB2xUT2xMZpdt9HvP+lJbKWnfQ53+Q1g4CHd+fd8UoE4Yk32vA0eJc20zX2qcz ayWA== X-Forwarded-Encrypted: i=1; AJvYcCWs5fjqgptoqDSjrluIJpiodkSiIBOdcx6QKAN6fV+cYp4cwoObjhqlM+ms9+VrvxBQWz9XIus=@lists.denx.de X-Gm-Message-State: AOJu0Ywhigx2xVQmd+ecmf+RTxk0eCcraIQ05RgqzuqQmdS64mQOR9h5 LRvuHEHK19H928iyTj2rAJ4vKXI2lAMdW2WH99qE/39J1y6YwqoB//fBXW2efJBkwb0= X-Gm-Gg: ASbGncv2h/wnPKGkRuYRO0iPKzrG/SNi1+EQBv8Mhs4pwYs2dIxTBVzk7d+RqDEL+MQ Bom8GiFLujNh4P+vDbeRAG95hJ7eAWIv04OWcBPv0zpbe0XOGHx3/O+DEFibYYnTDGr7zSGRIsy eNoN1h/9z4pa0H13dBY0oyKhHh2zZQi7CglAI5XJo23EorI5Nr9aCyOimvP5mnik82RzMV7HMDU BKH75YnUOsAPr1TwbULScwez/a5STGYcEGdgtFuZIaMV9mARtwGyqSnc5mptSeozNA28welinX/ cZ3Aew3qNjfRHx636I0MgYzQd/BQCZTbjKvOQ830IW9f+rvGB5rx1Kg5PZxhIRrE3XCX97DgoHU = X-Received: by 2002:a05:600c:5247:b0:442:f4a3:b5f2 with SMTP id 5b1f17b1804b1-442fd60b4e8mr119775415e9.6.1747718558189; Mon, 19 May 2025 22:22:38 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:37 -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 , Jonathan Humphreys , Sam Edwards , u-boot@lists.denx.de Subject: [PATCH 16/24] kbuild: remove redundant 'set -e' from cmd_* defines Date: Tue, 20 May 2025 08:21:27 +0300 Message-ID: <20250520052153.307194-17-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 Backported from kernel commit 5439f09f488f ("kbuild: remove redundant 'set -e' from cmd_* defines") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 80caddde09ab..fa91445f132b 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -159,7 +159,6 @@ cmd_gensymtypes = \ quiet_cmd_cc_symtypes_c = SYM $(quiet_modtag) $@ cmd_cc_symtypes_c = \ - set -e; \ $(call cmd_gensymtypes,true,$@) >/dev/null; \ test -s $@ || rm -f $@ From patchwork Tue May 20 05:21:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891308 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428606wrm; Mon, 19 May 2025 22:24:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV/hcLeI9OKIKXGUsWKI1fHw+2q4/5dlL+rt+Lr1wpTg0JLLhXFL6vyVed5hXkCkRwUD1+LYw==@linaro.org X-Google-Smtp-Source: AGHT+IHK+Q3cyNAjLGQT3sA03KPUShfDXMBjHXrcI4Onf1ep9XFzdK0UtW19OoaYIuItWtIECG8d X-Received: by 2002:a05:6000:1445:b0:3a3:7be3:d0f7 with SMTP id ffacd0b85a97d-3a37be3d46emr297189f8f.22.1747718687339; Mon, 19 May 2025 22:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718687; cv=none; d=google.com; s=arc-20240605; b=U6ZXAEHQzG8oLJpjSSWCKL6tug+iVLvqjoSbh03H9R3n7u6oa8+2K5nzyqCu8tqJi+ L/eq8RDSOKv+lyw1Cek/IevC4cADHfCa8wQDKQ/srCsBZqVYrFZuYAQbt3AllgFGiWr6 3b7/LMs+WRHUlCuIo9TrS51g8K61ae6lxKev/gC6NBg8BUW3h6EQbGxSdAg6XMAzqkVK z6rSKILX5aIFBXXYkP4n9lxamEvt3CNy3/SW/kabsBWvROEyk6zktObNhnYPmUtiXux4 kWpD7R263k/GgyiShJFGAitUJXpUgspIQIeQ2j5hNgTwwKUWv8EMMqzvsetav+ggK8Dm Ze3g== 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=SZrKWnYZXXNTGosY75zyzhsNnAawmI+hKa+SKDv0ZfY=; fh=xmzgyI0leKZqegiDVJtlJHNv3dP5/DsIgVeOimvP5EQ=; b=hn9Kx1czAGn7RRWLomZjkNWf7coVR/lgiGJl8uyLwraGetdVb6jfz+B8U5tSrCNNCy GYcCS2PUna8fPYjxet8noRNGqH+cXPQTqnz5BwTgPTbtnEF+eYf3OI1SqRwZabVZYf4J 1oov4KhhgLpwHYqHsKrxk8oBaVYGKPMZtqma6pS3sCku6SQB7U/2WNXGMwTKhV2PuPpL Q1TpNhcVcKBq6aymnwpVEsdQYcTJe1iHVkcjkYlAqS4sAM9ulCqFH1w+TeSu+AtHSFJW +oYGnQLlNekYr4UEiAsaAJENx/vvt7/suKMpDtxDYtqJtJWxgUiCnGGR/55fmQq+/sUD 3CDA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZNzUB+h6; 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 ffacd0b85a97d-3a35ca869aesi7077574f8f.606.2025.05.19.22.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:24:47 -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=ZNzUB+h6; 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 EBE3A82CEB; Tue, 20 May 2025 07:22:44 +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="ZNzUB+h6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1817182BD7; Tue, 20 May 2025 07:22:43 +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-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 2ECEB82BF2 for ; Tue, 20 May 2025 07:22:41 +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-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-441ab63a415so56961235e9.3 for ; Mon, 19 May 2025 22:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718560; x=1748323360; 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=SZrKWnYZXXNTGosY75zyzhsNnAawmI+hKa+SKDv0ZfY=; b=ZNzUB+h6Kv1pq25b7IBpRQosGRaWP9TFst4MlnMSKtv1yr4uKzcVIBCLc+q+bFNewk EC2n49tCfGpWgpFVRRTd5EoFA6dF4weUVJb1nUfYt1GwHFq2RQG07PLbznmSBDYkFxnM h5pQvDaQ664b5pi8KQb8nKo1TBwOHt4U0eJlB/VIwbDc9RN6dG6kW0pyyvBfOVkC0Lne ZfwHhbZR/KPHNg8dxXprEv5Cw50CnKo4ikfhU68UFS2yWu9QN0zCmpFV2gEQ2IMSnpJw VBPaCjn1Hm+5UEgAfdEsBgGOyHqo0BmS9aukLbEwlRLev4o+1LuDdGrwaN618hsmo5qc b0wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718560; x=1748323360; 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=SZrKWnYZXXNTGosY75zyzhsNnAawmI+hKa+SKDv0ZfY=; b=e7YWeYbqSlLCDbMgVEdx61uXsZCB6fnxKApv/igY1aRxCwZVfdVYzZ0/7KqzZjho69 Ct8L8CC9D+F3kKLNDd10+bBQC7rhrop5eJWkZjUlPGK2TXh8KLHXKUQuFk9nyn76S+zO zibUCSVEV8ILDUs/8/Yk0o25gZmYoHOMV8q8W03CgiaaahvCs0uK36ZBdQhhBrqbi6Kr Xld+JDjkCnoJHdLfaU3RKkIO7bOnd3GQMAfUTH4fOgz6d2Du5xUjQdliKOexcuBGL/qE whS+k0ymMcNHRD6ThjAWVIqvxBNe3I7DGAnX9vRY/yl2us35Av1id3LwsKEsM9Vv6/ZW tbSw== X-Forwarded-Encrypted: i=1; AJvYcCV0GZxqT++7n0mTMI/OjTc+KOIZ5rzf4fbqLM+nAl6WolpRN9up8HphN4ecNGr9DJqkKxNrZF8=@lists.denx.de X-Gm-Message-State: AOJu0YwVjky5cfWElMos+B4SN/BV5gaop1SlHMe4j9f4EhK6+E2+tVuz QMHf+4nqVGFizk5jgM02gu1sHnE1NeSsSces0CHsa0rhxtiNaLRFcm62tBMCsRdmZr4= X-Gm-Gg: ASbGncspPDVvXw/Ie3y3eDWgF1Rp5ccaVYnNb4rSJzdmYtY4TF6RDEJ8i5Q/dJ4kSqq 58dIjVm1G9uJCkYl5rZsBn80VXuiL2yRteKQXZ8J6lb3g6Q75dFuJnKMtkqBZk9Dw+LnF/oHfkM UdRbnLSx5P70sEMU1s19XMPqGO7nyBHhGT2IFQ17Ajss/krBiUy1N7tblGY6gVFw/nQR10fgjR3 hWW9U5tMJu4n01/iX/6RhhV1xyudpPhvBdAJIADyN/13P9oq74u3A+AYdRIDyHKOkVoSnSYMMIn rUgRssZoVUKqPBnseMUZRCnpcmyPnhnUKLKjwdPptfDfNLG8zMNKafP/MpFuC2qiNy1ZltH+2e0 = X-Received: by 2002:a05:600c:1d07:b0:43c:e305:6d50 with SMTP id 5b1f17b1804b1-442fd660721mr114794865e9.24.1747718560542; Mon, 19 May 2025 22:22:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:40 -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 17/24] kbuild: remove redundant quiet_modtag for $(obj-m) Date: Tue, 20 May 2025 08:21:28 +0300 Message-ID: <20250520052153.307194-18-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 Backported from kernel commit b39a691617e4 commit ("kbuild: remove redundant quiet_modtag for $(obj-m)") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index fa91445f132b..29446298041f 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -125,8 +125,6 @@ $(real-objs-m:.o=.i) : quiet_modtag := [M] $(real-objs-m:.o=.s) : quiet_modtag := [M] $(real-objs-m:.o=.lst): quiet_modtag := [M] -$(obj-m) : quiet_modtag := [M] - # Default for not multi-part modules modname = $(basetarget) From patchwork Tue May 20 05:21:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891309 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428659wrm; Mon, 19 May 2025 22:24:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXQgm9a3Os4v+F56fDm9p1mjotqaK/P0LJCkVaE4AJGKHSvw3pB857ORnT/Qx+0Lpp00sf1mQ==@linaro.org X-Google-Smtp-Source: AGHT+IGFfY1K9uNKjnT+Dx21mF7VQKfwx8VnjDUbm6Nu3qPg3Uxm9pG42PrVh5oV822noNKzObVj X-Received: by 2002:a05:600c:524d:b0:43d:49eb:9675 with SMTP id 5b1f17b1804b1-442fd6607dfmr112955665e9.22.1747718696069; Mon, 19 May 2025 22:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718696; cv=none; d=google.com; s=arc-20240605; b=h59rJusnkJZRzmUOd7qxP9U9orSZwT6MKcT6eO4txJAtRzQDadHembuJ8F/ebNldhR MaEJt5J3xQJ61xdRSsvMWvB7JG+AwRyDfE50Ov0EwfHIf/whja4ERwYgxFKkoWzpt/+O WZ5qzd+3uaC9tRbEtYG3j/OpsbV5exANpr2UTZ8t2hHv/9Q7vD3uukmOuEO+yUAfqToq TZS6UxrUvHdXVtWA/x6p0FBGi5eJkhaS6OE45Vg88sZPJeTToArbBapULfSoi1Q91cm3 2eq7GHO+38tz0XYuHwCwt+PZ9RiNr29jIWoIFAZhDOy5dpjxY+fsEDN2lNl+aJuoDjGQ D5KA== 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=P3VccfpBjmUTArAx3UopilQt/lVGZQhEuWcUfxFYEHI=; fh=6JucOniDRn0Io2T3dEQdCl+T1UIwuxUXZHvyJ74WAXw=; b=Ppgu4F0HdA2dVn18HQlTKB33IQHTQcg+pGPumryIF/xY7tw43ZYC/uNyK1YzOCzoMs +xAwfHpQ/ZmsGDIyAhy5sYRRsS/XT9grLLJPQqqdeocVjJkGV6wVaufaWoCzIKWg4qg1 zATznwvy3E6g/IvdZ9L8r07qcKQnQSVHdU0hyvHVYd/MQabC53DY+E2X8rEOAWTfMmbt Dl/+7olJ05Re057oGDgVRU4swk08S4iSV16b0j3M/OjvNWh14SI8u88LmvoThPXJaqGB khT/ogL8yXywspV+7K0W35ZbiCzkuv0/GkuxS+RyU0KiBRM5LDwbqHoZZ52F70DtJOQ7 B+yQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GafPnXC9; 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-447f1ef0397si6831155e9.50.2025.05.19.22.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:24:56 -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=GafPnXC9; 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 4006F82CF5; Tue, 20 May 2025 07:22:46 +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="GafPnXC9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7B5E182CF4; Tue, 20 May 2025 07:22:45 +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-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (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 8FFB282BD9 for ; Tue, 20 May 2025 07:22:43 +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-wm1-x335.google.com with SMTP id 5b1f17b1804b1-43ea40a6e98so53957495e9.1 for ; Mon, 19 May 2025 22:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718563; x=1748323363; 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=P3VccfpBjmUTArAx3UopilQt/lVGZQhEuWcUfxFYEHI=; b=GafPnXC9td8Pq3IY+xYzper6mxuuzNCidsLVbM6EtvmcM84nTjGEpq8GFLwlEu3l30 trFT40UZBDLYhjzXHzJhYGU/1MCweMSHWUysR0/SdWDxEQTUGHJ4x1IE/ACBTDjsRxHf Xwf66i2B7mxRnoDH1/AedIyjpYryRZUTqDNvtCgZkp6gkQpg4MHD/LkB7uxdxoW+0teK /DhdzwS/CI1UngWFJ8E3coWF6sDaxfMioXl/n2DEZlPMzZLtFIDf4GltK539dXfuXpFC +R5ajyqRwUv3K1lFDhDEc3OL6ECoOatTJgKaej5EwupnR4gSxvbrJ1BEd+yx5DoYIN0y WDdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718563; x=1748323363; 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=P3VccfpBjmUTArAx3UopilQt/lVGZQhEuWcUfxFYEHI=; b=scWWsL02V+qtk/q1N/FnnidJ586XlCWVFKSS0cDK2BorauuqfhyfHyn810GA5/UJ7H n8TLA67XynTErsjFWsBvxn2NfIVTf4Md8ZloOdDr+l6dNJaQ+nNmt83WPfz4H2uOza0E YPEzVkI5O9IY1E2jlkFw+4Lq/SyokeB72TJkSFLMgVfUfSpUVp1wb5eOjSGKSL+AQaBi MSEdgYSDIT52HPnFW6628mV13A+ETqUmYKl/F9ZSj3HQRVBdGLkw/1CN/+JgbU4xrrBN W/s9/FmUWse0eiwyqrC43CPZysmN9i+FmOZGruMvnAR9+J8VYp/X2Yfrhn/U1aGhV+QQ 3pRQ== X-Forwarded-Encrypted: i=1; AJvYcCWtfwjnsjBAoRyB/Ur3829+ry5yTyUums9pczaz+eTucF1RXaU41OiWXxI1R9j9a84W00CI76c=@lists.denx.de X-Gm-Message-State: AOJu0YyKsseWhxGP8SDG1LD0hvjlqIP4DK5DOr8zGvo9xppyS9xjCiAJ /QiEqc8KQs3UXn5HsWndQMkEorYnJ9GwlYRSxpG8j13rZbvICCjanrQt0VXZPy11Z9k= X-Gm-Gg: ASbGncsBSNW6Q3T5efpJg/UfI2u1ox7y3jsEx4ljTog3sAZ/p/OMfICbMXw1O27Bd4T D9u9XN+gJfbWqezzuNLKMs4ZV5nfSgUbHpD7202qI3q2p/T3ES4pds/xu0gBMHx/xGHjbYvaS0z Za1gyJ8BeOIGe1ThY6CQy9FJ4WWbqD3OBBIpWjdGn6macqfnfBWUkk5ou3H4xRavcbYxLjc2RFW 6cUSGU++qppH7D0lsSz+m3iNvrMz8WhRle6Tyep4SqRsYF/tmy4aGOS9ageZ5t3o6d460rhFuWL pBF24EJzuMSZvQh50lL6lghkj3KUqyA97FCC4gE1r4XH9kpxTSCBkVOlpusfY8KJKV9sUvrZ2vA = X-Received: by 2002:a05:6000:186c:b0:3a3:6a3f:bc85 with SMTP id ffacd0b85a97d-3a36a3fbee8mr6971237f8f.25.1747718563021; Mon, 19 May 2025 22:22:43 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:42 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Michal Simek , Prasad Kummari , Jiaxun Yang , Rasmus Villemoes , Jonathan Humphreys , Sam Edwards , Quentin Schulz , u-boot@lists.denx.de Subject: [PATCH 18/24] kbuild: refactor quiet_modtag Date: Tue, 20 May 2025 08:21:29 +0300 Message-ID: <20250520052153.307194-19-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 from kernel commit 45c4372d00 ("kbuild: refactor quiet_modtag") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 29446298041f..ed58bcab291e 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -113,18 +113,13 @@ modkern_cflags = \ $(if $(part-of-module), \ $(KBUILD_CFLAGS_MODULE) $(CFLAGS_MODULE), \ $(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL)) -quiet_modtag := $(empty) $(empty) +quiet_modtag = $(if $(part-of-module),[M], ) $(real-objs-m) : part-of-module := y $(real-objs-m:.o=.i) : part-of-module := y $(real-objs-m:.o=.s) : part-of-module := y $(real-objs-m:.o=.lst): part-of-module := y -$(real-objs-m) : quiet_modtag := [M] -$(real-objs-m:.o=.i) : quiet_modtag := [M] -$(real-objs-m:.o=.s) : quiet_modtag := [M] -$(real-objs-m:.o=.lst): quiet_modtag := [M] - # Default for not multi-part modules modname = $(basetarget) From patchwork Tue May 20 05:21:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891310 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428705wrm; Mon, 19 May 2025 22:25:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUqlo1x9HiVHUge8maQ37CwvyB7cUeNqNwuJ7ZpBR2oyEqilS7xY1AhGHBbK9d6G5/LkjSG0w==@linaro.org X-Google-Smtp-Source: AGHT+IHBCmek8wreCCgaI1BK/HcUqsLdfr90G9tXRShiS886ktYORU4J545OOf/bXuV/A0NjM5+2 X-Received: by 2002:a05:6000:1a86:b0:39d:8d54:5eac with SMTP id ffacd0b85a97d-3a35fe5bb4emr12663186f8f.11.1747718705144; Mon, 19 May 2025 22:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718705; cv=none; d=google.com; s=arc-20240605; b=T4MtwFSjHo4gB767Xi9VOq1z2x1/JDSODteDJvr6TdCdbzs37vqFGCeEsuHIQa5B07 /H5mgFub5zwJWhS9txnd5LMJggvqlI+ABlSjcHHzJHrHMNIF6wt46KxraFczctIBR5pR WsCZzM3w81sCX/dYqINSfL7qSoKu0+Afw39s3hUPBDFDFdEEVa59TtWCPXGomxrviJbP Tq1SAFayYA5TuDciP8dAGsw6s9DZniu60emnGUnwYT+nqBqTCGRF3yiXhF+oy3/7Y1Qn yhMnqbzYBEPk2d9XKtG4Dx2hx0OaZmF8grbQsjcv3puH3wipZXN8b+GQI1YsM99lMxWT BK6w== 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=OG92kuwzpTCKHLc7zmNK40MbdlcZyxZZSL53UbY0+N8=; fh=MGrfMLpUgi4af0EAq13SW5AozrVpi07Hw34YDmKWvHU=; b=GY8YgNdxsB1ZG9qKp5V1/BnxQW6eJNyVx4VIPMeFQmq3Sqq1vcgoJaGHHv5iHVlAzz tf3uywQkCUfWR3UZH2qArO0tRBsINDfnXebZk0y6w4FjOmlmfijwvV8jZLo73SKwZ1DI pRv2fijr7nVrvojRNc4NQJOyHN+K7FpXnUJyv4LS8QyVhjUarxuiDe+b/g0ApSV83iD6 l5vlwx2a4F6bjvVBqwijduWxllWgvp1ARiGIhGJkoB9Re2rxHTEbEWtUYq4JO+9pobny ktncdQixBIxlwt4RCu01dSdDXMd91Rp1Eg1luq5hHZXLFU5kQojSutTNLZubvtja/ZvF iX9g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fvdxna39; 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 ffacd0b85a97d-3a35ca8b909si7304137f8f.680.2025.05.19.22.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:25:05 -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=Fvdxna39; 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 8A2DE82C10; Tue, 20 May 2025 07:22:49 +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="Fvdxna39"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E15AF82BF3; Tue, 20 May 2025 07:22:47 +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-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 F297F82BD9 for ; Tue, 20 May 2025 07:22:45 +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-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43cf06eabdaso50406255e9.2 for ; Mon, 19 May 2025 22:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718565; x=1748323365; 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=OG92kuwzpTCKHLc7zmNK40MbdlcZyxZZSL53UbY0+N8=; b=Fvdxna39qpXPhAxXFHEWVS/Xev+2RXLcs/NEB3vjQTjJXg21Ezi4TkfVqkwooDyYki WaE4700F3H+ZgmyCyAnc7xLgHB38Q9eahEmOir1kwo8Ss9o22ztqVec2o21vNhRotGlK bfb02StPiIYRmpIEASueBFGPiEm+VcQfWKaR49mSo/yU1K+ioMXQVa4qntyhzPX76RfS 7Shep8KuVZD89Qa1UukS8XZLKti6IgK1z5D5LOwAJrY9Le5Dr5BCcmjgJZOam7lYzSK6 crSunB36Qr9aKcSYqtaZaO/TWWgynwbUAc+dwklfks2j9CDZK1R3LGkbimT9jLr67eSQ Jkmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718565; x=1748323365; 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=OG92kuwzpTCKHLc7zmNK40MbdlcZyxZZSL53UbY0+N8=; b=UPFNaE2FxMENWYoqxbMZSTjnfDIAtg0V9pfFLFSkwmzMrSIbyorLWYLy+eTv25pAtC 4O1svNbH9Osat5xFedkXmCMAFEgTJOKU8Ooi2EPC/JtJWxoflZfhvknZGmSQjork0M3a eTDWRE82Gfqo0f0yHj6uCv00o8rRjGfsNkCb/zoFmhMkfUCO1qdc+ji1zwhlWEiGN53o irv7xw2jELRplMA4dpPc5tJiNpy3rGm7kFu27MEL6Q1jRYsqrjxFCbBvuItCNo30a2s+ Xk18ffT/8O/91zVZWpkbJHhiiL/Njk411Kq2Rf68ZUNKMG2BTQrOWxA5X0RMOssh50lk Eysw== X-Forwarded-Encrypted: i=1; AJvYcCUn8qfOwm+PYKUoRKRfnazBXGLaJZrt6bX9sxqtjbW2g/nSkWLwu1YOYGcnBDbRgRrWReLzziE=@lists.denx.de X-Gm-Message-State: AOJu0YxlGcb6Y8ZE/KHLFqXslZv+zb6j5Gsx0KWDk5WiBanqOa9eYGVL MRJGr+0ariR6eMoWDn1Li23nLYJP2ib5TnjUer7hxm8jSlH5VLNEN3e3Bcu+KDCwXWE= X-Gm-Gg: ASbGncsFFld0cNRhJ1QD0w2v4HjUf/yoZwFSC0FQBqjboE4COvu5cuh5l+e23ZZ0Z8A LMDE81/NcFuFEE7gQFdUa5M4ObX5b8BLCfNWKxQP+Mub8lhc5O57v3cozjedVTsOghOywSXy7lg m4svuY60ktkvI3kFxU0mfURWe/QcHWYSC4F9S6+0Zln2wb9jC2x2qypjufSpW7vArDasXoJ36/7 vpi08G9btaa1KfZO93OsCRXHvlTEKJTlQBUiPNPK4l7K4DqZI94JPjk/SKCh+0YsTtUvmM24tFs zZJBp9uje+dP+EWReqBufV07Kjk6hTSuvXCPdF5Q2bqKB9RbrGfIG66m3+JdADIzWofJIyJGQsk xWHbSxNHsrQ== X-Received: by 2002:a05:6000:400f:b0:3a0:b4f1:8bd5 with SMTP id ffacd0b85a97d-3a35fe67aa7mr11415768f8f.18.1747718565459; Mon, 19 May 2025 22:22:45 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:45 -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 , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 19/24] kbuild: generate modules.order only when CONFIG_MODULES=y Date: Tue, 20 May 2025 08:21:30 +0300 Message-ID: <20250520052153.307194-20-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 from kernel although it is unused since it makes diffing easier. commit 1d8001ef358 ("kbuild: generate modules.order only when CONFIG_MODULES=y") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ed58bcab291e..2b2beb01bd3b 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -82,7 +82,9 @@ ifneq ($(strip $(obj-y) $(obj-m) $(obj-) $(subdir-m) $(lib-target)),) builtin-target := $(obj)/built-in.o endif +ifdef CONFIG_MODULES modorder-target := $(obj)/modules.order +endif # We keep a list of all modules in $(MODVERDIR) From patchwork Tue May 20 05:21:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891311 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428762wrm; Mon, 19 May 2025 22:25:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWKij1OH9T+pV3MWkfQL5bBKfNqwWR73o0txQZxwlCCKbed13tcEXEAp7B75fdCPO4weahSpA==@linaro.org X-Google-Smtp-Source: AGHT+IGwBtfMX7cYuqQkpkui+5BT8Fgfbi1wyG7El1sCvmR2iUOKNM0uhxBPmr8ZGTyXcS3C5/cn X-Received: by 2002:adf:e346:0:b0:3a1:fb11:4b36 with SMTP id ffacd0b85a97d-3a35ffd2c71mr7813051f8f.47.1747718714345; Mon, 19 May 2025 22:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718714; cv=none; d=google.com; s=arc-20240605; b=PpuJQVZxPWVnUAlxInHwlCCdux91l6epSkkD+It6ltu/X/gS8Aj2zEfqVhiv347bEB x5MO7U474jFjdl67mDiPQZRlu01YkGyWu154+nI2kJY7nGdlZCxM9WMh/P11ST4b/MWp pY+M3ySMlWnIblDlRvSKQ9VmwTExDhOKNGwCJHLa7XRz7yKFJObKaI8xmlHeWDIckhA1 RJxkpY3OwmR4nbvrESedF/bBpn60z2HXayY1cKZSquUXJeGY5g845qD5R9ncbp8QbMpO yjV03+ZNHpS8EvGZ7Yd9PD2PWLDYPDALPPjX5PB+byW/FGryAy4ve1iN849Wvt9LHARp 0lBg== 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=D3kk1pY9CNaQhZdYqtPu3iz9HnxJiZ8tAZj1sTxPVQ4=; fh=0lZ9FBEIqbzr2XDzfyQZ59WcA3Z/HNwNBtA8l7mHJ+U=; b=CEv+YNoyxJ88SEUiJwF58bTn2uzzYpmtSVgtgTBFCUjQ2D4Eq8UUARNI+9+4TFIh8X wzb/dxLlbWU8VYKL75fwXM4iIYvcr3N7yIJxIJcc1vuA6Y6wMnzbRRCYfHBdQZCo1g21 EtuhwMOVWyqIGxmnrF3zyTlz52LhXlghzIsKoFzBnNZPKTqtU0MjipYW+2cstYd1a+EI U2pBRYSiGR5qAcVu/AoyVeUbJPEgRD0acKx1Q0HraE0e7xfJND4qbhs+T6mJCkVvfyd/ nSfAQBust6Mo6A0OoC47cg6i8CFk8h5N3COs2fCTY4e6lGyAJmzWCGfL69Gp5Vv9K4h6 FPVQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Na3tv/DF"; 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 ffacd0b85a97d-3a35ca7fd2csi7258785f8f.383.2025.05.19.22.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:25:14 -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="Na3tv/DF"; 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 CBF5082D06; Tue, 20 May 2025 07:22:51 +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="Na3tv/DF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5788A82CF4; Tue, 20 May 2025 07:22:50 +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-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 6FF4282BD9 for ; Tue, 20 May 2025 07:22:48 +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-wm1-x336.google.com with SMTP id 5b1f17b1804b1-43cfba466b2so56142725e9.3 for ; Mon, 19 May 2025 22:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718568; x=1748323368; 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=D3kk1pY9CNaQhZdYqtPu3iz9HnxJiZ8tAZj1sTxPVQ4=; b=Na3tv/DFOTaXvDxlu+688z85Ga/WDoMmETmoIFmLH3S4qzZS42cczh2SO9lNzRDAJQ wwYGfXbpj5FeA3UOiA/8njdN3N3Jcoxsn6u3wUcQYiPOpfjkkxAz7KYhHlAEvbQ1dza5 eQfADLKOMlyoNggTY35naueW7N8AS2orhHNph9mIAmwL2gCBE2twR2uzPQ1SOd12a0CQ lRpwOP+wW8Bgk5woyzW7R30YG9gjHOIk4bOLsgB8IqAPaOHTSSakIjlzz4C8Z/Ffjk+m YTR9GE8bxTF8QnEYPijgC36T+19qkb/+Tta567n5+sGXnl7FMX/BqS3/u+EjB+nizgaO ZH5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718568; x=1748323368; 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=D3kk1pY9CNaQhZdYqtPu3iz9HnxJiZ8tAZj1sTxPVQ4=; b=Zsba1GhMbZ/+XC/Hl/3ziBFLpscl552okQ5du9D2FBDAeVq50DvCe/DCgk8g2+n5zP nKZBuBiC+NeS7ZVCpppozakKI19cpFTVUUG0QBYVN7mFp7QQ31n56mwvypVL2caQD8LS CiNfBvhTZdlLSOHGM1/iFj+uGB1ZncNP9jh8RrVewQFpmhwdCZxSK1kLKK/xfWzVQGN9 WK5P1urFbYifd5IcGaV8DwvwOiLkkLLgvTE4nSdnttKuwx/NF2v0eOwv+eqrHR8+Y95f IzST/vH01qBYS8Wfigsg3D40w6tktnS5gIB6k7Kp/VIGxlNkj3GtizfwPQAc1tGaaItM hPNw== X-Forwarded-Encrypted: i=1; AJvYcCUosA9W2r6NW0wg6jvdvdX3bKrMgLGr12SOv52r9netVsHX2V9jogp2s+wmAQP9WDAOjfz0rWA=@lists.denx.de X-Gm-Message-State: AOJu0Yy33CyRhsmUzIE4OPxWqqNMj2VEW4/83u8pwpq0ryarzjPNj0IS ZPUubvEkzxqViKIuujrsjiOa3iw1VCBZGMQEKK+OMPit93cMBu8nqPpbJq1y7+iTBiY= X-Gm-Gg: ASbGncsqfvDDhCQaODU5JgK7/QsBSiMp/f94OUMlCHzreAOD/+0ZT0VRnTgKx3XsYr3 GKN9iXvepqLT1I0LMOduzmvjPRmS2QJ5zXQqP6KCmzHDKPQ+1uSRWTaDkY4p0joeyNeRUVw2yKD Xsagb7qkymZL91O0xEPVfLwQNxZmH0bLr821dVfkd1LxoTYJGPzZJYzIt9xs8O+uqiBQAHr158j vH0j164wUrmNvqB3TqH9xn2jUz5nM7uItYxmAiVxVwc2b8hCtjbpvC0n3HaM333sJ777JPH2P9l Oo8Q+Wj0QBmT0hVmx1PIgI5YVYi4M69pEwChWSFlns1PpY0tJUK5ptc3BLrs1w0iRagsSGFFEjr 8m0OhpAO9DQ== X-Received: by 2002:a5d:5848:0:b0:3a1:4343:f834 with SMTP id ffacd0b85a97d-3a35fe5c5e9mr13710681f8f.2.1747718567968; Mon, 19 May 2025 22:22:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:47 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Michal Simek , Prasad Kummari , Jiaxun Yang , Rasmus Villemoes , Sam Edwards , Jonathan Humphreys , Quentin Schulz , Heinrich Schuchardt , u-boot@lists.denx.de Subject: [PATCH 20/24] kbuild: hardcode genksyms path and remove GENKSYMS variable Date: Tue, 20 May 2025 08:21:31 +0300 Message-ID: <20250520052153.307194-21-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 Back port from kernel although it's not used since it makes diffing easier. commit 88110713ca9dfb ("kbuild: hardcode genksyms path and remove GENKSYMS variable") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 2b2beb01bd3b..b7611c030088 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -148,7 +148,7 @@ $(obj)/%.i: $(src)/%.c FORCE cmd_gensymtypes = \ $(CPP) -D__GENKSYMS__ $(c_flags) $< | \ - $(GENKSYMS) $(if $(1), -T $(2)) \ + scripts/genksyms/genksyms $(if $(1), -T $(2)) \ $(if $(KBUILD_PRESERVE),-p) \ -r $(firstword $(wildcard $(2:.symtypes=.symref) /dev/null)) From patchwork Tue May 20 05:21:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891312 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428819wrm; Mon, 19 May 2025 22:25:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXucNVgVjUj9a+uYegNFw0RAKc9MIZbTnUG1xpdVfTBIvgH/G5wEl+2UrQ75OXqEqziuEPckQ==@linaro.org X-Google-Smtp-Source: AGHT+IEo1aCJh2T9i+85NjCSUgzemy3veeNlC8f/1Wc/ZIeu4ulLezIzm1rDoszVGq2FBLjSna+k X-Received: by 2002:a05:600c:1994:b0:442:f44f:655 with SMTP id 5b1f17b1804b1-442ff03c60dmr114661145e9.32.1747718723213; Mon, 19 May 2025 22:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718723; cv=none; d=google.com; s=arc-20240605; b=P0bi/9lZlz1F5V1b+9ijK9VfTZgaAmmSYP52rblZ6rayqJRfFjbpX7+kgX+Tu28LXN lY21yxbUkbBPpvNoK6jwRHaKHDItiiVNUZdsPxi1/HuKkzVgYAl+lm6Zi1Y2IYxF4pJY pLj5JRGcFnna1iTRxiSBRsl05hc/kYF3vrz8EgCtmWAecamF8gyJC5Lu1Aas+riltfmU 3ihC0pWez93AruXIHHybVwKoG0yRYd4fcs5CJcivRYw8OgFdpmzVxMV9Ul+SNdGqAqr6 TdAVWRSLizok+r5mDWD4uhEopyJAv9Pn/fdV37HBbu+IirBU2iioO9GgE3+KO62vijUa IMAQ== 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=FlOVWnAUSlRC1SLA4QTAi4TtXpL5I212AUPdVxcHY8o=; fh=vKOC7hMbiDudiVxzz7o4RgqYeBQLHTHy/g/xKbkaCj8=; b=SvC7f9vWd7Ue8wf7WpyzEj56//HOA2SbdQI4jgfUw6Ah4uoA9hLhzuUKLj7RFNrv+G I4HnZXIRTNIuodja85+5oAQ+wJTfiud1Fw6VioOI9XmaI7AjSpEVliY/lAk78WdmgE9q AdpSkckQh4iU/QEWr0khqZjGAoI4zjA7VZOhDXdAyp5vXamWpBXvUHSCWanMGc8zpT1b sJNGOlvIbl+pzNLhpZOTyEaZcS3RggUsxvh488OnIhUJkNbF1Xn7LNNW3aty26LhD3rm w9cPDL2TffXwhQRJLZbQslVaQWhv58fJ7DVaG26vB8OCqz6xhxUuK0CV5KOMRyvtfYwC CkZA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OGPuAZvn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 5b1f17b1804b1-447f3bebd31si6881755e9.126.2025.05.19.22.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:25:23 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OGPuAZvn; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 1683582CF4; Tue, 20 May 2025 07:22:53 +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="OGPuAZvn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B35E482D18; Tue, 20 May 2025 07:22:52 +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-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (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 CB85582BF2 for ; Tue, 20 May 2025 07:22:50 +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-x434.google.com with SMTP id ffacd0b85a97d-3a371097fe1so1306243f8f.1 for ; Mon, 19 May 2025 22:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718570; x=1748323370; 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=FlOVWnAUSlRC1SLA4QTAi4TtXpL5I212AUPdVxcHY8o=; b=OGPuAZvnmjdLWX8Qd1H2n2jYjdlTY0Mhgk6Yp+6xiCYWfr8ONzQ1J/xj0mmwlkDxoQ 6ZKWaXI4PRVGesxw5Y6NvxavG2YFkr+diPkWDQgjFOcv/NjC+ZFZyvyQ4rjrramtF8TO uiR6gU4tZ+Pk3KISX01RZRSsaNEmpFKuttUS3gEbNxQNXGcZ5vk7ojFSaobkExtZI56A uGYz0Dkg+OLaI/tbJHT4sZPH7Br76oUSGe82OM4FXHg1w6fbQ6DOVUe1Ks/nUSRlysz0 APmeZYTjxcSEJfBPmja7YZPSGUIZcvtXIbrg8w2oyTv3+8s/xQTZdp8TCkdJE33gUV7o 5mTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718570; x=1748323370; 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=FlOVWnAUSlRC1SLA4QTAi4TtXpL5I212AUPdVxcHY8o=; b=iwwjAoPWVCP50UQwiPdUak3GSndTaZC40eGbwhpfQ5HNyWkrqO+JnSTHuII6nbKqSP IGDhpQRffpQUIwsb1WMvMiq6P3sXMwMVPnapwgcnn8sOBUfkM7mAq/EyvbgB+eBOxXSn mJtRcxTXvBcZffhIPgqYQd1fUscsGCNi3+NsbPLGhj92enhAHsV8GeYax9WzFDHvhwTI A9PCQvQ7XhsFNzZ83QoO0da412IjkfpQhtu0ktaEZulVJgBl9WhYKRx5CBwQx8WE4hnx gIt/jV2OYe1YvzmN3MFsm7FWp4jISvcknZRto523EZaech6Fd0zMKwfpDrAnDsrnDHFq kf6A== X-Forwarded-Encrypted: i=1; AJvYcCVHdXpKz5DyjpySJ4J2VLaQH4HIx3cszw2SQmlmpPV0PD6jkU5mvPRWz2DG7N4P3VJDHWDXnek=@lists.denx.de X-Gm-Message-State: AOJu0Yz8dk7iIa2F9DWLwBa0VEX2i+cAuqJZUhFS3uvdwVSvOzVKJYUB WrpDvNsVMqaz2pxGe+c+uOauQ662yhokDZpzqHVCIMJyZKKz2XUTsmKB0SjjIppPLw8= X-Gm-Gg: ASbGnctYR8lew8hfG7edQVUZyt1Q8Q7BpZwWzCGbx75LosDfAfZIaTgBBJZtXfdyVo4 /Tll5yeLRnduZ0BaycZNKoGlN8jY0WIvOWwvgTl99T9YWsr9P3JY04z0BPWpzx8sUXWXjKg8mH1 g3CzUsdXmp6quUedwsoi70Ug4BUEP9sGvzQbUYVg+Wit451U6sONkjIYbCWSzJ1cQLEkdqu7tdF XHJILwQ+VxDCNAEALdLf1h/eTeoambmexcrvwHLBSzUNMtbR49EQ5qltSepwdpBRTlDYiLvRJ3D cWr0gK5kJN4IwmeYEODplcDzeS74B4xCOdRirOk/mWlMVdbUX/o53QteFxQj2UpOwFNdt4qiz3I = X-Received: by 2002:a05:6000:2304:b0:39c:1429:fa57 with SMTP id ffacd0b85a97d-3a35fe5c560mr10827207f8f.3.1747718570342; Mon, 19 May 2025 22:22:50 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:49 -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 , Jonathan Humphreys , Sam Edwards , Quentin Schulz , u-boot@lists.denx.de Subject: [PATCH 21/24] kbuild: strip whitespace in cmd_record_mcount findstring Date: Tue, 20 May 2025 08:21:32 +0300 Message-ID: <20250520052153.307194-22-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 from kernel commit 1a49b2fd8f58 ("kbuild: strip whitespace in cmd_record_mcount findstring") Signed-off-by: Ilias Apalodimas --- scripts/Makefile.build | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index b7611c030088..aa48d2494332 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -221,11 +221,8 @@ sub_cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ "$(if $(part-of-module),1,0)" "$(@)"; recordmcount_source := $(srctree)/scripts/recordmcount.pl endif -cmd_record_mcount = \ - if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" = \ - "$(CC_FLAGS_FTRACE)" ]; then \ - $(sub_cmd_record_mcount) \ - fi +cmd_record_mcount = $(if $(findstring $(strip $(CC_FLAGS_FTRACE)),$(_c_flags)), \ + $(sub_cmd_record_mcount)) endif # -record-mcount endif From patchwork Tue May 20 05:21:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891313 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428855wrm; Mon, 19 May 2025 22:25:32 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWnUfstcSKjLcvtzWZN85GgIOadcTW+ivjNrsgFB7xFOBJvffgXcVcjEI8k+FII1oxLGxQIqw==@linaro.org X-Google-Smtp-Source: AGHT+IEX+hwP7HIoy6k++IbHjQNzknuIBgsNbVDMCp9j90S54r/6ljyMwNoSbr1Ifp13XfsTjJr2 X-Received: by 2002:a05:6000:1862:b0:3a1:f69f:3341 with SMTP id ffacd0b85a97d-3a35fe929c0mr11569112f8f.26.1747718732033; Mon, 19 May 2025 22:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718732; cv=none; d=google.com; s=arc-20240605; b=bpvHcPxbpxIOtisG8B5SO1yE+Fk3ll6o+beqE4kYJnNDtyBIu9sCaOthle6HAjvROW iBjw6lVkWlKmmYhkbPZfg/J7mGhw+6jw0x9VVv/3U/3Uylyi1QAGSJeHx89dfcMZFoBE W1tYAHMBEBVn/Bq7qYPsdpGl/S4AXCqCnrEHvIkjKJi2mh3vDiasv67ANQK0Xyo0d3bq 0II6/nmXtZR6CRZysBevLPBdUqSecrGZ/26eqrsBtvwcxXx2jDwUmH5i2UthHMZ9QWmd 0QYuoqAX/nWbkSrtIB/0Ubf8LMRu/FgudEoAOFdxd+IyLjDYUOwshBT6A8Uv0GqL3cJP XZpg== 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=K5jcnIi8Xv2opCm71TAt0RB54Sh5hkfyPHcWVe0qpMw=; fh=FH7SHCF3kw2GhbLwMlmnu5nW4XnbiMKo6lcyYus6o9w=; b=jxwAI3iMZsFFCDil95iHfSGjLW6w+7VsdmjMpC6bq7wdPBMwJ+Lo3BhT8gowgLxqZK ZhjhAz3IMkXu4VCiF1rLCveb0UbBqFZ17teOhjsYzg5B+5DWwGRkm4v5hh1nMdORcRoc OFCTYGBQuCqb3cPSzFq+YKbOB8AjnepKhKPKNBhrvTaclqOjc5HOSViMsDMDycNv2+2S A/IEXEvob5hSRF4ZhZz6KWFfPwIhL4sd1Gf+qUk/K3ek6L3qof+xi63QmR6tSGdQ++3w +o2xuW01jUVq675deNZoDQfDLeAInYeXC2OletSpo9hXrQdKMIGbZ8u4hAdzUwdO6uXK M8XA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bHLMcxiC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-3a35ca7fe3asi7208988f8f.298.2025.05.19.22.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bHLMcxiC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 58C7082D05; Tue, 20 May 2025 07:22:56 +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="bHLMcxiC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E94F82BF3; Tue, 20 May 2025 07:22:55 +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-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 37FBA82BF2 for ; Tue, 20 May 2025 07:22:53 +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-wm1-x332.google.com with SMTP id 5b1f17b1804b1-440685d6afcso55047825e9.0 for ; Mon, 19 May 2025 22:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718573; x=1748323373; 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=K5jcnIi8Xv2opCm71TAt0RB54Sh5hkfyPHcWVe0qpMw=; b=bHLMcxiCv5ba7C2s7u8F8lDWF6lHOpFZKz+BQsExMGBeIlyfjGYN6LNH308au9awj6 25L5DaMFmyZt8pl/gyg1Nse0k8fEhoQ99HfJ08u26Po/OhfehgxLp+C7Yya1CO7K4350 J3QFrKtNCcU0whjrjvKJpGDrxk6vS2jRjaZT0OkDq4AYP37Bopru0dw6Yxnv8pcmnxTU 3cHrl9ULBMqcw7+mvrHBs7Fx37UPxlCaZX/u9fDqKg6xB0eFI8+0Tfo9c4ceQ05EFecO hv+kEbbrhLyVK/xCRA0OHfT1PD3QUilNeZHP86MZFJdGdMasRzuYV4ZLJAzzvNdMD/BW xFuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718573; x=1748323373; 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=K5jcnIi8Xv2opCm71TAt0RB54Sh5hkfyPHcWVe0qpMw=; b=mDZCioKbcVvzAGRx6tfe+Y8g7FgsCVsfjp+XvxN+gkpFCZrjKqzHLBOA6JLpCb2nLu PgkoIVeAtDYlbH7QPEzYJNFSSOjrpSp9FewLYc4dB9QSoR92VdjGtQAtOV2ko7tugQXt 2dLXwu8CXi3s4OIBjLXqAo+HhkdSbzLqk1JEamuwOppbKmrWJQ3qQAqTt+JzcqJUz0Tu NBMKtsCeQoPErBg8Mwamt/QcFGJ9u5scDm4vwARTdqXHq9cHIg0rNwhietHp0DXz/WsL JWy43ll8NVRzBYbiEW3YesdejdsS+Wa6s2yVish2mKzHlnwVrUttRjzQTsXNAAIXLbQr IadA== X-Forwarded-Encrypted: i=1; AJvYcCWoBjWRYzcOY3Xlfa9wa/yffRUL6FmAIu5gh4QtG43MoJuTcn5mnsFperKcPtIa8Q42QXREZes=@lists.denx.de X-Gm-Message-State: AOJu0YxaA1Nf8SGPbngXlHiZqRobYHdTd7we2jhggnnn+IM1nXWmlcul typDeS2pfRejeHXu/taSLGsdvvTO8yBfbhujYvYqfQGdFbgqNvRflfgldnJpOIEHUDA= X-Gm-Gg: ASbGncuYiJ/y2wensvtglaS0z6wlmmshx138ESafTci43YzfXCwBatgYHWGeD5Vnz5P JWBrhXRo7myS4ckTqs7/9LMMIh6t01CRWMNNRrKYWVkvQ4MXH4mLpl47UuTxd7prIGO276xNAbo ImHHPIpuqxSdvV0Xg7HIxAnvkrfbvDgeK0FZiYM3xJtOw+Q0nUskRZ3nMVV4v8V5O6G9txA35EB AMcdji7F4pUcxeP+zrlLtfPU1s4nTze0c4OScNOilND93Pt4nT956GRmrnV9NJZJZYe1hRWLPS9 PuuOPZriFfPgz6rCGepnOaZILlJvv+foadXnli54ZYMYkSwz7S/f8BhlBHSLilrQdS/rWDDGQ8s = X-Received: by 2002:a05:6000:4305:b0:3a3:7987:945e with SMTP id ffacd0b85a97d-3a3798794f1mr920442f8f.56.1747718572738; Mon, 19 May 2025 22:22:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:52 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Peter Robinson , Michal Simek , Prasad Kummari , Jiaxun Yang , Rasmus Villemoes , Jonathan Humphreys , Sam Edwards , Quentin Schulz , u-boot@lists.denx.de Subject: [PATCH 22/24] kbuild: remove unused archmrproper Date: Tue, 20 May 2025 08:21:33 +0300 Message-ID: <20250520052153.307194-23-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 Backported from kernel commit b421b8a6cb87 ("kbuild: remove unused archmrproper") Signed-off-by: Ilias Apalodimas --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09d36b8cbbed..00876ef54a2a 100644 --- a/Makefile +++ b/Makefile @@ -2281,7 +2281,7 @@ mrproper: rm-dirs := $(wildcard $(MRPROPER_DIRS)) mrproper: rm-files := $(wildcard $(MRPROPER_FILES)) mrproper-dirs := $(addprefix _mrproper_,scripts) -PHONY += $(mrproper-dirs) mrproper archmrproper +PHONY += $(mrproper-dirs) mrproper $(mrproper-dirs): $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@) From patchwork Tue May 20 05:21:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891314 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428896wrm; Mon, 19 May 2025 22:25:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUiOo2aZUe/PgeB3DVzm8nC9fszyEw465Y4UuNnbR9rq4SUNc94WAI6an+WfsOsepZFLwb28A==@linaro.org X-Google-Smtp-Source: AGHT+IHHgaUSJkMMktANc8OAxvPVv8789ne8+G5AGdz7ud5p0HF38UXMPxalz+VrqVU/lrzvRytH X-Received: by 2002:a5d:5f8d:0:b0:390:f9d0:5e3 with SMTP id ffacd0b85a97d-3a35c808b4amr14507284f8f.1.1747718740686; Mon, 19 May 2025 22:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718740; cv=none; d=google.com; s=arc-20240605; b=NHxIriJlp5vavmhBZW7jU5hmr8GndRbDp3FdoUArJmO07XMnWiKpXeOhTV1fOol2Zt G+k22qjttr01ZkfGSazEcjrw35sylqoHmHCzaKEmgX58EJ4M8MHxhZwSmXEKRxNG4mHI gP7bjt4eBTXnXBiTJrT2HMHfVCtwuz6jtnNKwp6JtHPOx6JvciMIUvM3NmDhN7Mj+7TG 0KjvGtp9AOOnMK8cD5DW8prwp/tsOOoya5Xzy1CrUDBvplQRUqU+/Nwbyb4JBEjjM58y +Cr575JOskbh3Yea+j1wjJbOkxWxk9sZf2BhxRG94JIXQpVakjdsPZDTSQSoWu7IdmZs wPaA== 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=WSiWiGjJWO0FvvH5WdzqbgmVIbWrLeQ02QMM2g6qh5Q=; fh=7FEbhMD7CSwH3CpQ8Fyiwjn17vC4RRBNkxILBTrA0kA=; b=ZrN59B+FG5P14vYJM7r8NEPnjRagxpqKqOtCRTccOUbZ9FO2PegqKgQUcnwdspacly tit2Am9MA5zX90PLDDSVrsa7FdIR+iG9DHArH51ppye4z9TkGaXwkytU/ILWPtqsHdjY C2t6ooKSrDF0aFy9OQiviQvxZ7HCV50fHZpAcyz8UkC8IKuxNotRHD9UbO+1qb517AhW EOTo/yYfPUms1bYdulbURCX5mSDAcaP3rXmSUnD4ghDyON5EwkzJvFY4o+wSE2kggxKv h78WSM0O/raDLwkvlndNngcYBd8iwtgMSHOnFpu+HrPcIzOqRv3MSaVQXykVMS58mkAT FidA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bqQcpgcp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-3a35ca5a034si7388317f8f.225.2025.05.19.22.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:25:40 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bqQcpgcp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 9F5EA82D21; Tue, 20 May 2025 07:22:58 +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="bqQcpgcp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9EF8682D21; Tue, 20 May 2025 07:22:57 +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-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 A2DFA82BD9 for ; Tue, 20 May 2025 07:22:55 +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-x42c.google.com with SMTP id ffacd0b85a97d-3a375e72473so772416f8f.0 for ; Mon, 19 May 2025 22:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718575; x=1748323375; 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=WSiWiGjJWO0FvvH5WdzqbgmVIbWrLeQ02QMM2g6qh5Q=; b=bqQcpgcppm8o7BwLmo3+Y9tJ99DUOba7ynOGqDfDuo/GqOFRo4nRz6B5eJJRq4UWF6 HtvX2ZyoFZ1sDlhQWfAaFjORm7Ts7q78xP+es9ZHjkzTXJPwvY51c2+0oQF6viwBt1bu Qu30+fQ+BON9193TPOjBzDFQeCCi6tCkEe4LE0CMUMr/GlmSDbrFVEB7YbXeuNNSB3py Q9E54e4oZ9ilF1KY8OC8krgiCxkuJCA2DVUHVSs0w7lTaC8+fr2J4jlVsd9fQ7uqKBrX rl/wNhimnhXYcpxj8wx2PB846f2IP/n+S7ojk2R+lnqZlTFshcs1IETPr9b1itsqv+LH n8qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718575; x=1748323375; 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=WSiWiGjJWO0FvvH5WdzqbgmVIbWrLeQ02QMM2g6qh5Q=; b=q5TdEPD2X5c1kI8xJ+HSzTrPAjMS13nEH2k3KTmc25NuTNdDMU4YFCtHmuXgloDfkn YMm/Pdh6IC1u/f3nIwZCklvIH2GlAMt9gFBhb3PgDu4nNhh1U5dloz0xKWFOp+foR6pB /bG1+ROyJaMnumLa/1qihdEZZd6oNUAohaF2/7Bh9hBhIigv7UAiO7Hs28oaxa0zJcwy r20+f/8l7ifgkLDfoJRF1lilmNqwaiG2Zn987psQPzp/rbY+itzcQyGqGpwiR+lprW+C KHC7FFMNuBlAJZLGYavvVkR6qBaGhnMFOpGrLiN878XrFCdS6NRZlNU2whaDOJqXLqo/ bqgQ== X-Forwarded-Encrypted: i=1; AJvYcCUts6llHbt97wf5GIeh3P0Fk8MKVIKxGfFOZi8RyZPx2eevTRm7C7eeSgN9S1gGPzzZ75vdKMU=@lists.denx.de X-Gm-Message-State: AOJu0YxLWmt9lCdBdLdITJjCVuTaPRlBeR5jl+22w4B0lmsJEmDP1KLg 2WcolvnLvDRQCp/9g8hJ5ALI4+at9hjNNfDjAcpHWpV8bLzzLWfSaeIUhWKVqTveZ1Y= X-Gm-Gg: ASbGnct1zOUMRmnMWAeWDFDnz3JqqMfeUq0VlW2V4LMLY2ObniT0LFEhKXZbAkz7Q+N 2DSrpygexgb459cy9+YZ42kTt+t4Ou5rcEVkJqisi87SPavoDqANxPWtKMvhyBe09RdD90AaLdT wFMz8xi62YCAhczz6gXDB95xzR7HmDK4wn62+98lj8nfpZyoBIwyvZe2xsE23TiTGwrc4OsYnLS 2Q5HShA72aWm+X1YMo2HXmjIKA2MVeTyJYZIgysMkGiIHgA4R/h7j7g3yEaS0qwc8zFBOx5/pa1 uI4pTcZZAlssPSx5W5Uk/KmffMg/Pgwn2K97aOSWkjp1o/qrdwqUNSzfEtELLPgMDXlzMMDiYOs = X-Received: by 2002:a05:6000:2012:b0:3a3:5a99:7e07 with SMTP id ffacd0b85a97d-3a35c8258fdmr13630501f8f.25.1747718575132; Mon, 19 May 2025 22:22:55 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:54 -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 23/24] kbuild: make -r/-R effective in top Makefile for old Make versions Date: Tue, 20 May 2025 08:21:34 +0300 Message-ID: <20250520052153.307194-24-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 Backported from kernel commit 3812b8c5c5d5 ("kbuild: make -r/-R effective in top Makefile for old Make versions") Signed-off-by: Ilias Apalodimas --- Makefile | 48 ++++++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index 00876ef54a2a..66803f089d48 100644 --- a/Makefile +++ b/Makefile @@ -12,10 +12,6 @@ NAME = # Comments in this file are targeted only to the developer, do not # expect to learn how to build the kernel reading this file. -# Do not use make's built-in rules and variables -# (this increases performance and avoids hard-to-debug behaviour) -MAKEFLAGS += -rR - # Determine target architecture for the sandbox include include/host_arch.h ifeq ("", "$(CROSS_COMPILE)") @@ -39,15 +35,6 @@ else ifeq ("riscv64", $(MK_ARCH)) endif undefine MK_ARCH -# Avoid funny character set dependencies -unexport LC_ALL -LC_COLLATE=C -LC_NUMERIC=C -export LC_COLLATE LC_NUMERIC - -# Avoid interference with shell env settings -unexport GREP_OPTIONS - # We are using a recursive build, so we need to do a little thinking # to get the ordering right. # @@ -64,6 +51,21 @@ unexport GREP_OPTIONS # descending is started. They are now explicitly listed as the # prepare rule. +ifneq ($(sub-make-done),1) + +# Do not use make's built-in rules and variables +# (this increases performance and avoids hard-to-debug behaviour) +MAKEFLAGS += -rR + +# Avoid funny character set dependencies +unexport LC_ALL +LC_COLLATE=C +LC_NUMERIC=C +export LC_COLLATE LC_NUMERIC + +# Avoid interference with shell env settings +unexport GREP_OPTIONS + # Beautify output # --------------------------------------------------------------------------- # @@ -137,7 +139,6 @@ export quiet Q KBUILD_VERBOSE # KBUILD_SRC is set on invocation of make in OBJ directory # KBUILD_SRC is not intended to be used by the regular user (for now) -ifeq ($(KBUILD_SRC),) # OK, Make called in directory where kernel src resides # Do we want to locate output files in a separate directory? @@ -168,22 +169,25 @@ $(if $(KBUILD_OUTPUT),, \ # 'sub-make' below. MAKEFLAGS += --include-dir=$(CURDIR) +else + +# Do not print "Entering directory ..." at all for in-tree build. +MAKEFLAGS += --no-print-directory + +endif # ifneq ($(KBUILD_OUTPUT),) + PHONY += $(MAKECMDGOALS) sub-make $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make @: sub-make: FORCE - $(Q)$(MAKE) -C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR) \ + $(Q)$(MAKE) sub-make-done=1 \ + $(if $(KBUILD_OUTPUT),-C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR)) \ -f $(CURDIR)/Makefile $(filter-out _all sub-make,$(MAKECMDGOALS)) -# Leave processing to above invocation of make -skip-makefile := 1 -endif # ifneq ($(KBUILD_OUTPUT),) -endif # ifeq ($(KBUILD_SRC),) - +else # sub-make-done # We process the rest of the Makefile if this is the final invocation of make -ifeq ($(skip-makefile),) # Do not print "Entering directory ...", # but we want to display it when entering to the output directory @@ -2546,7 +2550,7 @@ $(cmd_files): ; # Do not try to update included dependency files endif #ifeq ($(config-targets),1) endif #ifeq ($(mixed-targets),1) -endif # skip-makefile +endif # sub-make-done PHONY += FORCE FORCE: From patchwork Tue May 20 05:21:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 891315 Delivered-To: patch@linaro.org Received: by 2002:adf:e88a:0:b0:3a3:61c9:c5d4 with SMTP id d10csp1428936wrm; Mon, 19 May 2025 22:25:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXDBP2WlYG+dqEFx0NEBzuvWunp4ck8y9CPcR50fKMOmHGa7yw1FxQP7MSwD47RO0yPsfmOqg==@linaro.org X-Google-Smtp-Source: AGHT+IEgOyAJ/Myfd73qrg1m23mXmhGyIhbmzRbREwvJqJlVl/s6BPX5i4jyK2YoO83zjqTCJ4I5 X-Received: by 2002:a05:600c:4e0e:b0:442:faa3:fadb with SMTP id 5b1f17b1804b1-442fd608293mr166288045e9.2.1747718749695; Mon, 19 May 2025 22:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1747718749; cv=none; d=google.com; s=arc-20240605; b=W46uM0r9tugX9Afk8e/KdQtV7lv1uDY4PAQ7M5gZ6TW9wEtJ3owAM2juzaAAjgJc+4 kLzFT8AcQHJEfE2w22k5y2ucU++KHmlQtS9LCBCjo/QLUtzGiQJMaH3YAoSZ72NrHXyJ VDX4UNO+qxdbkRR+yF71Gpw2NDYbhkT1yUujuQwzb+eRbXw1mT2wMlljjxP6WcEWN3BX oKG1I2cDjHfWBJAKIOAT4JcpPfQ99LVnUwBb/duhF3crM31yxhduOrKATC/8kXKGWHQN Wjma6kne99SVl+ey2hPDKQpCDxBv/0guxTfqksjv0TjH4qAw8rpeI3bTAZ6VCevHMmnJ fdXA== 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=ZvKd0rmm6pH8M76fz4TMzzrtdqdtkxECc8stvnnL30A=; fh=jhdKG+XUpRedMrGP0LpxOno/9dTQgppZnC/ggT44lIU=; b=UMH7B6i5t4K8oxki4M5jbSGLkKF47hSJAgwpHaQ5BlgiFTpcXZfl9Z2itzr6LR1JuL MEsNMiw+LwMPqahU/GIFyXeiQlecjO+4H5KPJa/RGx1AFcqPknClD+1/04dADi2ITzX9 65VEqXy1W3Yb882Mjupf6hfLrRrSsAkc+wsOoQEb0fuyJFE9ofDtIZNdxfV3Q8OU6Gfo pRwX0waKuW3S2e8idlpg2KVdSEUU7NkmpnWMS5330iarMYYze+cR1WDhQSrPm9lOqIgM L+hhZ1XRH7wgs0xVVjwdyrvLDd91WJl8f9ppu17UmzYStPZEUoMfEbwp6NjgpJa+2onS dpDw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b8aI+E0D; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 5b1f17b1804b1-447f1ef02cesi6751135e9.52.2025.05.19.22.25.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:25:49 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b8aI+E0D; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 E13E382D33; Tue, 20 May 2025 07:23:01 +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="b8aI+E0D"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0D7A582D34; Tue, 20 May 2025 07:23:00 +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-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 24F2782BD9 for ; Tue, 20 May 2025 07:22:58 +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-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-43d04dc73b7so56248045e9.3 for ; Mon, 19 May 2025 22:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747718577; x=1748323377; 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=ZvKd0rmm6pH8M76fz4TMzzrtdqdtkxECc8stvnnL30A=; b=b8aI+E0Df9Cw9wh1KZKBeYNCoh8BrKOIE84T5AXqXdITRaCgrArICnd/YEcvFZ4Emn PAOckEh0i6ZpOJ8byq/QCtR/T2i89HNKQRUtkLC43FUVMZ7f6aaJFlGmjextbarksQVk MFQ+eeippJM5aq4J3gK9wlem8M8LF1UNL3nr8c5lUiWjO37txDGu33OKIt+rPZY/6Z6K VwFwI+hv7tXjLOTqSree7SRlxyuNulK6EWnFhACz93d/Tc43cFh2dbbDh+0zbrY8C8Tg 0eVCMhdaktMOjbVviwIZIH5cG2DjQYNyNVWbAv9j+SDpBLTU3OvOMnI2jitesbvGb3c2 BHbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747718577; x=1748323377; 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=ZvKd0rmm6pH8M76fz4TMzzrtdqdtkxECc8stvnnL30A=; b=YUs7Sz9FNC6HguIScy98OePEX/m5vFxcntqjs/RW4zj6uJySZlCXKzeBM1XaxH10IA ux3y2t4fWeH18DVCMdiLkQlUEi9tZuSOLL4UBxfDVAuKeUURBehaVRsl1uQYjFyAtdAj oF/NtHRE33h1PwbOZz30xOkWtq2vEWnsnmocps/RCxxLCb8hdGSjd4H345r3ksOGlnOs x0dkKIXiJHtyU40CsI1IecBJhPMIbO/VPtI9VlhEaDbByr2/asBpWXa2/viHOYoXQE7/ z9gIqTjaO1c2pskFa7hYoEP337aH/o+ZdsAFwyHFlHTBX0YqF6G7dzXdWuKISaNpfa2l y+sg== X-Forwarded-Encrypted: i=1; AJvYcCVCLny3GXRojeAMjQ8EVHsZF5wDnChkuoUQFLLQ6P1ksscUaY88gNHNnJtiwK16PwyDLmS1HoQ=@lists.denx.de X-Gm-Message-State: AOJu0YwDreqra3mp7NKp0N4lbP3eEWLeUNYqYb0AUZ8d/T26nU8TjcQ4 tkRS6bwNIc5DKzTSS/dAkjoAmdknqcW5rC+eETwKcZzmuMTJWSFVraWsmXHJd8u87nk= X-Gm-Gg: ASbGncsiOLBy9Fs70nxSoLDswSQp9tbvpH8lmF/aVU27PzF0beUtK+c7wgUpa5BTDEh F9dJaBCpn0HUbRar+jdC5xRKRtx0PGSmi7E/C+l/9KYtRnLVay2xNalGDWx3ToxopMn5XK3FjHQ E8BDpPgbOW6qh4s+p81QSxLgJ1udUfnqgfZGxn0s13T6REJiWtLhYWmlal7WtDSCuXPUFzy8Rrq FdB4wQa8ThYongV2O+d00ijurHkFleuAE7i5HnmeX1b8FTadgx7gcPpT6bF4ayTCZimQgEPBTo4 FzTrSdmaIXbwDJES4n1HehZWLXaK3Ww3Nd2xHADzq3xERjx2B90OoDT8cK4CcWkxDDJu2SUKgkA = X-Received: by 2002:a05:600c:8507:b0:43c:f597:d582 with SMTP id 5b1f17b1804b1-442fd608753mr137333235e9.1.1747718577628; Mon, 19 May 2025 22:22:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 22:22:57 -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 24/24] kbuild: add -Werror=strict-prototypes flag unconditionally Date: Tue, 20 May 2025 08:21:35 +0300 Message-ID: <20250520052153.307194-25-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 Backported from kernel commit eeb5687a7139649e ("kbuild: add -Werror=strict-prototypes flag unconditionally") Signed-off-by: Ilias Apalodimas --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 66803f089d48..2890edbcc43f 100644 --- a/Makefile +++ b/Makefile @@ -433,7 +433,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__ -KBUILD_CFLAGS := -Wall -Wstrict-prototypes \ +KBUILD_CFLAGS := -Wall -Werror=strict-prototypes -Wno-trigraphs \ -Wno-format-security \ -fno-builtin -ffreestanding $(CSTD_FLAG) KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing