From patchwork Sat May 31 08:44: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: 893565 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403655wrt; Sat, 31 May 2025 01:44:59 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVzk/J1mHkUmgT8oKV8JoIyvbS5M90Z26Vw0Pzks9e5xfdjfqJ4veeQjsY1z/GRI8KZ+fYZmA==@linaro.org X-Google-Smtp-Source: AGHT+IE8W8P12s88tmY1kVvB0+UiyOV5GAkSd2dhFbQ1R9qSQVoUfYMT4xwZeEZvTQMCS428zMb9 X-Received: by 2002:a05:6000:230d:b0:3a4:e8bc:594 with SMTP id ffacd0b85a97d-3a4f89a5cd4mr4173612f8f.8.1748681099736; Sat, 31 May 2025 01:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681099; cv=none; d=google.com; s=arc-20240605; b=VvR0ElHfxlexNvLMQfgzvgXC9smUYVTyk8d3PX/1bhiNCuzC/qdscC6FmC6yaJWKwq 6Ub2YSR0uB46JN9v4X6GJ5vJlXMhewBCXE6LwSs3QVbQYY+ZvwhEfh1Eb7kETxCmZwFJ FTNUeN6Gj6j91Qz+clnDeCpg3wjGV6r4aVbWsM0Pzz/gSxMcxQyaKUNjcTLxO8mFdU7r nG+MrIauxeIBr44kdK9DZVcMjEfAW5AElELziRA998M6sWXxP3fdq/b8g/SEa1fK9f/L bIHVQbfKK2HVBDlv3ZL7nkKy4RFErIoy2qPgvfonpZZkuQHeySxjAsn6uJ9/07c6sbTr ZnYQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=DarqbFbBD3bowKp4SFPjJEsXffZywZSf2BuekqLKxls=; fh=SRnWBDUf/QSqQvnwl2OmWaybjPAqSguvzfp1rqvI0R8=; b=J1HPvUkLqUMaugBEu1ldeeO5TaO1xnDYDGcyu4gq2AaWyh/kau8EkSAVxOoaabucdL kSSF8z+G4cN2SG/5A5s48T1mOFrUzr3oH7ITxPl9GLG5/D81VNLj5ATnqI8W4JaHnJFY wyP+aE/fLE3H7wcMojC+xqOeIhYttsH930kCufuxkguyf3rqeBezNn9BM2gCPzMKnBn3 LjWggD6ZP29cg6zx9pDqpvRUiMjP27nuQKBBN2Lt1e2c0h/d1P05SGy+gpbxO/biRRea bvdvKlnDVb6x1TdKpk5EW9lD/Pk7NiT+YkVE0PJoqb806mj7CPqutEC1r2zqVfN/Dbqh g00g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HxPXJljc; 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-450d6395f40si27224005e9.64.2025.05.31.01.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:44:59 -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=HxPXJljc; 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 95B2D82B37; Sat, 31 May 2025 10:44: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="HxPXJljc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B6B7482AB9; Sat, 31 May 2025 10:44:56 +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 2F83082B5B for ; Sat, 31 May 2025 10:44:54 +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-3a4f78ebec8so896628f8f.0 for ; Sat, 31 May 2025 01:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681093; x=1749285893; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DarqbFbBD3bowKp4SFPjJEsXffZywZSf2BuekqLKxls=; b=HxPXJljcNy1gr+lha2fmMwA1FzjRiFtNE/4EMdIlL4zhZqj+GRLyA3i791iE/QpVsg Spnjoy+pqwu6z8p1bJ7ChTeuiY1ZaTISZmYxUl1PyNQNPPHh72m0/vBIV/1RUT09OEnT anQ0diQYhRSwrZtYKRV9paDPYabQy5IKbWcJPr7hCq7oRDDW7MFriwyB+CThGuMK90ZK rPfZ9Ep9eB6CLlVaq26UMdU0LKsWnbC08cFa+VQyEu3DHpGWC2e8vRhQaRnXsGOvHs9B H+97L5e5ad3BOiLLUlN37tcE1OnW6rbazRoACXerB0O3vV2GsVPMUwo0CPiAXLZKycYC oWow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681093; x=1749285893; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DarqbFbBD3bowKp4SFPjJEsXffZywZSf2BuekqLKxls=; b=Sn+RvZMFNj0rO8WLC1EeM2hIJrVlihWnQGyfEjSGarAWDbJWaYqu9A3I/fMys++rqo DJSlpIElC0mrm6F0RUNVD7/9Pn3Zranx+ZKMZnRIvpWdFUCewDo7u72rA/5HX9lJOT0k Wq59HQDL/pO7S9M31gvi40OJV8NyXD0rdPJsFJwZN2se8MmbwU5vimYkFLeTDpShbbP+ mGDHYg8TwoG4vfMSKLw3dY322BvKnzDxIGsnVAkYDG9nRl8lh90ljoimN6pz6Id9yfk8 j1Gwl1a1JoV2jVWNXZTf7kywX93IwonwSNOH5P9yThCTZM+WmOswwZs7BskWup1vl2aO uzjw== X-Forwarded-Encrypted: i=1; AJvYcCVbAnZxwOwGB9QIjHgNT9V1+i//79yv1A7IM79Ggth1lrPOVBuZi3gyd/zigpKGTWz/3JgeDrs=@lists.denx.de X-Gm-Message-State: AOJu0Yz2Bye42x6BSbVP58C0QQODsj/2SYIJSqqNL4POg2TNKfj7SUsX WqBLAo+xjeCVDnzfrsqENkHeC7MuTBVWN8fCuvGWVeNE8O2zeN3Ii/0Ik2kIOg1JtrM= X-Gm-Gg: ASbGnctMIxp6eI+5Knw/0HmucG6nENo5Ou6HFyLI9nD7+6Tr9KfK/ti2+S+IekIOY+k NHHUlqUaZcOz2YcKAZv+HlCYiiIhHdPZwGBxeNFn3xDiUI77kMk8Mc4ZD4zRNVQHUSaOopMm3WZ 60jhEWs9fTgtxDTA3xsAQnel3SugQxia7xwAiLVFTO8YC40Re1ay5Y512c4Xj1eipMKT/GdF2p1 m8tMMiYL3wLO/C2JZW6IHWbUROMVDFTsz1SYWsO05bdS4dbXLVuT5QwN/0F7VrNMFZymcBINL2L 1FaT1ihfhzauLZt1+J5u1RF2jPLY4xL0w7DA8mLt1czfn79ZRjpt6Fk3tc82pugSk++l0ouURoh jTgkbJ9Gb2ImJC98PccIHjAQXzIgtuTVeWFUWQdpk X-Received: by 2002:a05:6000:2207:b0:3a4:f6e0:c1b5 with SMTP id ffacd0b85a97d-3a4f89d2b1dmr4630430f8f.27.1748681093515; Sat, 31 May 2025 01:44:53 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:44:52 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Prasad Kummari , Michal Simek , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 01/13] kbuild: add -fno-PIE flag unconditionally Date: Sat, 31 May 2025 11:44:29 +0300 Message-ID: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 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 42a92bccd213 ("kbuild: add -fno-PIE flag unconditionally") Signed-off-by: Ilias Apalodimas --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index c7b82299c198..6a1eb26c6e41 100644 --- a/Makefile +++ b/Makefile @@ -435,9 +435,10 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__ KBUILD_CFLAGS := -Wall -Werror=strict-prototypes -Wno-trigraphs \ -Wno-format-security \ - -fno-builtin -ffreestanding $(CSTD_FLAG) + -fno-builtin -ffreestanding $(CSTD_FLAG) \ + -fno-PIE KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing -KBUILD_AFLAGS := -D__ASSEMBLY__ +KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE KBUILD_LDFLAGS := ifeq ($(cc-name),clang) @@ -457,10 +458,6 @@ KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) endif -# Don't generate position independent code -KBUILD_CFLAGS += $(call cc-option,-fno-PIE) -KBUILD_AFLAGS += $(call cc-option,-fno-PIE) - # Read UBOOTRELEASE from include/config/uboot.release (if it exists) UBOOTRELEASE = $(shell cat include/config/uboot.release 2> /dev/null) UBOOTVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION) From patchwork Sat May 31 08:44: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: 893566 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403691wrt; Sat, 31 May 2025 01:45:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW/QutbaN9Igp3tNLxG42DlVdMlCgVvvtSGpJ1WXLV9sPiHjZMBmh1tSrMRewNENuV4iwsccg==@linaro.org X-Google-Smtp-Source: AGHT+IFU9lFlqhnxiJv6lSr3tKHP0x/4HQMABMg2DBnE8i3rS2nSkiAjAPa2IXgL12OXYZowH8d+ X-Received: by 2002:a05:6000:25ca:b0:3a3:581f:9af9 with SMTP id ffacd0b85a97d-3a4f7a3dab5mr4934970f8f.7.1748681109646; Sat, 31 May 2025 01:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681109; cv=none; d=google.com; s=arc-20240605; b=d7g2SqMmX1yQYlnVyS5cf1m4+f8mcWRpWUx7zO/Jh+1FhMkmy05ynW8fhHosHIfsNq dZIzq7DNZSUxfpun0/CRcsG7hDFjqD++2UT8rXj3cXwbtOgxjuw3N9Pr1EXSor8+2w9O oyyqDRhjotGTZyHmAqs5oy8eA33gvBh29IdjaPTIeJU7IC5vXC2gDlcRS+rByJkt6c4v kyodTeLkGRSBBvmtiZnmyKkwA6pEWIBfdIw6YpcsIG9TIQpL7Yi2COKKkPuUZAG2hah+ cakY3b3w6d+h7s+gFgHw0NjVxa2nAjj19iqoZMUJi6Ekw6FbiXPWNa6o/htxg2OUnBHf 1o5w== 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=MIZF4li7UUm7WILdz9NUcRMMIrsxw1CsckkM2OcB1NY=; fh=ZQKfDe4287DOazypviQGNcPx8EsnwTeJifGkQqGzq0g=; b=HHG8refzJMC/PgWk4gGmKOurZFy0epISEthhZiQsvPCbGY7M70c/6QPg3mpRLt84Ln SMzoAPXVa4KBRGgsdwKk3jknY9ObgVVAl5rOT2rRz+IjZWIlakxLTKDCy0iCwRfxsD4x pRf73UTFKnVSNsbP3YOl/7e/5mesvwbQnvpuiycVObSDrtRa8t23lJZUdn2SOINd7mdI XP0/aLkKCuXrWPiebTYGFerncbDN56XS1U5Ek7IGZociFN3l29WO4rxOXWNmCViQZOC/ BVnnClRRyELVGomrwjvgTbuQQxFJ8YvKlOvI6E2B9qRMg/SbwfRLAUmn9ivtwh8iDNR0 pY/A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=buxq12LU; 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-3a4f009b584si4112521f8f.811.2025.05.31.01.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:09 -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=buxq12LU; 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 E170982B72; Sat, 31 May 2025 10:45:00 +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="buxq12LU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D032C82AC4; Sat, 31 May 2025 10:44: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-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 E759C8003E for ; Sat, 31 May 2025 10:44: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-x430.google.com with SMTP id ffacd0b85a97d-3a3673e12c4so1855740f8f.2 for ; Sat, 31 May 2025 01:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681095; x=1749285895; 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=MIZF4li7UUm7WILdz9NUcRMMIrsxw1CsckkM2OcB1NY=; b=buxq12LULlfTFTg2hm91OQtA+iDIHg703PeKiTLbaxgo9CyBmgqzRUEXBhhb52WVNC i/UXPxfSqhzsp/mMQLAudUsgnqYhclTRiT9sXJEAcGHdCWoPZOlEsN6sooUXnL1UUNTB 1bQ0d+XSlOHG+l4mCowyAf+D714CYPshk9WuNtHkKAdWFE26K1kRsKw3uMR7bBXQddBe sqJpzeQtVL066LBnvo491egwe6EsD3IRSj6p4R3Kqgu2TMp3LPd2HPpZIcFSmEQI9VVG BzWfmqi7JTCoJKPMlGA+1sb8wUvYulg92jdgzrmk2pG/ZGfrXCTHAZg9aqNmQyDyqPJM ehGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681095; x=1749285895; 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=MIZF4li7UUm7WILdz9NUcRMMIrsxw1CsckkM2OcB1NY=; b=MtMlz1qGNUkAl8k6/W3Q2kal816gyB8vjcFvASVj39PW6na4sExWq2M3BE+6O03Uoa euhSx+Flao3WjSlseI8mNXmx4hgWt5LcQlJdvxuuIRTn3mgHBpyZx4BJdt5QyEoKCf/o xjN9NVgqJE6FEIjC489zexGRkg1dOk4VQ0COrhPiuEGVs2N+x9xO6Ey7aUHslSL8Q1p9 2JlNJK0rP5znAeBcW0QR4B/CkrxU8gp4dAEAT0KLa4LK6W3pmYK8Arun4MQt3i4gJDI0 Z60H/2oCK0bYQJjGm0j/U6adnkXkKb8SCagCiLT4U2hv54wAxK9sKBTaMh2/TxDI0+fh 8mfA== X-Forwarded-Encrypted: i=1; AJvYcCWbIXpCwlMHJxHLn1/S5/9R4TV+By6OXB5VPWvhSOTGUQCsXDFlsMzjsv6DdjNU0hxjYbRokxo=@lists.denx.de X-Gm-Message-State: AOJu0YyzoUOTunkaTWGZ3CmxqIe0QDOyR4J/7WN913SE0Pk4XdXmtHqc mxjR/OLb/cxLDHZT7oVOqXgug5QRTClRqq4OcAcFn8EQP9qmM9iHeofrX5yvcF3PVk0= X-Gm-Gg: ASbGnct3H5zBArZ8C103CNbugxV4gZCQ9v0qxv1TndoMMMzrufepJWCywaGLKkdX3wa lGusuasKQ/+rr4CdP+w8K409CIFpETntLBlwA7+riSWAQnY48hGsUmkqUaulr5WSNv6GxThyIab ywNpJZDcb5NpnJFeaJwviUvorI3+wX63aG+cQs2pNupfloeER0fHAw0p5uDDs4lXE6C1TEBe+Wb TAtb+BslTQLMhFMgSW0BYPmEBqbUtgz6L3T7nIpCZ0fU0QZrt2Pc/necUsVMBDRWe4MpjvgRQLb baBRNH1X+5SlRQp+tnAk9yMstOx8xPc1lodOH2Cgi5LzexU8K45AMNXNYzqPI+s1pLBXeFaa7nO k4+Plf6Z1MPe65PNWPvAdyBraz+5ACg== X-Received: by 2002:a05:6000:3112:b0:3a4:bac3:2792 with SMTP id ffacd0b85a97d-3a4f7a3dc11mr4842179f8f.4.1748681095311; Sat, 31 May 2025 01:44:55 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:44:54 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Prasad Kummari , Michal Simek , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 02/13] kbuild: add -Werror=implicit-int flag unconditionally Date: Sat, 31 May 2025 11:44:30 +0300 Message-ID: <20250531084449.4125187-2-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 61a0902a06d6a ("kbuild: add -Werror=implicit-int flag unconditionally") Signed-off-by: Ilias Apalodimas --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6a1eb26c6e41..9098e732b4a8 100644 --- a/Makefile +++ b/Makefile @@ -436,7 +436,8 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__ KBUILD_CFLAGS := -Wall -Werror=strict-prototypes -Wno-trigraphs \ -Wno-format-security \ -fno-builtin -ffreestanding $(CSTD_FLAG) \ - -fno-PIE + -fno-PIE \ + -Werror-implicit-function-declaration -Werror=implicit-int KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE KBUILD_LDFLAGS := From patchwork Sat May 31 08:44: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: 893567 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403722wrt; Sat, 31 May 2025 01:45:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUIfgCtQ+hTQ5QjaC1+t+PxG60r4Sb+Qi+sBoGrU/Jcn0GtUYC4Y6QH6o/PF+dG/yX6nDsY+Q==@linaro.org X-Google-Smtp-Source: AGHT+IGZbe17vSRM6LyJdsBD4pnOauJd/Nf1qdqArBZD6wtG4sI/Kud2Mr/3GYwQ21hYCdqE4Jrb X-Received: by 2002:a05:600c:3b20:b0:450:cf28:c1ce with SMTP id 5b1f17b1804b1-45126573686mr8249895e9.32.1748681118397; Sat, 31 May 2025 01:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681118; cv=none; d=google.com; s=arc-20240605; b=R3WdKXhxi4FQB8jglGXRXhZQ8UPVYSFdeMI9Xx9VPBqfvUShe7blpllFQktBVpuvww xCQNMKylakPrrhul2MdKueQL1aL0RV9yJT3P71M3dpeNyVjDeqolhiB3ONIx8oA0HwP6 xjkWYESxXPXFe/9UhjFUHxTNw4dQmWV7rHGY6OKHnEgjKVPdfHxgTpAalvV75ZBXRPgJ oxWPzzQFDzcspTKcRYVrC7U5nljA9LZRut01NshhFu1CMdZ11X8/Nh3/KrRKRUB67Dxl SxsXs5838IkGvRXNyurbI3uL3q7hmsT8WfnljDFS34IYL4uBYNkbko2a5KJWFM2tevuy OnFg== 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=FUloOpiTNLJJ/yDov7BZxm3eQF48L+xD+Qg2LA9++ug=; fh=S7RX2ciKnbHZ4846sPugt4kxcn9ZKtc1q55JwwMVK88=; b=WPRrqQxPrEJIJQh7sVOpMboIp0bve8rAaPVm2br0q9Dw/05rNTQFWKs5YVOKH6oxj0 jKsE9B6VfjTBwlKMwR62U4j/5N3uuB+fSzW+j0Y2YhcHkdFxCyLD0SqdfEH8j+NqxUw1 dzBIgBdQ6VWSKTB0WRTQUTuhyC7I6jNVix8M7XDXdi6XMs6QdvKky9I2LLURWNPnrwKx Ty8F9L7RYRm+uJjA4iwSRXju3f0bhQinwybTkQKKBNuPvUEvD2CseZ5mjOvmgwP5PWtm QxTZsbyVvQ1Ut07Ci9PkNeNPGH/loMdEx5hg/Nqwyl+YjLJQLEEeB+MxPEOsi0XPiRIT Yu8g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBzFVRFm; 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-3a4f009e15bsi4162228f8f.910.2025.05.31.01.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:18 -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=PBzFVRFm; 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 46A3D82BD6; Sat, 31 May 2025 10:45: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="PBzFVRFm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B45BC82B72; Sat, 31 May 2025 10:44:59 +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-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 C313382AB9 for ; Sat, 31 May 2025 10:44:57 +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-x330.google.com with SMTP id 5b1f17b1804b1-442f5b3c710so23147835e9.1 for ; Sat, 31 May 2025 01:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681097; x=1749285897; 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=FUloOpiTNLJJ/yDov7BZxm3eQF48L+xD+Qg2LA9++ug=; b=PBzFVRFmhpbmJ89zcnKmPHVpc/WMghZ0gtK24tMSnwt2JpzTG0Ki6C+UlfSPBDisOo 0BAJbWgRGZuMx1VWw/WwNvDaqHMhQ9c/qg7t2LUDQxdqaoyuZPPhqEilYU6ASRtbP31N SIMwy/Er0kTYvEe+9Zu3fycZuZOiIxREZG9hEwVXXyLvGiQ/ne6+1EUxnGFhVWlx2+FI xk6+H7oe52F7BN3btF7ESo44kQoe31+sj5Uo31Z+jNaCVO1iYhgLcebdKRyPi61tDVgv ZOvlmT+1Jr11gNkY32f4VCSU37drI/UisUdSuJxOLyPmiZTxYVKMyoOXBX8pMZRoTfBc Tilg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681097; x=1749285897; 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=FUloOpiTNLJJ/yDov7BZxm3eQF48L+xD+Qg2LA9++ug=; b=GMGGZTktkyAsuaVxfkW5ZxjbC+bRihrND6vG/ktEr62MsG1UAQClzft9XK3wmPlJuF 9Nnn4WbFSHe2cGzH3j08zk0H9rh87fEttCihSdoWkewsoqTF6X9fZmBk8OmMoEVRLj6Z uT2dq9bBscee5nnrBUrIjaqcI45ymqM8itEFeiPqu+PBn6rSQ4A5bzHwsd3xkIJUIxRG akQebq9ZYBZNZK0FU32DWnB5nyod2RumpydLbgASPlwWsCFb1ftcqtRcWJ8ZXkx6RbTG OdVHgx62EZV9eR3IA5Caqk4lvZPeapcACJLbEp8lYyyN8e6O1NsTGwM9UDJI6WbXTNtq cQRg== X-Forwarded-Encrypted: i=1; AJvYcCVWMb84IudG1K6X8JHmORxX/2snVCnqrvmR78DBZ1qtrVdygBJBqP39rfKbLxmz9dF0eLOMSvA=@lists.denx.de X-Gm-Message-State: AOJu0YyHT5PSvIPSCc4gnrWSDZDZS7V6CqWPeo7PfYdpyIGiPrk67Q2g 0j+bfkCbhj8d6Z4TIiW3eEhUbGFLcZCwGgabiRQW2xPrYwC54Im7109dIDPAjGZ5quY= X-Gm-Gg: ASbGncsB4fGznzXqm4hIZwWajjR4ntgRtJtwh41n+NEOh6EaUzzD6zPGX+uPVXOIB2z seyIOT2JbF2yJfaLnI78kLo+NdBtVHJJnnXv5ayCKLOCGloiBrllrFQShyyfAQK9XpObmu5Jq3z Z3muSb5Z56hukDP+jCyNTqfrFwCb40Y7zXaPA3jDvF6DCJvDWxlWlhINmxZnR/sjb8BOmQSN6JM 3w5/C0HO8q1/u6BOR05WFRWchGCev3Wp1EQ1/vbyjqHzhYoKOJ9SThXaKnQF0O45u1x/8gsFvEn IXDV5BIE6B0Uv4X2vGLbWCJNpq9wPEDlvTV4bV31lyA70suWHQ3SvzaQlEm9vB6xPulj+cfFO80 K6PJHNWH4rpss1hNwEWuDSOe/uKpM0A== X-Received: by 2002:a05:600c:6488:b0:442:f4a3:9338 with SMTP id 5b1f17b1804b1-4511ee1215emr9159175e9.21.1748681097199; Sat, 31 May 2025 01:44:57 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:44:56 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Michal Simek , Prasad Kummari , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 03/13] kbuild: use assignment instead of define ... endef for filechk_* rules Date: Sat, 31 May 2025 11:44:31 +0300 Message-ID: <20250531084449.4125187-3-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 ba97df45581f ("kbuild: use assignment instead of define ... endef for filechk_* rules") Signed-off-by: Ilias Apalodimas --- scripts/Kbuild.include | 7 +++---- scripts/kconfig/Makefile | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index c0d3440a4b3e..fd7a744478fc 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -49,11 +49,10 @@ kecho := $($(quiet)kecho) ### # filechk is used to check if the content of a generated file is updated. # Sample usage: -# define filechk_sample -# echo $KERNELRELEASE -# endef -# version.h : Makefile +# filechk_sample = echo $(KERNELRELEASE) +# version.h: FORCE # $(call filechk,sample) +# # The rule defined shall write to stdout the content of the new file. # The existing file will be compared with the new one. # - If no file exist it is created diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index ba30652f01aa..f0f93c56bdb5 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -220,9 +220,7 @@ $(obj)/gconf.o: $(obj)/.gconf-cfg $(obj)/zconf.tab.o: $(obj)/zconf.lex.c # check if necessary packages are available, and configure build flags -define filechk_conf_cfg - $(CONFIG_SHELL) $< -endef +filechk_conf_cfg = $(CONFIG_SHELL) $< $(obj)/.%conf-cfg: $(src)/%conf-cfg.sh FORCE $(call filechk,conf_cfg) From patchwork Sat May 31 08:44: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: 893568 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403768wrt; Sat, 31 May 2025 01:45:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWjduFxTxN2Ap64b+07lm88wpmxZfFQFZMV3R61+YtIqkUe4qMX0ZcpkB86H3VpDxkieQAUuQ==@linaro.org X-Google-Smtp-Source: AGHT+IGYPH32QsxddVi8PfIpniELuxzcCs617pbGSUfwyNIECFvPfBsfS+uBn55CFlcGrX5x4/2N X-Received: by 2002:a05:6000:22c3:b0:3a4:ed4c:422f with SMTP id ffacd0b85a97d-3a4f89e2c1cmr4689720f8f.44.1748681127689; Sat, 31 May 2025 01:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681127; cv=none; d=google.com; s=arc-20240605; b=bBhtwzJWKg+BjswUEzVI0R4Aq/PMPZ7X9K5tK30htzBQiWZ0wZVCD9P23tavlkJRPi 4O3phtNjNdMlWcXdIyiaBTO2TbFMu04JExfiEQMqTUBCk8vd1MgZhmHJIQpVK/Ijdzf1 UJWNbqa5Z8u5x+dBTqAhdjB5svmOV7VfTyxXV9lDBKmOIzOToucLCJ0gw8cAMw7Ytsoo 4+Oo2Ld3oascG0BA9H6i2pYKs+KEcWmKDNuFEa21VOJBUdq2sMrYl/XRBkIeQmyZq6Gx jsqacHiSUgeapJ7MbMIaTJVXcR8sp5ssHqs8fiZrvHq0vUYDBfKkOW4BI9bZF9QrNmni a2aQ== 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=ZU1PFHE7u3fpebWg6dGRphcldPrnk8nzXBuY6GGQ8pw=; fh=G/bbJdFdwH8YUOtcN+ss+pcjc+oCVHTInbM7kFYFd/M=; b=ZGjsA0XF4jqBgVtZvKAvgOJbnhAE8G/W07JzHbSJuCm8CUA7I0m90jRIh40XZGtpCS XJETUGsFWjyxOkwOX3p14fDGHjb2l2CsdEFhz5e5HUbc+YP3AAckaonH/EZlNh6VKgHe X9BoAP1pKFNhbxMd/IcfTDrU6LFjvBv6eQ1JuTk0hK6UPnHYSXnw89M7EQGKWvSrWNqL UYKrZ2wuPy+5B58m83WrvB0niiWuZCy/FmxARXZ8JvCWQywQ32xY7KujwXbLNqp/e0bX oPT1zukH4Uz3YZiz+1Aw+SgHmNOrxIIKtXxGDUg9e5S/U8FLgmUmwZa6tramR4thrXQT uqQA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lEV79TRF; 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-3a4efe57b08si4099929f8f.18.2025.05.31.01.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:27 -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=lEV79TRF; 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 B56AE82BBF; Sat, 31 May 2025 10:45: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=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="lEV79TRF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9660882C75; Sat, 31 May 2025 10:45:01 +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-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 AC6C382B70 for ; Sat, 31 May 2025 10:44:59 +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-x433.google.com with SMTP id ffacd0b85a97d-3a367ec7840so1811310f8f.2 for ; Sat, 31 May 2025 01:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681099; x=1749285899; 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=ZU1PFHE7u3fpebWg6dGRphcldPrnk8nzXBuY6GGQ8pw=; b=lEV79TRFWbB1k+/r19NsXDxqGaHiCF6vlcy/8JMTxAn28fDXbN+9+sM0a1v809lETY 0AehgRfNtEqyS6+fZ//TyQKFn7W9SKs9lZrofO/Vhcn3HLkLHLreLAfuS4iPuH2SZeEy VKXGUcNpeSvNeiDYWYRC5x1ULq+UZVQQBpbPtCwDlx1wsX2+/QH8Si8EjJeHr4mEsavK EDEa9xkFwvalc2zvYzGXmjGHsSxJ1kYw+u6CSXKyuQGxcZbtPXqj0qJgaedl2ARBuJ/k AFruvJTQuGw3JfrpWzd3CMfzVVrqWgQAlAz8lovzlZ1bCKIp+byxmXzch2gtGHVqIuYK vb+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681099; x=1749285899; 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=ZU1PFHE7u3fpebWg6dGRphcldPrnk8nzXBuY6GGQ8pw=; b=YO+F5uPyg3vDTzuwyIXCObK1ihniTthBYY5OdU7cqPv1aCZY3Brt1IKSQSO0gNOFUe 2Q2RmSK/Vnw59e0Ku42XtieHA8+2rX7ddzCcR61+a427ALfhPWJI24JCiJQbvvlnhpkt gewDIQX7O6Xv+cqb+AH9/dNGtQVXd4KIwtnzhuOVxli7rSB7+numXripzDnxtSq2Iyey +Ls85C59cMCwgrrekonxmSsgxncuNH4X9Pa0hrtaXgfxK4oUmcNsyUYaD0yzLNQi2ck3 jW21ZZtukY2JX0hYQwfYdYqcWt4T/dqLBQyuXZeWa8IgIjNvisj0/oNurOb7X52vb5sR WSCw== X-Forwarded-Encrypted: i=1; AJvYcCX3ie3r11Kvd07L7gYw7e5HEeyBBDHW2NxjCC+WGmEY2ryBW4toiLL7fEyB7VZUbXEFoQ/++fo=@lists.denx.de X-Gm-Message-State: AOJu0YzAs3JP/jD2RrmdtjpO43or7vgPcOusdq0CQmI3MpCYK8jrLj1o KTtSIhkOGBTtKlO8Py0HI7UdC7wvFXlYsxqhH9sg1c2MmKVlXqUxPODqz5yvxSX2/e0= X-Gm-Gg: ASbGncsWMGoU0wt5pTCzSjx9CUpaizwIaNcx/Sdu10tICPvLMUfWrSx7j5riSUUMbRs YEuH1kGdbCNoMiks6znHDC3hHeKRHneVkRNzVNsMUgrkuC6xvSj9xpKEC4pb0k5dTeObFqaMpW4 GJdgFfEHu4s8/HEOI10lpvps/LZI2DOX/toYwkQ9MQF0n63C6zQtNbaMTX/XXEGDDMxrCD3Lwa8 uuI0xu6VeVrxrUvxFKbLxt9L5lKFtA7ouIhX8Upb6E/VwrGAfjMNWcINfyoj139W9TBI42aAIc1 ZPC5EyIGBLxBwfHt+bVqnWWykCZYskbr0kNh37UcBDIAbcSZl+lAc+RRz46I2SFYFEB/aJNWMgY g4bxObCEvLxIagWhi5M7BNUbvxJvbBDZJRxJWylA9 X-Received: by 2002:a05:6000:22c3:b0:3a4:ed4c:422f with SMTP id ffacd0b85a97d-3a4f89e2c1cmr4688661f8f.44.1748681099112; Sat, 31 May 2025 01:44:59 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:44:58 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Michal Simek , Prasad Kummari , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 04/13] kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD Date: Sat, 31 May 2025 11:44:32 +0300 Message-ID: <20250531084449.4125187-4-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 ad15006cc784 ("kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD") Signed-off-by: Ilias Apalodimas --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9098e732b4a8..82bcc097e493 100644 --- a/Makefile +++ b/Makefile @@ -446,7 +446,7 @@ ifeq ($(cc-name),clang) ifneq ($(CROSS_COMPILE),) CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) LDPPFLAGS += $(CLANG_TARGET) -GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD))) +GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit)) CLANG_PREFIX := --prefix=$(GCC_TOOLCHAIN_DIR) GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..) endif From patchwork Sat May 31 08:44: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: 893569 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403790wrt; Sat, 31 May 2025 01:45:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWe6aqV3gexoUqWI5aAB6yuAfPhfHkYawbvPMf9Py0PGUgpQQllFZs4QtWEwa3piT4gPzOxZw==@linaro.org X-Google-Smtp-Source: AGHT+IFv0jMmeCB3EtAdE28PGzY01LHDfDil6rUkhcAxv0sR0jXCJ0U1gOLiKeuiqfJL7v4Oe3mN X-Received: by 2002:a5d:64ed:0:b0:3a4:e8c8:fb9e with SMTP id ffacd0b85a97d-3a4f7aaf9d5mr4454226f8f.49.1748681136380; Sat, 31 May 2025 01:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681136; cv=none; d=google.com; s=arc-20240605; b=PZIheJYlCojDNev9pQNdN87UIQRgaBtmOgMOxM3EvSPFvXqzrx6qGmwNsh0+pehDzj 8e8pCnDq86ithYB5aAWXlIyX7b5VsgUJUKkbzdDHSdGU0Da9Y2qJK4x7zxiITIb4zJf3 9xKo+bA0krdHxQwXoWfQn7OKTDE1ji5QxV/Ic30MXJpt1IpgFLaTIMM1sqHQwEzSzpQB OJRGRoGdz30DFqLydlEdzLOD9N8ifSH9XVRKoPGrtlAUmvxo+1ZMhn/DFml/3Ch8UXgL uzuwcyFXcWM4nSE3HX595zm/uxFSea7j6iNQ6UyzhYluYju594SZbL8uf0tDGy3wHq+F V9iA== 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=1R6K36WahwQkSIvxShFaNASBZK3XHYMp42Krd9OGjrk=; fh=CtL1oU5nS8W2FhccZJmzlNmVQ/zEMiInGGDg72X/Q8s=; b=Tk/qSaS6Ey93Rv7yWH4WzRrE49urcaWaehsKu1MzzAlpUwIHavzHrYhmRBddN2mL4q ippHY3aZnt1o+pesHc9alP9ejkB0Og63CPqY8nZTqDSbPP3Ob5SN2wmgic6z7NHTjuPX hLyiABe0/qqJZBW8P5MCFNGY+Z2TvMn8Ky3mTyj59UFF+kDbU5Yc9unZbZ8JcMLkY+ot +skeC5BbR5wVEf03sLHQRqWhgVfBhYv5AU8dKJAdlT3oz/1Dg1XG7lXvrrmwIGXAlBum dnc2w7JnJxmZJs3a5KnaHpXw8xwTo1+5k4pv/ei8WCvRno2HbLivWGvEZzG3cfggyDwE Q16Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O+5DR3j0; 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-3a4efe5f1c9si4131512f8f.188.2025.05.31.01.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:36 -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=O+5DR3j0; 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 1153A82B48; Sat, 31 May 2025 10:45: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="O+5DR3j0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A54082C8A; Sat, 31 May 2025 10:45: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-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 4B0C78003E for ; Sat, 31 May 2025 10:45:02 +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-3a37a243388so2313579f8f.1 for ; Sat, 31 May 2025 01:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681102; x=1749285902; 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=1R6K36WahwQkSIvxShFaNASBZK3XHYMp42Krd9OGjrk=; b=O+5DR3j0Ez6DfxBd1GoWmAQBC/3y/xGxRs9/+6bLVKL/sarQlOOVh6kMehB1HTOZhT ZO9PdcYt/jvarnhviyLiYeujzJ8KPxt6NpYiU3t5vT07TOwE97PrWgwtdLJY3Fss+T7s Ax/XxH7b2JVg9AAkgwkm6RPIHYGfFTuuxBN+BJDIvG8YL96j5JAcc0vU5zv5x5SrRH/U jaq3Y0ZQN5RvGhzi4dSURW8PPZILPtWu+Er60nTSpQb8oUuaK2fqA25Zm1aK4mj9BIwn gQDmSuaCBbp/ZACxohzadLn4HUI143+ExHcKDBAimMP5XzKuEI5P7NkWMZqAIj/uzD1q aHrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681102; x=1749285902; 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=1R6K36WahwQkSIvxShFaNASBZK3XHYMp42Krd9OGjrk=; b=sTG6xUUKjFfrc4IarmS9QAY592PB/BTFYNCVLAaB6/CTvct+6Aqnh9wd4LsPasZRRh tnMm8lO3K+0tbX0mAxT4yW8ZdAEs4+pIK44/geyC0ICThhVRYjTyaO0zcKvtVZRinnWU VIjITHQFZTV8q4jjZZugF+0SYBmE42W0/p7NzDc9Rl2j+3QOP4mu8AOvdCJM6RqHskdr M0mUkYuHvUo1C1crOHmpCjnhOPX/mt1JiGfyj0tVF5DdH8b1ETcbAr7WCpT/35yfEw7P Bc2PxSbIh1Ky8vGeQYh+05nJalyK0vEaOWX1A1a+0fZIskP3gBwRp7mYQqsLXk+9FySn xZLQ== X-Forwarded-Encrypted: i=1; AJvYcCWUkjittIIrXGOHVPiSpZVItGrkjEKbWoiOGbn9T9Mo/8rEICYFQAOR5DbgnR7a5LKtawZ6QN8=@lists.denx.de X-Gm-Message-State: AOJu0YzMbDpkm2YE1G65s9pC+U1+iqFwDzg23NN9xrhpLopfNYIkVB7x Y4Ic14otofiq3qomcPKKJYm19vwEEEsprYvY4g+3C2etD7EtD+8PCi2Q+DQxx4+rFxA= X-Gm-Gg: ASbGnctr6jFfOi9ENG35ul1abDOv0f25HuP1ihNxQTn0us6kEBekj2goaK8WWjFQiL3 XLNWvNGB3eEPVjEfVd+AVknAPx3jNaCkSrrz7RnTjNWynj5H2+P2VPz8o8uz5CzoT1pyGLLwwe5 VphBwFtrLFh048FMBR1T8QJU23RDTQs4hZ7dleGXdz/0CeIbEgFfcPZ1RnPZ/7i5MJgqVn5ZRI3 tjlTbFXkhyT7+TpIRlpNk23CgUBF+pUxWPwYi27NRuqIfBu/kI0IWCSuc7i1iLm9Vr4iwSq4Jwj 59/hEtEpSYMteudOBrIoBDD9quxX5HYJ1wnmZQx06sXLmuAuB3hrjtMjfRK/4k9avortERfthWB mid3vtXMfDtaHVpEAx9XFcIytxbJsa6mGQnkGFMde X-Received: by 2002:a5d:5f84:0:b0:3a4:f430:2547 with SMTP id ffacd0b85a97d-3a4f7a3e50dmr4726426f8f.6.1748681101702; Sat, 31 May 2025 01:45:01 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:00 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Prasad Kummari , Michal Simek , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 05/13] kbuild: use -Werror=implicit-... instead of -Werror-implicit-... Date: Sat, 31 May 2025 11:44:33 +0300 Message-ID: <20250531084449.4125187-5-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 b89f25ea7892 ("kbuild: use -Werror=implicit-... instead of -Werror-implicit-..." Signed-off-by: Ilias Apalodimas --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 82bcc097e493..48a0af51bdd6 100644 --- a/Makefile +++ b/Makefile @@ -437,7 +437,7 @@ KBUILD_CFLAGS := -Wall -Werror=strict-prototypes -Wno-trigraphs \ -Wno-format-security \ -fno-builtin -ffreestanding $(CSTD_FLAG) \ -fno-PIE \ - -Werror-implicit-function-declaration -Werror=implicit-int + -Werror=implicit-function-declaration -Werror=implicit-int KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE KBUILD_LDFLAGS := From patchwork Sat May 31 08:44: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: 893570 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403825wrt; Sat, 31 May 2025 01:45:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWJstWX4SNpjMrDNx6kiORpmtwLlRActWaA2WZbyghizCoaaq29Kyhf0BHBbwKQtIgKT8/lnQ==@linaro.org X-Google-Smtp-Source: AGHT+IHWyOiFe1VZVWV9gGiDK7KPTE73ajvkSPiolizFqlPKuzGCcFlvM98dED6Zbj1EJlnh4NMd X-Received: by 2002:a05:6000:18ad:b0:3a4:dd16:a26d with SMTP id ffacd0b85a97d-3a4fe398a8dmr993689f8f.38.1748681144625; Sat, 31 May 2025 01:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681144; cv=none; d=google.com; s=arc-20240605; b=eqOOsduKPW8ybF6TYqStPDD2wcEomt/8yFxcqeNdVwWFhPOwW9Jws/vPesOweHeLOF Tr+MQmLumTJ8Lx9L403DPBxR5nVaiDayBhLf9EybfQHzCGfGPaqz9/0MBiD223qJZV2E OUH72xARV1l/bbYh79dPEHcqLFJGJQ+BP6/cKFGrScUSKLUQCSq8EMj/8aViAUPB2kke ApEJpokzihZMlvY7x0cbZguchC2mvxIVJ3iT4tED9L5lbiAiPXfMfqzCZuJyCRRDu6rk qx/F+nZrkAZzAiih3qPtp7oeGqNAz+pKMsOMsg+PFJTDqzkI7/5K8I862x7iDPYzibAJ eBWA== 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=5vOoP8Gu7lhdrKyl4UYQ/V/1BY2oLaEVm2VemAdUsqU=; fh=io9BqcVVh6XJKYZsd8oJuf+6VvM6Wjih1Zb2yA2mQrA=; b=DT5bjzKHKy801JBiaPtBAwliNnK07T4C4ICPlFW+whKiQ4d5J1o6bqyUQI3Gvq23+3 pCg6o2TEq9NDxFXtxLMniARxdjqjLP+yu7NPmJ7spV3tDGhF+Qzdoms7jM+Q74kMUKWt H0YM47ZbCQbYW7UH39jsORbatw7i3ay8IwZ0S+8is7rUy+bbVQHhppAw8KPdGZPUEXsJ oMS9sOImRqW2epFQVAJCeuefpWNTfpN5iv3EA8VhyfhBWoimcu+ISZ9d8A+VJq5/onx4 StWR7J2TeL4eNG0jGgK5Sxh1R0nyp0F8dnvTj3N99ppCmdCquHfCBIgBG4pfasbTufrF vgyQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RNGlHs5a; 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-3a4f008b838si4062248f8f.568.2025.05.31.01.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:44 -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=RNGlHs5a; 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 73FF682C7D; Sat, 31 May 2025 10:45: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="RNGlHs5a"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B20638003E; Sat, 31 May 2025 10:45: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-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 22B0782CA0 for ; Sat, 31 May 2025 10:45: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-wr1-x433.google.com with SMTP id ffacd0b85a97d-3a375888197so1403394f8f.0 for ; Sat, 31 May 2025 01:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681104; x=1749285904; 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=5vOoP8Gu7lhdrKyl4UYQ/V/1BY2oLaEVm2VemAdUsqU=; b=RNGlHs5aSzbwg76HD/wuRM4ApDbYJUmAGYRlHoRVdnmGRYLeAbPJ/rZCin/8NV11WJ XHQrk2KebEb0tawCaAFRt6STxvj/pO3Pl3Drs3iP5d/LTdzJERyGcwFjbrUm2THUuRxa QvPNOXpOQF9O9e0aI5FxPpHVVMCGoGCq0tLy1O3Vy1MwAAkUC1ynNJprb6cR1Ir8K8Xl oYBJx+BQf3xQc0KN1alBRMAu/AqMdGif80MNT1jsB9ZXXyQW/uzwdJcLA5MjRruAN/cr gMIZRzjxoBwQdn3cFKh+yZdnM5K2AEXjPR2lROx535r5c/Be/S+Ms5lGg5x4WS7MfvmV O4pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681104; x=1749285904; 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=5vOoP8Gu7lhdrKyl4UYQ/V/1BY2oLaEVm2VemAdUsqU=; b=saJflkwdX+xmKp3iaBB0LlKNboriJWT20vH0HCjDRf1vLT3Ou7WHDVLKpfSEVtlJU/ +iMDIIUIDmakIGKhd/6BGDxFm+EuGscR3HRoPIqBEzLkrUAy4sa+xNbt2hqqxxPRQLX8 7j2iWBw3+d4lvV9Im1fUSgXmicB62y3eutRcl/7EFNFnnPHWAsIprRMPSHLQnCTb7h9I Ez4EBloeMxYBowlW17jferZ1LGb8LNme8DE8NtoKCbJ1bdBIor+9qqqJ1FS6Mboky0gM /4qidK9NqMhpVN0GUNFHC0ElpfiALHW9kRVp6VoUepz3drH739dyxtvtRa/8DjmUCak8 Yx8w== X-Forwarded-Encrypted: i=1; AJvYcCXpmfE2vR356mTg09/Nuhm3VjoiIIsWKIcKzCIMY/bSu5NfA+ukBntRhJ4LTtWrCwnEfbEVR/M=@lists.denx.de X-Gm-Message-State: AOJu0YwVDmqoC5PP1jJHQufrNQmfWaSiu0QDFa1ZZKtwoyK+jIweH0rs jdmAYdiOkJieb4vjNncBZg6MF1HQ5pUhd9wNt67Aqvz1SRYwVnqrqZVLB7o8nCSIzMI= X-Gm-Gg: ASbGncvnrRnC8Rk24X5sCYS/y8bGXFrJm/cICk1uPmwbSabrGny+rQ3XxP74N2Twr2y 30k6aJdJ75DlBFIxphcG1Y8SStlD9yl52VR2ktRzO6mJNE4v9Z8VFBNTw5zC2mi1i5IyU5rs2yS xNBni/ReEw0KcOQTzzCMsb7J8OocDdrn/nCbxfKcs4ARkOvU3QCwDNcUu4P8h9Ey1dkTy4b/kVh DNKEoElBmsyUW8EoxjN8DmWofaTC7R9pERf1QA+sBsD4TPx0pJ+9/5Iy0NnccxcLOhrzthyIy7q tb3o5dj/n2HZWZZmZdKktskArzXmv47DBqBdXkfGeZRH34ucsix5iy0b2odJwUC1zvEg+4nwVGz WjTsxIaB354VSa9GcPepPeMsvbJNKiw== X-Received: by 2002:a5d:5c84:0:b0:3a3:7ba5:960e with SMTP id ffacd0b85a97d-3a4fe3a8214mr1043348f8f.59.1748681104367; Sat, 31 May 2025 01:45:04 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.45.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:03 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Michal Simek , Prasad Kummari , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 06/13] kbuild: gitignore output directory Date: Sat, 31 May 2025 11:44:34 +0300 Message-ID: <20250531084449.4125187-6-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 3a51ff344204 ("kbuild: gitignore output directory" Signed-off-by: Ilias Apalodimas --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 48a0af51bdd6..6758ec4103e8 100644 --- a/Makefile +++ b/Makefile @@ -513,10 +513,13 @@ PHONY += outputmakefile # outputmakefile generates a Makefile in the output directory, if using a # separate output directory. This allows convenient use of make in the # output directory. +# At the same time when output Makefile generated, generate .gitignore to +# ignore whole output directory outputmakefile: ifneq ($(KBUILD_SRC),) $(Q)ln -fsn $(srctree) source $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) + $(Q){ echo "# this is build directory, ignore it"; echo "*"; } > .gitignore endif # To make sure we do not include .config for any of the *config targets From patchwork Sat May 31 08:44: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: 893571 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403866wrt; Sat, 31 May 2025 01:45:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXEptNYDbdfUCCRzVXJJC52r7B8EcakgdkYsn2vs3YR7ddtGYd9AtcQal/Vx1YeLSlEePPgpA==@linaro.org X-Google-Smtp-Source: AGHT+IEcB081ksRvLM+K7a7gDxUw0+xoLTfpSKX1xGeeFZGaUmyIK46ZbUR3/zQQGBDDODGQqQRh X-Received: by 2002:a05:600c:8207:b0:43c:fa24:873e with SMTP id 5b1f17b1804b1-450d652794amr56119905e9.13.1748681153099; Sat, 31 May 2025 01:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681153; cv=none; d=google.com; s=arc-20240605; b=YKhKhKfDOGDbJu/DeWdtiuzwllwhpXCGoB6X6wcBvg707r7eZgwekqsVZZ8fMS2cJI 99Y8A55blHyGp5M8hJ6roZjaN6lFd36HvdhnxLsScrFWQy5SR5jhKQhkDeKb+BH6ah8I UKWwZE4vtYexJcZ1aqO8eATvf6ZfwzcAP2ysW+yOpM0TgMEfLIm00WqmLK5hdnM0pwRs NQ5V+uTFnO5jPombiTB2qZYy4+s7Cw5jb/p2kQzyqmREZtS5CZ/UWryT00bp4qO3BOgv N4ZrPNwMhzxmuu6/PPhRzkbbEbRUWVFxwxg9R79eR+lYwaxCFXSurKp3Fcli8BrQhn9T AWsw== 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=ww2jkm4IOV6ODtj+50YOwD56/9FRHbj7rWwKw1LxU1w=; fh=SlYOPtxNgAJXgRaqgJGNyOUe1ZXV2rg5lVJ0eK+dPCw=; b=WW0rJUiQIOlN7E43y1hoT32jLNrWRE6xbhhI4g9KkXkI4Xb77+R+7b4/GFebAuzxMg sfQImV94BPGSF2/Fc8lPf0J9LLDmp525grSqIm5EJKBwcs2ssGe+34DJfd9NSArDDboJ FKK0An1b2FpW/ojG1p6TtuO4QGR83lMwWOvCNVKfVbTMmcjV5UCwg4d5tUAZLtB1o5HR kWa+SETPZG/FwKqSFjcSSo1Ja8G0CdQJvpp+QLwdLdb7L0oErhZlpyPS0IK4hXv97Lma s2pAQqft7SM69BZoBS16X80QyWmL/bN4f7jevfzpPldCd41C+2fLoQxmH0d5O90hmYtP ZbkQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FhsYpmw9; 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-450cfe12c3dsi39826905e9.106.2025.05.31.01.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45: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=FhsYpmw9; 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 BA4B582AB9; Sat, 31 May 2025 10:45: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=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="FhsYpmw9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BE76882B70; Sat, 31 May 2025 10:45: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-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 B00C382AC4 for ; Sat, 31 May 2025 10:45: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-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3a37ed01aa0so2289959f8f.2 for ; Sat, 31 May 2025 01:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681107; x=1749285907; 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=ww2jkm4IOV6ODtj+50YOwD56/9FRHbj7rWwKw1LxU1w=; b=FhsYpmw9XJ681MPPYD+ifZoF49QI2DxiGsaPMvYwFxBVt42k4CLWMHiI5G56KHMtC5 jpoTiy3kpXwZGYGuUjVJjFlgCzOP4sYLFoS7Swig3KUlx0h+5t+9tPXa9IwNUG1rENNg dQALaFSaDWBwQSLrlVyBwHIaQIg5mrE01NMFCE9yTE6De8DerJBU+pOAeQddvAZUZx6m Kkr6Ynme1MFybigaOrtiG8/OoTlwe/uIn9xfA1YJflBu497QjQPd2tjO7mqsJvGZ9yoX 46igoZ8kxtXqXLiZVxoG8lzq0UqKVWyTQhZizLm4zp1vFtWv1dMZHtT7YR8g8BTm37CV 6wzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681107; x=1749285907; 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=ww2jkm4IOV6ODtj+50YOwD56/9FRHbj7rWwKw1LxU1w=; b=mIhQS26r0rMV8efRTZA54LetFjIDo2wWo3MNulJcuFL/8fIIlm0fPncfTT71Yolxcl dstsXSd1OR6uzHeoD60mL88jnICo0C0rn9DQbEuyu6Gry6pysJXmMG9HgnfgiuyWSBL6 J5q4GcfHCpz7i2ATIndHyPpjvYD3IDLz6AE0e/BOk3xc+xSNOoVqRoyBTEjiNXvOmUev Tq92haqkZWYZk+WsyTavxiJ9peMyTcrYn++raciUdruP286L/8jKDuDmqfcWp8BERoaT GFb4czs/V7eD86jdlbv/IUJPjPXRLYOpR8Od1V/452WXxhUqjufX/WbR0C5aXppb9B8C Vp8Q== X-Forwarded-Encrypted: i=1; AJvYcCVjvJqgmNDrppFWu44BVnRwYrhp6wbJBz/LUG0QC4s6c25xd8QJV7OHacyb+REQvVtYufIFmco=@lists.denx.de X-Gm-Message-State: AOJu0Yyidw7X0lBy+1qetxaA3IXwxd2DCGCqcIF75CCawR84MSr8H4d0 r2tOr8bkohHKeQ40bbbkwtUT2DqVwfQ+lNIb66GZDl1Cc4MiCwlukpXf+vxZv1WOupY= X-Gm-Gg: ASbGncuZoqUib2glVVzJ2OQuPNqZ17UZFAGWJDeHABDQrefIXFCVt5aJD5jzOao/IPi JZnIFDkOz60ugI140cgp6U4qmi7avnqb4RZFzTtE8jJ+DV83g+PULA3PhdVCkOXVHJfWtDrt/xj YzzKkxb72Ud2jf7RsUjWXLHRYZrEQMpOZmGnY9iP4N18DbYlefE6Fq0elQ2jypTXO+s/kwjJylB ++91K6E2gVJjRvnM4RO9c6jvxQiVJk7tCmzbZ9hixxs6eATVfJZGNQHRc9pd8aXtUdvBthXOOTd kGvdZv5V2hP++ct4daGIvR2zdZJ91sW2DDgXxpWC7xkHSwjPSeTY1nIN19s7tW8GC/j9W32euaz V2pqvaKzOvMfLeQgVjh+p+wk/Q77WMw== X-Received: by 2002:a05:6000:240b:b0:3a4:f24c:d719 with SMTP id ffacd0b85a97d-3a4f7a816a9mr4536519f8f.29.1748681106922; Sat, 31 May 2025 01:45:06 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:06 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Michal Simek , Prasad Kummari , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 07/13] kbuild: remove meaningless prepare2 target Date: Sat, 31 May 2025 11:44:35 +0300 Message-ID: <20250531084449.4125187-7-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 4f1c1008e786 ("kbuild: remove meaningless prepare2 target") Signed-off-by: Ilias Apalodimas --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 6758ec4103e8..1f190b40ef2c 100644 --- a/Makefile +++ b/Makefile @@ -1949,7 +1949,7 @@ include/config/uboot.release: include/config/auto.conf FORCE # version.h and scripts_basic is processed / created. # Listed in dependency order -PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3 +PHONY += prepare archprepare prepare0 prepare1 prepare3 # prepare3 is used to check if we are building in a separate output directory, # and if so do: @@ -1964,10 +1964,7 @@ ifneq ($(KBUILD_SRC),) fi; endif -# prepare2 creates a makefile if using a separate output directory -prepare2: prepare3 outputmakefile cfg - -prepare1: prepare2 $(version_h) $(timestamp_h) $(dt_h) $(env_h) \ +prepare1: prepare3 outputmakefile cfg $(version_h) $(timestamp_h) $(dt_h) $(env_h) \ include/config/auto.conf ifeq ($(wildcard $(LDSCRIPT)),) @echo >&2 " Could not find linker script." From patchwork Sat May 31 08:44:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 893572 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403897wrt; Sat, 31 May 2025 01:46:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUDng5PeOyWR2WVgM0Qb8fOjyhE2z3CslIMl6xC/nIDZn0Bu9W3zTXPSasq4ziw6b1zsXeR6w==@linaro.org X-Google-Smtp-Source: AGHT+IEwqgQzC5k3JHfgV6/cluN40ZVGHubdW6hWukQDHydYxacznbshvrVtPzVSMF4wolZQ2vUl X-Received: by 2002:a05:6000:2081:b0:3a4:db49:94aa with SMTP id ffacd0b85a97d-3a4fe17945bmr1080459f8f.21.1748681162660; Sat, 31 May 2025 01:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681162; cv=none; d=google.com; s=arc-20240605; b=VwcGn9kUaZl7HdQAlXf6Ns3dDQWX6SIUcILYPnS9PB/nkN5Ahjc3EZkcaZJnbd0DF6 8paTHO6z9TzKLz2I8ssLmsVn06Bl3B8HaedwiQbQwC25SbLdAtXpE1+BKFcPat/u/dn1 MRjt4lnmF5yJw99FASxZ425AVl3t0Uhzc/nl+eHHfuugaP83BTuO81kPO06GgDIh3m17 yO8c/LeuYeAXRbhcWVBdbFeXnIPnVBuCAqhA4Q9f7w7DxAfKI5VRnyG6unUw06GSZJOu gqd+Kv2aXlyBm/NwkdxuP41b2/WVtllxKU1d6T1pUN/g9UZO3jZjWy22SccrOi+niMqR 4ydQ== 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=H4ND72Ylou64JJb89L+RAiODSpoWeTnC0TejW9RznGQ=; fh=/XT6S3C/rszABq/8xoN2A6qm12AznEUTLiE8RAvLh10=; b=JoymF29oWZnJYBbkdOvNI9m+7FYpDAE24cHBk2TN7WC5O6W5I65In/+yUexYzmg99o UwcOc9+st9L8OCdNDYwOenGzqwnxnA/Rbzq5xBrE/tRxQwMR3ymkjzz5Vz9MyeZHYMGP apZU3kaHNC0uKq4EVHpD+y4i26elSlZpPiUWDhKJEtEZT67VyYXVxlOhZAfssLakN9xC F/q/KJzDOntxnygIEwVvo7MSkUb8L28cI1tdOrH+lvAHqUOzMWtbMrBBIkQ3TD0ul8wI V58e/ulY8QIjt76nDhvQtXM3fexxgNcN1QJtGw+AMxEG4/Z57ZE+7zK+ujVofJh8B+VU v2TA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JPtj8B0A; 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-3a4f008b4c5si4192081f8f.474.2025.05.31.01.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:46: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=JPtj8B0A; 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 0C3C082CA8; Sat, 31 May 2025 10:45: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="JPtj8B0A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 08D8082CA2; Sat, 31 May 2025 10:45: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-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (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 F174682AC4 for ; Sat, 31 May 2025 10:45:09 +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-x436.google.com with SMTP id ffacd0b85a97d-3a4dc0f164fso2619471f8f.3 for ; Sat, 31 May 2025 01:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681109; x=1749285909; 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=H4ND72Ylou64JJb89L+RAiODSpoWeTnC0TejW9RznGQ=; b=JPtj8B0AZEjzY/6ENOOYtZ/d+nGWvUqhmVJknDz6qO4Asw7VgQLu3KA9F/FKSUxFSi AF4MOIrO3PWcGzll3lPjpHUcIoY5+aK8IJ911x+9BNwVjx7J+bGEJhvQqiX+55wCQh6z WkMqRowWnBKgU+ZAFHRaMmd7puB8NDqxtvPmZdkNCZyhpK6FF+JX1TZuFCnFhvdvpJgl fbUkyRe2YK/31LnwKt9EluJc5szVZpc1kpEL4yiVV9oTCwEKzVLnwstP6vNeU+Kp6eSi 0tE9py5LeSzKpL/XDlV3/uVXP4bs1n5ZcFr/Wmo1MvCiOIaQw2qzCClMjRjY23OsGlSu QA7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681109; x=1749285909; 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=H4ND72Ylou64JJb89L+RAiODSpoWeTnC0TejW9RznGQ=; b=jvCfQAk1uMU2fDrQfb/4XN1XHudrSggZB6eJgksgfhdK0BYMSnD7Iq7ETcYFC+UVK5 SCynUEGy/jMy4zCJs37CNQol3cWZogPd1jjj9RufreXcOwzg9pfJ2VUuKp6x5x24HOGL Kfb98GHgKbn5m0ETFMQSnorUFY08OgKjskOl1CgrBWgUaJCUFGNn41lsPm2j/nMevdjO P3vXJLGapybivK4ggeR96QxfljWSFTWNv6HoxNIervUWT/fsxPFPCMb150FBi9FMSFYV A6+c7sJktNaEHMq2UCahHBuSK8q6zUo4iuUeydiFu7NJXkYYcdD1RF4iqkhEyQ6QVdCW ow2A== X-Forwarded-Encrypted: i=1; AJvYcCV31d9HX6R2lDyvkwfeI2nQ1Tjj/1k6y51hmr+O+eForH6KJcYjkizs1Otb37t4fXMdf/Ts+IA=@lists.denx.de X-Gm-Message-State: AOJu0Yw4QM4d7wHqrqTUFA/r2kPRTjIehZkgI3yNYCGZ6BYvAHQEXzbL /jfSr4UjUuflgQzGbHgJrE+rJoFzUWoxhucFPGajeulSTc63sj/GPuuj/0dpA9Tqzek= X-Gm-Gg: ASbGncv9djxSIGKrek/C7BeupDPOZRdsCMz7EOz2JhLBPNOAH9LQ9Y2S0OXYjRSs9v7 IT6F7/JjwlszsfFdOQCdMoLnbRAWAbK8xsRwPuNPeZRaxF5ld72GpnfEWKEe0HXJbMbafHMQ41H o829aHlJju9vYdu3coRzS/F/0k9xtohHAue0vciijgfZTcf6fq4hMBM7XhjzkFhKP4/cuSrUXzH JUp7rcpeP4yHUYeXtunPbNHaKe0nqpCeZIYcBjiILobwpbN4/ItqQTaJhLcg98K0jZ+O/41KtV5 qWdE2CUayYfBJEQTfaSxbv/s2lG7gzRiz9GwYtTaA4YqHf97ZO04aTavjnmF/2gFnfBC1F2aRgh DcVoRDn5m/YqQf1GFrwwBK9KLdA4AaA== X-Received: by 2002:a05:6000:144e:b0:3a4:d975:7d62 with SMTP id ffacd0b85a97d-3a4fe393721mr1166867f8f.35.1748681109418; Sat, 31 May 2025 01:45:09 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.45.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:08 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Michal Simek , Prasad Kummari , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 08/13] gcc-9: silence 'address-of-packed-member' warning Date: Sat, 31 May 2025 11:44:36 +0300 Message-ID: <20250531084449.4125187-8-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 6f303d60534c ("gcc-9: silence 'address-of-packed-member' warning") Signed-off-by: Ilias Apalodimas --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 1f190b40ef2c..055898935372 100644 --- a/Makefile +++ b/Makefile @@ -800,7 +800,6 @@ ifdef CONFIG_CC_IS_CLANG KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) KBUILD_CFLAGS += $(call cc-disable-warning, gnu) -KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) # Quiet clang warning: comparison of unsigned expression < 0 is always false KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the From patchwork Sat May 31 08:44:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 893573 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403932wrt; Sat, 31 May 2025 01:46:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWPaGurln2djQMiEmkGvtLJqdgakhQSo6T6g87Pl5arXNTiPtwUITZoCgqey022S7ex5XH4Wg==@linaro.org X-Google-Smtp-Source: AGHT+IGlPuWOUw+TdpS1/vqGz+e5o5j+qhCE1yqSq5IQjNjWmhx6oX9wxso7iCIixnlVFTOodvEU X-Received: by 2002:a05:600c:3147:b0:43d:b85:1831 with SMTP id 5b1f17b1804b1-450d8757eb5mr56039415e9.0.1748681172179; Sat, 31 May 2025 01:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681172; cv=none; d=google.com; s=arc-20240605; b=ADfuLHiUDZGqgyseoacE8EgNm67nyKf/OAcnhpKXWJli+SXLin/bMg+zZtI7utZigv mvdOo8LEk5HT2eGIdnKadVhcPnAabGLrOVkxjsmZaSWig/HWHHjQQspgmG1LiCeoX/B5 ZwzYQMIlIbve919qmiTunmGpSKoErgsehsUu0oeWtfFhhHp7INEwhQnQ1wRB199lC9bB mZCR1hdwzC8Qvb/tusPrL2NvCUgbpohOa1LtQ6Gijc4zN4n+2bRqoaJbkgqT1jZ4ToQS v7ByiaeAI3B+ghU/3rNiBbIE26NH9euBCk6+O2Q2w9wbfzquim6+mN7uxjQrprqJ/zBf 1Wtg== 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=oINDw+nSoqtNR6yqKIAIjQ2bb5e0uptR4EDEECqTAL4=; fh=ONkndJu+v/B7/w7oTxqyxGb7EktgAqqVX+mzlwFsA4k=; b=iNgjDc9DadNrg31VKw8UePuhph4u5BXu2Mj8BMwcvCaYu/LfRAZDea1uWNMpiG4Qpi vB+g9XRNcDmnUyADSfMOqHxWaE9qfSjYLT7KcH6/KKrNBQziZpfQS0gkKBr5qKPyU/Nv iYhltDFL+HkG6JNdp3DzjpYy3B8a6TuXzmtQZdKJe1m79111qPKLIrJYQ02tF4FATS2Z oqWHlIFhaFpq3e4L1aMaggZxXICRWXxSMvAJ8YLx0xSWeXAEKqZOoIcvj9X0aW66hxhY ToqZ5qFY1Esr6J7soml2we3QVEkewT4zclWbfl8MGW2gyPAves9LRQPIwjymPnBJw+Tn FGhA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nFOF01Zk; 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-3a4efe85826si4062425f8f.265.2025.05.31.01.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:46:12 -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=nFOF01Zk; 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 5A8D482AC4; Sat, 31 May 2025 10:45:15 +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="nFOF01Zk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 544D782CCF; Sat, 31 May 2025 10:45: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-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 69F3782AC4 for ; Sat, 31 May 2025 10:45: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-x432.google.com with SMTP id ffacd0b85a97d-3a36748920cso3043726f8f.2 for ; Sat, 31 May 2025 01:45:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681112; x=1749285912; 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=oINDw+nSoqtNR6yqKIAIjQ2bb5e0uptR4EDEECqTAL4=; b=nFOF01ZkKjwDXqHkDeR5jUsFUmrLLK1FGZr/Zqb/Nee0FYYVJfYTkq65hqHrUmN0YG JuZCwMblBGdkHCESb5ewSNKhwZqm0BcKnW0CYYj8RS1ObaEjciL0y3djry/MZ1UbdoWL 1HRKBgdR/MtJhpe6f+fJLbvWHWVes0QSw6pDDs1POlaVgugZJg8ry97Z7/LglAdZ8UnY 9q/7nnoFMJm15LkkGbaGBPAit2nD9iPoKpPYj65wyGXcRWn79degS0TC/uplq2mPLfcr kcP3sz1M88kccD8SWqhx9CzAo8O2Ho7ToXpEtyn6QliTx/ZwrlBEcTaU+nsTRGPW+Ran eqIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681112; x=1749285912; 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=oINDw+nSoqtNR6yqKIAIjQ2bb5e0uptR4EDEECqTAL4=; b=eN0inaaq+Gm2/v1mkBh2We9crtP93ZkBXOTiAJ8nMzTiRLlnmsEjXAGgo5osM2ps1t QYSPbvIQKCNKPJ2HHZlRdIIHRtlElKQ5tVJ51NIl0ZboZmZ0rOBcCiHF8vE3bVdfeJXs lbO5mfrA8XXgqW/yzvkphyW7moVQRTYFHXlHrC4DI/usihXdbycJ+JeGHXI+8T0aXxUd u+1GhxJmhDjxg3fElIcUGNz3itfZOO6ma+xwdMQ8Wp9WxjbzLU/P0vgCcarz+M5Jj3w6 alNTcPbhIuaIkaX3bXecQzEwKY9pXuQ0VQvzHeOy3wBv5EIO7SsKz6qtX/qikOEHE8KL KvRg== X-Forwarded-Encrypted: i=1; AJvYcCXwSGeYF5uhNpb5aAsr6yZ3eisROhBobCzA5iAO/8CSl8ucUDqVwkt0CHTB65SsuCK9NkDQIQ8=@lists.denx.de X-Gm-Message-State: AOJu0YwONAh5DAMeIqnvhivmSE5D1F4tyF6YjoaaH/vCqytQny/x6K/3 DPBIhsMP2l9p1IqsgDXIjXImIYZ40ZTt7D69X+qpG53pRasTwXMj4Y2QvuI9ncglB1o= X-Gm-Gg: ASbGnctCEDrIaPx0/4/9t/SC8h7jiBfYOzrLuD0ribEyrYX1YTKziod+45TC3aSW0pW scyRuX7Pumycsf96oVmCGiHmjdoOV7lWIDpH1mKObWGjK03e6phrm11YmblGmHqNX7AFkEHV/MA ohAyyjL0lGT4K0LL5DUvS9TqXGhCv5F6et1iff4pdDQw/ipoprq/GP5iiT51rQiMCUPHf+vNzkI loEyoWjKGY6vtTxrgpgazBsfNZRCXpSyXYBvbX8V8Hf8tEx/Rc8jk4lLP7cKkh/vYdt32oSZptz 9ycihgvtmaAVsvlesN2dho+ZORvJ0+Ld8sMos27tMxHs/0zvgZpAMz02JZCfefKRNqJ/5gOaIBg v390Mw50QRcF/yayYJwNaYXE51rfjOA== X-Received: by 2002:a05:6000:2407:b0:3a4:d924:e65e with SMTP id ffacd0b85a97d-3a4f89df89bmr4389197f8f.59.1748681111890; Sat, 31 May 2025 01:45:11 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:11 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Michal Simek , Prasad Kummari , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 09/13] kbuild: do not overwrite .gitignore in output directory Date: Sat, 31 May 2025 11:44:37 +0300 Message-ID: <20250531084449.4125187-9-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 156e7cbb3ef5 ("kbuild: do not overwrite .gitignore in output directory") Signed-off-by: Ilias Apalodimas --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 055898935372..19fa77953d2f 100644 --- a/Makefile +++ b/Makefile @@ -519,7 +519,8 @@ outputmakefile: ifneq ($(KBUILD_SRC),) $(Q)ln -fsn $(srctree) source $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) - $(Q){ echo "# this is build directory, ignore it"; echo "*"; } > .gitignore + $(Q)test -e .gitignore || \ + { echo "# this is build directory, ignore it"; echo "*"; } > .gitignore endif # To make sure we do not include .config for any of the *config targets From patchwork Sat May 31 08:44:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 893574 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1403963wrt; Sat, 31 May 2025 01:46:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXDv350kxR2OvYVsDXNgojmff1CuHSmytuRw079DQT8pT4r9PTlMB+rlJmyGuoKqsXUuRWJ8Q==@linaro.org X-Google-Smtp-Source: AGHT+IEv4CeULIPH508/QpTlS6j0m6DOd8HmvRbbP/VKO+CB5A5X2763TicvUrRoSWTDb36wlreD X-Received: by 2002:a05:6000:4310:b0:3a4:e6bb:2d32 with SMTP id ffacd0b85a97d-3a4f7a1ce35mr4937517f8f.22.1748681181391; Sat, 31 May 2025 01:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681181; cv=none; d=google.com; s=arc-20240605; b=Dr7K+nzszoagftLqUkHSIMSyB/9UD2bq6ST48aZUx+vffFB596sNnMsWJw/T4g8iAI OMbMX6voOA8EJ9nJ9CdW7q7MA0/juFUc5xGx0CARw3yQeryL9d+BEQ0EW7PFfcmR7/Zx 1ZHoMWiCrc7yiRJ/dXjUvQhdrAsU5N4OSsZ9f91k6wrcpVDTZTaMwNOCiW0VB5aV1jme JicDL6gINfCTPy9ILhWHnB0l6D/KJ0oQG5AR51bGg04piR4uzazWhB0ZoGVw/0G7Q1Dw AjysJTtZsOq5NhCWDfDOt4Wkyn5Ic2vDca80d0TzoK5s6+cgfnybk0P9/XaYfOVthpph m2cw== 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=hk11AmUhtMKK2sGAi3ks1yN2Tbkx2BHGdAuHecjE/w8=; fh=poAd8ShGWXMAMSSG3HFZTzeU0k9ZN6RjKkNqEQuCg2M=; b=Va+Gi/jt3u5ziJiPznSEA7zqXLWSvomWkAApoqN98efZ260XClTd+xpU8feEjY9M2m 4zJuqXujm4MnJfQ7UC/ZUI0qzHer6jqF31asyGSTJ+LmZRIaXHYQYXifsv98t2XGtZgf LKPGIJcoi9ab8ZZbUMnnZmFl63v+bYqaJqF7C/HVUVdVyjJ0i1w4zVROqL0rZ4fUyRcQ AXhP2oL9N883eUaK8E0dyoURNuru6Z4SFbWZWORVZCnQj6HvZUlC1X3Phts+cViduO9x X9OmM6JF8bjGwpzxfidHtJRdG/vGDGY7MxZUVeeed5E+g85d2Qve9kqNa8GUX0XtqwYE PrAA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CHXkuA9T; 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-3a4f0095eedsi4185401f8f.723.2025.05.31.01.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:46:21 -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=CHXkuA9T; 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 9FE4382CB8; Sat, 31 May 2025 10:45:16 +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="CHXkuA9T"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3BC8A82CB8; Sat, 31 May 2025 10:45: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-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 40BCF82C87 for ; Sat, 31 May 2025 10:45: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-x42a.google.com with SMTP id ffacd0b85a97d-3a363d15c64so1855572f8f.3 for ; Sat, 31 May 2025 01:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681114; x=1749285914; 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=hk11AmUhtMKK2sGAi3ks1yN2Tbkx2BHGdAuHecjE/w8=; b=CHXkuA9Thnh5mrI3TE0Ee2kYcMoyQNCu6pVcRjPJTSNh0/L16vzqJfC6L+Q1GA6L0+ RBT/+4zEsKTMsgtezUmpDbglbZXrtd/a7NRUZpVsIeEv1GQeQEJVdS41I5Wgr2rbUBcH dYYsk1EwbPgMJu4FKA0Glxbd6jxrjTWG+xxww7PhqanXk+umRG1gcmK/xB9u0bilukfZ mzg2hWXmkdzgZ74D+OYPhUTqgtX4vA6fWIHsJdKjG+FDElw/PXx/S8AC+rQcNWUMOsdJ aSMqUMozf2wfd/P0cBWBA+T2pqsgM13GC/5eCZwlWjflcYwU3sIsgUiTDKNyN5zpjZJn 2pIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681114; x=1749285914; 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=hk11AmUhtMKK2sGAi3ks1yN2Tbkx2BHGdAuHecjE/w8=; b=YJPOAgmDsAhqTpcUpD6uUTcVH6fM9G3euB2S6XhVfTmmTF6HK09UBt9ft4w7ovvMCi KZ1wX+gTPk4bIpTGKQ/oiDciBwFNh/XfCrTHkWQU7t93lyjNDz//eVSrVa/65OlOKT5y G4KwNGaL5r8VCr4B4Z8GzdeKzt1cvphWnVSWHXiA+DKm3QE5OL4qkBQVQXMYseZR7h27 xTdb66fQehwM8ji8tRxET2sJkwIxweNg4LlEzLjfJUPpHfQAbrZFIn8Rdf79qPMuOzyg 7L5iDvCb6GUlZxPYsSgmCwZ6qIPjlArt+/JrdM9YxSC4OGLJucExN2L5sW+0wZREv9D+ x+cA== X-Forwarded-Encrypted: i=1; AJvYcCW4esC4uTu5obRu+4Rk9tRzX2nJ71MRNo9c6oW6cIiJ0hWwjci9WDZoPCrahSou7CbKHQBy0pQ=@lists.denx.de X-Gm-Message-State: AOJu0YyfUorH8ztXVdTNV/wqThSTVWJrSjNSj5JYkaQRkI0S7f/HOa/X yhb64IbGaqwCu/2IS3/7BSTha4TyNta8URGlyRdAMGhbBGRH5VE4aowahowMQyezMFI= X-Gm-Gg: ASbGnct5/WEOB/eLO9p8LLBu81/QBoYlDZToEUjeNKp/SAcvyViUDiZW5J9ce6zLn4b WLJV6c5IjcGaSvAgK/+qO2EExk+5mzQDhO/cpUCNOBErClAQxkFPeqKe34se3zpe2QNP8UesrAc 0Dy+jO9y1lNbeTu3oZLFuIrwYHo8RKTGgP7knJaTdDYpoaEdP7zmTWzNoVWTlOJ8VnQAf6fo1cd 8YyJHBjtOFzNOSHVGdN85n19C4ziHVjGMyaLsZl6hq3v9FOqt1nxqJtPqBW3jOkx/GDondXDN7S e4xCb11D4ZkjHwrIk0OGrEBkmDlxD9lgqsL5QRgwZf/R8L7J2sgXsrUrdVYd1NNTk4lGDxz+ijl WDtDvaSxknKQMdqkzW9IrBp/ocx5kPGNliz5M9tDa X-Received: by 2002:a05:6000:420d:b0:3a3:7753:20ff with SMTP id ffacd0b85a97d-3a4f7a36f76mr5238544f8f.35.1748681113653; Sat, 31 May 2025 01:45:13 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.45.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:13 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Prasad Kummari , Michal Simek , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 10/13] kbuild: skip parsing pre sub-make code for recursion Date: Sat, 31 May 2025 11:44:38 +0300 Message-ID: <20250531084449.4125187-10-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 221cc2d27ddc ("kbuild: skip parsing pre sub-make code for recursion") Signed-off-by: Ilias Apalodimas --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 19fa77953d2f..24d6cd8fd7aa 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ undefine MK_ARCH # descending is started. They are now explicitly listed as the # prepare rule. -ifneq ($(sub-make-done),1) +ifneq ($(sub_make_done),1) # Do not use make's built-in rules and variables # (this increases performance and avoids hard-to-debug behaviour) @@ -176,17 +176,18 @@ MAKEFLAGS += --no-print-directory endif # ifneq ($(KBUILD_OUTPUT),) +export sub_make_done := 1 PHONY += $(MAKECMDGOALS) sub-make $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make @: sub-make: FORCE - $(Q)$(MAKE) sub-make-done=1 \ + $(Q)$(MAKE) \ $(if $(KBUILD_OUTPUT),-C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR)) \ -f $(CURDIR)/Makefile $(filter-out _all sub-make,$(MAKECMDGOALS)) -else # sub-make-done +else # sub_make_done # We process the rest of the Makefile if this is the final invocation of make # Do not print "Entering directory ...", @@ -2549,7 +2550,7 @@ $(cmd_files): ; # Do not try to update included dependency files endif #ifeq ($(config-targets),1) endif #ifeq ($(mixed-targets),1) -endif # sub-make-done +endif # sub_make_done PHONY += FORCE FORCE: From patchwork Sat May 31 08:44:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 893575 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1404002wrt; Sat, 31 May 2025 01:46:30 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVHxgaiGPsWvWPdb5uILJI3k0xOWkzMqV7In/IfO4h1ho0XBsLkDzTf3VKfF3MOo0DG2AyfmQ==@linaro.org X-Google-Smtp-Source: AGHT+IEHvbg1hxR69Pmoo/HEnfSPJpqE7EQUGEyACIr3nDzhQxyohHJ4xJp0BjjLjBCIkqExchAa X-Received: by 2002:a05:600c:3596:b0:43c:fdbe:4398 with SMTP id 5b1f17b1804b1-4511ecb9ca6mr8787515e9.6.1748681190439; Sat, 31 May 2025 01:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681190; cv=none; d=google.com; s=arc-20240605; b=jd+/1oip1O5VfEHl8kbvTjCDjOZxtRmaTomOSnWYpPoj+Gzi+MgpXHb7LZk7DOOU11 se4rvZu3JCsgnvdKLwsUwJwD2LiuPoaWIstO8B73JXRTFWVHRSWNEXo9z2Xv9334Fw/5 sEmHA/xcvdbI+JLChGbkCmdDcTh0eSr79efEm1thKWtEv8Zk5OnjE8Q8/xEvQav8R1je JBdwTBm9u0pKMG1s4EMapjCxrxcUCgAwIhdGTbyVaUT4HBmvQZkELqrlqzju5pQksyhN o+LJsC1wGCJJCBUTEhy3OuHi0Y9qmMKbFbCdtn5DaaFmm3qU1dcqWVw+jHQqQXNrSL3z eQjQ== 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=JTyyT1/gq7Vm00i/X1rgzvZvZDeRTupa5lCBEkr92hI=; fh=FGtvgjncTsmPooSVjmJjwXzTExeys4TpyTlQ5Ec+2mY=; b=C+nh3ys4sHTJADfveeG8Klj5J5aVpS5+uKscImwDLyqMtEWYrUhfy9PQTwgEGbZtlz 1QkVRZlWC1x9M3y81y/qzV+rAIUqS9YQNwazWdqwvqRcDCAJM81TXeTcSeuMJYeXxFDR 9RKVdX6QooBn8RcLyfDw6jcASW99KYkyWYGezmvqPcVqhkhe0Nx9Xr2X9CxWlPjFGXQW ZwigruRie0flQaU72kPvY4UZ7J2c/z+pHbdzL/DUyPVbwAKqNyNEQ8WfwX/9mK2sWyY/ 7OPQgFP7d0bamjrGQF+Pg4eUl093sQ1SmHwqD4y89OJ6umIAkRo/kd51PGbJCmu+bXuC rSfw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VcGYrYOl; 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-3a4f009b3b1si4248845f8f.803.2025.05.31.01.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:46:30 -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=VcGYrYOl; 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 E659382CC9; Sat, 31 May 2025 10:45: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="VcGYrYOl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F230482D17; Sat, 31 May 2025 10:45:17 +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-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (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 1333C82C15 for ; Sat, 31 May 2025 10:45:16 +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-x436.google.com with SMTP id ffacd0b85a97d-3a375d758a0so2314158f8f.0 for ; Sat, 31 May 2025 01:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681115; x=1749285915; 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=JTyyT1/gq7Vm00i/X1rgzvZvZDeRTupa5lCBEkr92hI=; b=VcGYrYOlJ36degfuLmoDRuGIgZ5ogjiRIYTA338NM+TZutC/JXsSvzVcrCq+pNGZCD zar8YRsSIvXUQeZxfIk0NPwTpj3Xm0vmHE6f25oih7cBdVRoAlEPhdHFDgrCY89bQxno a+nGEBk7jAFSPKIMO+iQ1zQE9TbNL8P4txdX+QJsa1SOfao6nM2v5k8K+y/lzQzsjTw8 YPeWYUmdERjOhQPnDqeSwYL5ZaouW5DbrSsJVM8Lw5Zpiksl1DLsuzzBh64BecBbyNIk YPl01MimSU3a4AESiLAhi6G30zsAgI4o3JEX8yy/y29SatdEYmgxLtjG42i3ci+H3bNL 9yKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681115; x=1749285915; 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=JTyyT1/gq7Vm00i/X1rgzvZvZDeRTupa5lCBEkr92hI=; b=gHTfr+OC4fO9TRFWnIlk/HniGp9dTetAs7BmEqE8X5maHuE0OZE8b9JrovIWDFjYKW Bf60kNKMESm0a9baZEWBeco0UYujpGdXbtoszqE+0ObBg/qbr6JYZatLWHE/xDnoqZHl ouy3TaaNgtiVnhJ8Q5vkBCKzNtThBsQcZcD/qlw0bzGAWZBV6acl0FoFbhUrhhL6udjh SKMImkf3IfyzsVrIO5LUcRJFT94bCDUOm5kbCJHvloRsTh7Rusw+dHZz6iGVWvHosnZ9 hl3oyi4JyIoMUqBTsDXn8PEyvZ49m9Y+q85dTpTm/mzPuiZaMaGpDH9x26d+fV8jzSfO tQiQ== X-Forwarded-Encrypted: i=1; AJvYcCU8+QzyjayAKo1nUZbxUOX55wHTpwT27hmrt5TAdSJdcJJJrQdrJqIsF9rvj/oLJ6TuSLh/Pfc=@lists.denx.de X-Gm-Message-State: AOJu0YzZmXVdt7XqkAyy/1C0hZSjylkpSxG34fVs9Qagk30oyc/lhGHI kfvRsmfaap9NZTkyILmwQ9KgprVh5V18Il6cjG2N8m1mhteeroS5K2kPoNmSjqlTuWQ= X-Gm-Gg: ASbGncuLGQ1YLjuKPCzpdB8bWpduTJJM2Wt4g0brES9MHK5/pK8XNxP0CT1Zp/7q+74 ShnhfqQkv5AY5IZloZ3CtBmjh/8/Lrq59TAjjkiHrkqdaJ/h0xWDbQVaoSo/RS00NiSdJnWdvTb vtuoO+DxAR8P+X+GqeeH8bie1oNnOYFJroQXSnm6Nnk6oRm4cS9C/uzg8ChyJc51xxww+O22DmC pc5nC2F7Vaze/sXIzWVlYMRPBv+q3GsLmTEQyGH6hHqHAQqH5d73TkOkL6w2M3CPJbmIVKtynWz biTEWQgW9iySg8g1f2Ra6SoyiTUAJUCjD3d+uNcGcKh2b9Drmt9tvCC1VEFLc6ODiBO5LOZ0oXc BKk3oxEJe+G5GhTY5BEA65pqNh1Z74NSongsTX1Vo X-Received: by 2002:a05:6000:40ca:b0:3a4:d8f2:d9d with SMTP id ffacd0b85a97d-3a4fe3987efmr1021369f8f.38.1748681115486; Sat, 31 May 2025 01:45:15 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:15 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Prasad Kummari , Michal Simek , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 11/13] kbuild: mark prepare0 as PHONY to fix external module build Date: Sat, 31 May 2025 11:44:39 +0300 Message-ID: <20250531084449.4125187-11-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 e00d88804814 ("kbuild: mark prepare0 as PHONY to fix external module build") Signed-off-by: Ilias Apalodimas --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 24d6cd8fd7aa..03f88e736a61 100644 --- a/Makefile +++ b/Makefile @@ -1739,6 +1739,7 @@ u-boot.elf: u-boot.bin u-boot-elf.lds u-boot-elf.lds: arch/u-boot-elf.lds prepare FORCE $(call if_changed_dep,cpp_lds) +PHONY += prepare0 # MediaTek's ARM-based u-boot needs a header to contains its load address # which is parsed by the BootROM. # If the SPL build is enabled, the header will be added to the spl binary, @@ -1950,7 +1951,7 @@ include/config/uboot.release: include/config/auto.conf FORCE # version.h and scripts_basic is processed / created. # Listed in dependency order -PHONY += prepare archprepare prepare0 prepare1 prepare3 +PHONY += prepare archprepare prepare1 prepare3 # prepare3 is used to check if we are building in a separate output directory, # and if so do: From patchwork Sat May 31 08:44:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 893576 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1404033wrt; Sat, 31 May 2025 01:46:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVcCnZ5RtirHa9EPXpa2bu+4CQL5LJrjZgb2q8qdOhkrUrmQKn7aWjHEePEOgAfTtB+x7i7Tg==@linaro.org X-Google-Smtp-Source: AGHT+IE8oyBTDbPdUUMuJ31axM16uZTW9iWX84n6s8aZqOim1H00DUALF2vhvW9wXJEp0DYwUOv6 X-Received: by 2002:a05:6000:2dc6:b0:3a4:f5de:3ec1 with SMTP id ffacd0b85a97d-3a4f89a7b9dmr3785998f8f.22.1748681199422; Sat, 31 May 2025 01:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681199; cv=none; d=google.com; s=arc-20240605; b=DMnturfhfnTNPBJ2PLqiGwlfp7EHyVwdDkIQC2fp7qyuW7cn2KISu9ErcFr8PF98qv 111UawzVpQP5xNwoY6eNLnXSfQtTC6asckUEovpCxiuQE7PN180f1fw4oFnrJRt5DR0C 8yu+lr5Wi0P+tQvWdF/KCbCn3rDw0E0hLQeEW2fJrvslhIqCnKS9e+y03oO+u/slYWJl pTdUqzo8J0zt760DEB7FFqbAxymstghxLusgo2F4J7OuBb44cKSRGjOH4ctG8FKPOp55 Ul/lH87It4H/t6O3kCM9Ppt6gqhA3sYoWc4cnQr5KLJnwFdLD7p6X5cBKe72f1ZRtlhI Ze1A== 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=sc8e+7YgfbyQYptl1FbQhgi9+8kDVzuVjHSK8sU+Xzs=; fh=/226IX0WR6GKl2Nnxf3EFdI2tAS7TJlLOzSYH25phTc=; b=gCn9zIsQ6933AzlJvlTFNVvqixYHh/TvEwHBQ5ojiFzpSXD2EwSj7pl/umxfcdbmZn S4IlY3LpkRXQS+EDRn7zS2mpLgBgJa9FiU5RiXIvoyhGG7+A6uM5lLJZ9JmXzqwRVsXv Lgh9srDxc5tKi+HjI5xe0pNaWVdG0oirwGLT3Zv4NLfvmu//+DWAQnA57G3TrZv0Pm6c o4Hug6HA0Inbsbv6WRUEIp3aWwuWamQgrTDTxT97zTI5qdAtAn4i97pkse+7qvIbW6Sb XEJq7zc6kkzlXyq3vOoDEssskVJQAWfrbH4TvL2amfTAQTFOBdUCrUfR3n8tlHNZomsO ziIQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Z4Y9RVY/"; 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-3a4efe57ff7si4158182f8f.137.2025.05.31.01.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:46:39 -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="Z4Y9RVY/"; 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 3C7E582CB9; Sat, 31 May 2025 10:45: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=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="Z4Y9RVY/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EE2D982C87; Sat, 31 May 2025 10:45: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-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 DB7F18003E for ; Sat, 31 May 2025 10:45: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-wr1-x431.google.com with SMTP id ffacd0b85a97d-3a4f71831abso1539317f8f.3 for ; Sat, 31 May 2025 01:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681117; x=1749285917; 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=sc8e+7YgfbyQYptl1FbQhgi9+8kDVzuVjHSK8sU+Xzs=; b=Z4Y9RVY/0HthMGyYcwtQjONC9B+IXre8LTFjWTmFX8jxjmX+QYghLvOqn1h238bkz/ kn2OXdIMJUW+3ixIZd7as8o4PCG1Bo59d3+8Llsz22zgImbqMrJPwVCZtFWzLFhocfSB d6Z6u6j24+fdg2+Px1zY3xRo1+XTQJdLUiZyyflpU1Iv1puB+PtLgs6iQR8LfCZYWzHv 1G4EZnpeFHZpK8mdBfdBQXeIRKba4ZMw2RTTXrQDSsWjmqegjJCR6OvV6azIclyyaec8 RK0B4DwYS6827Lblu3ofvtb4TXIQtI4S2DdT0IEcO1DepQ1qDcjbGqvCB9pQ9hJ79szJ mvEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681117; x=1749285917; 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=sc8e+7YgfbyQYptl1FbQhgi9+8kDVzuVjHSK8sU+Xzs=; b=lx5Z4n8hEmKjLukSuPFla9e42tVNkpaeIRIMdFIXKk7drsWo3hr8264A7io/G50BJQ VAuWxdxG3G8eU6m5JAkTkK9JFxj7GlvDe+se/nMgP5noRBMAUBvPLtYZpiFuq2kn/zI3 Xu7v/uvLgmk7E2Latf9ST6i8k7V5iM960Lq8cwlMMShBwRXpwpm5pdSEz1utJd82Z21s iDRBcQihzGRGstAvIqo+cr1HMOVYmvPWt9Tz2GVcvfPeph+Oj7ywhD+lk6C/WEnKwyEz 1HJ3DK4wL+GktV5+QTpV0JeBWps7AwrvGnk1yhWMh8JcHX7RX8Hhui24Zt3rrIvBzznN 9XbA== X-Forwarded-Encrypted: i=1; AJvYcCWd0QskGJn7zJuq1k53raxUHlEv/pU6tNe7z//mxix2Ik/e8pTkLS/suE+qPw95X78i1ucaHK4=@lists.denx.de X-Gm-Message-State: AOJu0YxH6XUUFaHhdzmI75gSLVJeYC/GLO5hOJ1HjwvlvDfTewWNCtiK nD+qpjwkB2AZSLgbXFIhxxnkWRyCE3BP5cFK0SFgWv/IYpy7Nm4l1AiQ52qKZV6QMyQ= X-Gm-Gg: ASbGncv4faYSqUEW1DE3iGJhDOTYfE/iAeI2czTq2QTgerukP/g3MIKWtAacONX0UyB P5y8JMHTTapB2DxorFLkkdBDgs1GNUDLX3j1WDAY1p+Jf5gZYaaDU4Cwih2zYualzUZ209MnMr3 5cqkquBfmkzntFECWJhVM2KzRAYNikXOiArdmqe5crk3NZ67epHwdat+CgoxXPpWPnn/VpIjzaE bdmJ7IaRXXLRisPrIOX/ImOhbHFGj9WbvcGlVb3G+1rX/MZS+9s/eo75J9jo8KMsPF60/9hIeoO FiRD21dY1DLDe1fYr8//58uYpb/SjjDAEsQYDJS9rD/csMSjhER6XKBmlLwR9je6pbXDpvKHjIU YirtbyM7qUOmAqQhmZga0Ob3vWQ13qA== X-Received: by 2002:a05:6000:3106:b0:3a4:ef8e:b31b with SMTP id ffacd0b85a97d-3a4f89a7bfamr4307504f8f.24.1748681117328; Sat, 31 May 2025 01:45:17 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:16 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Prasad Kummari , Michal Simek , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 12/13] kbuild: make 'archprepare' depend on 'scripts' Date: Sat, 31 May 2025 11:44:40 +0300 Message-ID: <20250531084449.4125187-12-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 059bc9fc375e ("kbuild: make 'archprepare' depend on 'scripts'") Signed-off-by: Ilias Apalodimas --- Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 03f88e736a61..dbf1edc39ac4 100644 --- a/Makefile +++ b/Makefile @@ -1922,7 +1922,7 @@ $(sort $(u-boot-init) $(u-boot-main)): $(u-boot-dirs) ; # Error messages still appears in the original language PHONY += $(u-boot-dirs) -$(u-boot-dirs): prepare scripts +$(u-boot-dirs): prepare $(Q)$(MAKE) $(build)=$@ tools: prepare @@ -1979,7 +1979,7 @@ prepare1: $(defaultenv_h) envtools: $(defaultenv_h) endif -archprepare: prepare1 scripts_basic +archprepare: prepare1 scripts prepare0: archprepare FORCE $(Q)$(MAKE) $(build)=. @@ -2486,31 +2486,31 @@ else target-dir = $(if $(KBUILD_EXTMOD),$(dir $<),$(dir $@)) endif -%.s: %.c prepare scripts FORCE +%.s: %.c prepare FORCE $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) -%.i: %.c prepare scripts FORCE +%.i: %.c prepare FORCE $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) -%.o: %.c prepare scripts FORCE +%.o: %.c prepare FORCE $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) -%.lst: %.c prepare scripts FORCE +%.lst: %.c prepare FORCE $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) -%.s: %.S prepare scripts FORCE +%.s: %.S prepare FORCE $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) -%.o: %.S prepare scripts FORCE +%.o: %.S prepare FORCE $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) -%.symtypes: %.c prepare scripts FORCE +%.symtypes: %.c prepare FORCE $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@) # Modules -/: prepare scripts FORCE +/: prepare FORCE $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) -%/: prepare scripts FORCE +%/: prepare FORCE $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) -%.ko: prepare scripts FORCE +%.ko: prepare FORCE $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) $(@:.ko=.o) From patchwork Sat May 31 08:44:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 893577 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e0d:0:b0:3a4:ee3f:8f15 with SMTP id p13csp1404056wrt; Sat, 31 May 2025 01:46:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVvnrI1R/ELZkbbEiHFbHHoFQJ2VrF6hVqnP7QgQIrdwUXgp7K4ehB3wGjr/g9ZYagaI1jVWg==@linaro.org X-Google-Smtp-Source: AGHT+IEvAcGW8/jsSONLp28jcL+qVI2/88ke8GVWA//ofAeJZu41JrCg3y9UZ2jgo0q/o3a83wVR X-Received: by 2002:a05:600c:4ec9:b0:442:ccfa:fa with SMTP id 5b1f17b1804b1-45121fb9373mr10249465e9.27.1748681208496; Sat, 31 May 2025 01:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1748681208; cv=none; d=google.com; s=arc-20240605; b=VlNc0jdLGfvZGRl21PyYPWGhAVYyucOlno0zXb+TNJiAAtCv7lon2CIwO7JKP8kd0f vgP+wUHUQR8zRHaszRnSrGSCAkb7aYIikI1Es7ANW6An3/s92pS+LlRRniUocJANQcWV jbQJZHuqpCUE1rApXhzuE/tP06nPrsPW0Zc/zTNInv9y13X+aS7Guwl0We97x/lK5K5U D5E9OGttuQ1650DFnjQyonCJQEi+xzcbS0Z3UkLQqGTEV+9geRDwT91c8va4c33+1+Sd p2Dc+zCecLi2DsbBL/xE/FGVFHqABbInsUBWLyn0WKswCj/zqxLj0cqXHhaIWKg4CDj4 CazQ== 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=k0bphLIhg8HqKko1DfWbWx6s0jqmKrqePAs571WITnA=; fh=FXpwUVlwfvg9AQVjSo9zNzrkvG8n3aU40OwIMY214oM=; b=AtqcBNq38T7jCbfFekZMiNkiaPK7rAQgPa1bo6kcvinNXMkoUM75gkmUJHv+cUeeVQ dl7AgxYwTYrz3VYnvaVVyMZL0A6i+Ou8guwJxI0lrBeW+HReMZsallOo4p1Ov9Vrt5X0 yd6hlzLZzH7fBccHNcVv30n3SiWTKwBMHYCTnGucJypj8qS3LM9Gscy3/AQq2lATb6cf FTYUOj3pjkPMDPwnCRTox2Dkm1WWd5ji4eJW+7KdU3UkZN0JpE3gQXok/y9Rh1GAT9F9 IQVURajqkKdYP6XIYpKV8Q922MN5J7e3caCVC0JR2xX2Tw6KSDENWaJT7B8HmZKGXt8N VBCQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TEyQksXm; 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-3a4efe5bc70si4124986f8f.225.2025.05.31.01.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:46:48 -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=TEyQksXm; 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 8202C82C15; Sat, 31 May 2025 10:45:23 +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="TEyQksXm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4D92682C15; Sat, 31 May 2025 10:45:22 +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 64CD38003E for ; Sat, 31 May 2025 10:45: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=ilias.apalodimas@linaro.org Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3a4dc0f164fso2619551f8f.3 for ; Sat, 31 May 2025 01:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748681120; x=1749285920; 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=k0bphLIhg8HqKko1DfWbWx6s0jqmKrqePAs571WITnA=; b=TEyQksXmFo1AmkXWkB1xoQKR9pXxgwmHKI5shuIJIoXUjPcLWNeT+oPpiIEBQr4US5 ccLNP03g3gToklTl0W/syHwggnztzanmziZWJaQjlavdBuyorwO4TLI8y7+rE2W7DuEQ B0E0gPGvEL4O5stGTtIeZWk1t5laMB3cA2U3dFeKpQeKEZMVynKXXtw7Qu3ZB4+2unoo NapmIA5I8+/KYtXuaxFdHyJhzhaVrp0gf7XmE3kpZyWus8jDvNWc2GYkSFPZYONNOh8t sHqPAjzlW/d2QQ1FUcRyo/Fx2myeLuuZKwEWH1pMoj67ieOjG3Htj1Xcwe+trKxX2OZx 24fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748681120; x=1749285920; 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=k0bphLIhg8HqKko1DfWbWx6s0jqmKrqePAs571WITnA=; b=GZSD2xozgKBzkIcsyfn+8HO0j2ECSt61y8FJ9nFAPoZpjXBO5UAQYPXj/5dyJ/cwBq 1lN1wyxCK6Hsvxqd5vW5Ty7DSEsth00CDVNqnxOEyebd65E+bRYFLraAzdQ+O06qVDEd XFI70+8nbtw/n9FOGZLcOmYCN7KuZsqotAOC89WaT49mC6OIknCCQxOz4WZSLZBWCAqI owHdyKxHBhcCbyU4mRIIaE37Xwiz4t+NR5YbwzAxtgk5qk1ubATzspF1d4nugpUjIK/R zy3rENCUhtsOXjQDtG9YhToBJOEX9dke8khOehcSrVT0Q0aOzE3nm8kg4xVk8r8gmScy cOfg== X-Forwarded-Encrypted: i=1; AJvYcCViIEHUEY3y5anrijt7zoq0rVfC7y6ExT9gf2A25Df+BevpBrvNTNRbk0fzUXzBVoPYEKH5vhA=@lists.denx.de X-Gm-Message-State: AOJu0Yw/hbgL5F+ro0MA7zsK8lrQ7FZmIHqWR30MnfDjM54jcwjDNtwo iLYLFc7cYfEK3lwjOYvJSmvYECgK4tvViyRWXZ9C13C3YRz0sqRl7PJBBYWsoVyXHJY= X-Gm-Gg: ASbGncuQb4L94bezc7cZhaoZ7tua3yZTilym66ZPXbasmihx7Spha1Dt+ZNBudWUpfr 7+J5ddc4lTCRkltO2WzPek8G3KDzT2laVRgw468H5SbHlDijXwWvlZoW3EnBr+vEbbMy4ogMpNi BtO+Lss36lyUhzZDVr0NsDQ6dyukjz1DqxMijd5txbcNSfepfGKbzAcNwTPZNN6Rn4qipJD+PC7 UethZTJ7ygSUftjo3Ogs+MeFJuN4//TdV5C+vVPvmj3IjH+WjCvlRd2QaURvjOD2Yk8VaDjdCKN hAU5+jRzxokDB3B5p7k2QwojQ0K9ouz18aTbqPsxlTvSBWQJdnRebEHs3kIV4pA+iTV/a24clDP ebAZcu71JakiUvynYEBYq16ks9GEKv5qwISc+nJuCfTeHt2dOTVw= X-Received: by 2002:a05:6000:2409:b0:3a4:d2b6:3121 with SMTP id ffacd0b85a97d-3a4fe393626mr921111f8f.32.1748681119883; Sat, 31 May 2025 01:45:19 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a4efe73f3csm7153986f8f.42.2025.05.31.01.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 May 2025 01:45:18 -0700 (PDT) From: Ilias Apalodimas To: trini@konsulko.com Cc: Ilias Apalodimas , Simon Glass , Marek Vasut , Michal Simek , Prasad Kummari , Yao Zi , u-boot@lists.denx.de Subject: [PATCH 13/13] kbuild: fix single target build for external module Date: Sat, 31 May 2025 11:44:41 +0300 Message-ID: <20250531084449.4125187-13-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250531084449.4125187-1-ilias.apalodimas@linaro.org> References: <20250531084449.4125187-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 e07db28eea38 ("kbuild: fix single target build for external module") It's worth noting that crmodverdir is empty for U-Boot. Just backport it to make diffing easier Signed-off-by: Ilias Apalodimas --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dbf1edc39ac4..9b4b686d9467 100644 --- a/Makefile +++ b/Makefile @@ -230,6 +230,9 @@ ifeq ($(KBUILD_EXTMOD),) _all: all else _all: modules +PHONY += prepare +prepare: + $(cmd_crmodverdir) endif ifeq ($(KBUILD_SRC),) @@ -2503,15 +2506,12 @@ endif # Modules /: prepare FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) %/: prepare FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) %.ko: prepare FORCE - $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) $(@:.ko=.o) $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost