From patchwork Wed Jun 11 20:24:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 895536 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2977533wrb; Wed, 11 Jun 2025 13:25:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVGrlMmH/w0DrSApg69dHH+QAiYbnB23sBRi7QFe5Tvjt0H92vfP8uCZ4I3Vzfod9pUWV6C2Q==@linaro.org X-Google-Smtp-Source: AGHT+IHr/+U8HAaKj6tL6QbeO8TOlYPbKLDp/SCSe/Iurbw6EBftaaPnp3zxfJRIYmJrG6l/QjYH X-Received: by 2002:a17:907:2da0:b0:ad8:9645:798c with SMTP id a640c23a62f3a-adea37afbf1mr95273466b.51.1749673510132; Wed, 11 Jun 2025 13:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673510; cv=none; d=google.com; s=arc-20240605; b=SkXlUvXQjjZHSLkrNV5/5s2X/IkuvkAMsykKgVCyziIgD7EJ4njbzQMyCky41bBRV/ 5HHa88wfExr/cD7DH9i/C01WvvLHsNEiIQQhxULhiycFHm6AzhytbZRJi+LYMd0TsFjK f7aRUGsOlLw7xXMWpiG0ZbD1vdhjlasczJ3LUIch9Ib5z3/W1rZyBQvASwkTIb3cNGTU f2wlgJju1gdufi2qgOIe25keSvOkbjRLU8sqR4prYhbmjjYikHBPTlQ6XlplzLGAXWXV jvybNMipo2CaHwc/Ri5Y0E0KHFwJz5AF8YhmeX25Pd+qPaXZNnQRw4wvb39G/4599k7d aN7w== 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=Jjj4S+SXWtWZl1U0074q5WFVEZe2vyUPwWkEBn1UlSM=; fh=3KogzHsB8HSLzH5ykQRNgNIvoivhQBPI5bcoFCAoH64=; b=hHX9ViEY3JNzXIWvNBlL9JfzUG0E5D1KSwN+3Okrt89FpSBpaXElS4+LY7xeswFu8x fjNNsoxyx/mJsYFlZTPkUwT1McXwuqDOASunlHhC0SQ7SfB8vUR1odm0bbCHsHqAm+Vu 77u5I4k6+aA0DcXqx27/PVvKgY/MKVWS8e1RffsJf2pzLpiWhMyVwSWSnyRSAZ2kFv99 Umr+QtRo+mPJnvJZh1aqabDKZhA3mnVu/kSgVbA7Wasjy4Nt6ljZojLSp6DiwxbQmgAu MiGc4KQk3XqlMpoRDCOFi2wFSm5c0pno2P3Bi0lsId/YfTcSPmbOitHT1gi8BYNfRudt R6DQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iQ0vHgam; 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 a640c23a62f3a-adeadb755d4si6768866b.352.2025.06.11.13.25.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:10 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iQ0vHgam; 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 85FE382C30; Wed, 11 Jun 2025 22:24: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=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="iQ0vHgam"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 16715828A2; Wed, 11 Jun 2025 22:24:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 24E3982B0F for ; Wed, 11 Jun 2025 22:24:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3a531fcaa05so157810f8f.3 for ; Wed, 11 Jun 2025 13:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673495; x=1750278295; 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=Jjj4S+SXWtWZl1U0074q5WFVEZe2vyUPwWkEBn1UlSM=; b=iQ0vHgamNkg+zXiHTaPt/xgeCAGR6BGgSf3eahnh1oAECfvzwOEACvNquUMjfW/gb2 LONImJg07M7ERCH1wvt7lemtFay5w+SlFmFwzAyFuRZGV8E1egboAnHpp5S4g+xQ9Ehk eICTQYbhXdPDECRd36VzwVrtN98psfE5XKLHm55Yw6fAKkUD7OMCMCy65rDwtVxc0kFW FNdWKulIMIuG/eI06+ia8CFeBdlWv9nsMhPretk7RMk3nS0HRYrUIL8QUdg0TTYo3qB7 jwMVO3/HwScVnW5LmYIU0WgbkpQ4WOTiUDIrhD3PqB9qvJVfUSpzOGYZdNmeOp5loBSr yd2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673495; x=1750278295; 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=Jjj4S+SXWtWZl1U0074q5WFVEZe2vyUPwWkEBn1UlSM=; b=e82BDUFvsiVqIog0PGfns16y5B2GWUTAt4WUL68dFvImrSAU7B8kmdedgoMLyg7n6g Juna9hmrIucwTuMk7iESErrad0lsilIVHXQS8qlZlziTPPDkFLT+Ch/cbv9kJDVZ1HQK 8ZSwi13YqUIEjtIXsrLQ5m5CmJG4EWxY6TVsPTPhEk+zRbHx8E43kepZ5t32VGoIq8Yw PuRk7RV9l+eWI9MaCM/i1EeZ6wB8pWxMctqLmfufNrpiPTlHCXPzzT5e0xdCNAQBMF8D 8IJsC6rZGFKV3H5pjBJIjjwiGmLQMZn097Aie7e9x56end94ExrgXC+AjbHwxWAQChKA iRuw== X-Forwarded-Encrypted: i=1; AJvYcCXQkppA+yj83JNXdllu8E9jR0T8Xbp5Ao5LRiEQGHR4dTapTmw3//Bib9cUJVhh2boc4oy+o5Y=@lists.denx.de X-Gm-Message-State: AOJu0YyAvg7Z9/zTQwE8O9HIluQw5XgKBkVE00mLwECqVtugoTH4Z5cL VyQtb8E04knDOcu4N8I1jZI0JPxU1x/2ZK59J6NSn1bi/bt4lYkmnlIPLTeRfEWtp2U= X-Gm-Gg: ASbGncuGnzKwXJiCIddTPQcl78oH7YThgDF8aMHU7rUfdI2cPQID1pn14CGxvJRN1i2 eWM1YMtKDW0mjJSh2Y4WS6GOeycXqmEJmscvA03mY0HPuZhKwxDoZbGfhVj9f9MxAWJYijoHZ7K NoJacOon3RDtmukdD5awe1qIGUKgH9A4lEXphpZRDsITOlc9TI6ObG5cHjWrUcDiGnYLWGzIjL+ riEo4fpI7gR5H9xxsepvBwtIwMFrqOaMGieMt+33LSZSm8WnETqm3T0D8T/NMNYKWl8pr5pbA8a Mrjb9h9LIamRb7rAqYKtlSC6BQ1mIaRLFMZ55rx3tWUiwWI7wmoJjHJ0mbMZJgSzmIezrDHx5hL j+CoaydhnBOxbgz59UwzPVXkUebS6SO1DNSKkaFjM X-Received: by 2002:a05:6000:420c:b0:3a5:14e1:d9ec with SMTP id ffacd0b85a97d-3a56075d5f8mr544292f8f.51.1749673495600; Wed, 11 Jun 2025 13:24:55 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:24:55 -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 v2 01/13] kbuild: add -fno-PIE flag unconditionally Date: Wed, 11 Jun 2025 23:24:28 +0300 Message-ID: <20250611202449.2317279-2-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Backport from kernel commit 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 e1ac2d9cec30..6c01ccfcb97d 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 Wed Jun 11 20:24: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: 895537 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2977598wrb; Wed, 11 Jun 2025 13:25:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUbXSSNB3RJGRrqTsRlEsCVbWS4O/A3NsvqgkwD/0ke6uNeCM5k68K+hx9vNsO35htjruq17A==@linaro.org X-Google-Smtp-Source: AGHT+IHBn+bccEl/LnJyCxMCRdhKEDLVnJuzV7dO8z+QYm/hkt9Gg7Y8tE+8y7Nt8xAsOcrv08B/ X-Received: by 2002:a17:907:3ea3:b0:ad8:8945:8378 with SMTP id a640c23a62f3a-ade894c18afmr414661566b.19.1749673520028; Wed, 11 Jun 2025 13:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673520; cv=none; d=google.com; s=arc-20240605; b=VzOxLLeijl5iqeyQUMSTI0Evlp1BgZPtjWLXqz8J24wbEleZ513EYHOLyCGBi3T1pL RF1xeIKrMb7QnNvLwcTwB1w57IpSUM8wKvztpj6ouEFRbZi/DMwTMg8wysHUE38S9jRQ PNRtyWQAY6I7MXlp/1mv3bde6H+s1br5XjH+k4avHSplo9qq7Shd617D2asDpXcdK66s fxd+RSNkQPjJndarMMxa/eBX5BfwdsK0PTCj2qZ1KX3U4Liqb0lTY/QIyy1gN74QYhkv YVwgEr54pcJZ3U46Jz9ZO+rc3LTWRFgGBdL62CG06kUFTw6nR0GNp3REu6Kf6btqKnaK WGvw== 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=jDGt2nD5x3bvz9tRUmRFGWsevxvW3EZZ6SRpWHTeQZ8=; fh=xTV+XUnAJ+lpoMt6P90y0A/fKUAycnalAozCtlPwvdE=; b=EKwXWa4KK22DJmpvHtZVDiBEwA5bJG7rUsAtnDM5ZtB/RuAso0je4+PlFJEofA3mcN Bb3ikvgB5HuUeNuVh5LdHo4asnr/zajeYvXi71Xss6iF6n7CwgMzkf+g6zhgO9lyV13A whgFsLcaRC3pVL4rfsGKDhvA7kcglC9bieMfq5KI7zTILgMPyUW+Sro+nLKDuEMDrwCf 3F0BGtcP6tLy/dhz4uIEawKdr/NPlU9SwuXYXToix7tt5HZdWwLVuJa3HDoltib+vgAm QyIBD9cST/+hC0kpdv7Hp8VxJuQpLY4Fmfkoo/TtrGarIu14sKlmnAj5ge3p7Jn6SKnz +VbQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dMB1YyAC; 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 4fb4d7f45d1cf-6086a5c90bcsi138729a12.92.2025.06.11.13.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:20 -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=dMB1YyAC; 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 390E382C67; Wed, 11 Jun 2025 22:25: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=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="dMB1YyAC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A751182C65; Wed, 11 Jun 2025 22:25:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-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 AFCF8828A2 for ; Wed, 11 Jun 2025 22:24:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3a4fea34e07so195243f8f.1 for ; Wed, 11 Jun 2025 13:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673498; x=1750278298; 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=jDGt2nD5x3bvz9tRUmRFGWsevxvW3EZZ6SRpWHTeQZ8=; b=dMB1YyACJd6EVXCkR5wxTa/2YU3c/eihM+XUWF4s3N2bZnxsVEuNh9JwomLQw4z9nC EU7poRigULw4ks8Eh4fB72Z93FWdKknm72/iOJQ9jF7TmrggYOPj4Ja/6hcjH1VbwJ1P D0jpqX+tF1UTgOoliEllnH+7Pivg2mmgLc9LopCojD9xgdiwv1pWbcuIYdIfQsnl7Cq6 I9ZVPz5cvQavZhVDHcSS0+kgwl9HDY1MmmStIT+CgrXbXm4ThYMM0Ooix01VhJ3xiajh Bw6u0Us837U2GX2CYkyOHfJyLV3uBqh60Bnaf1MYFzXr9QFwriJHSSfPysODg6ml2ogU 9HHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673498; x=1750278298; 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=jDGt2nD5x3bvz9tRUmRFGWsevxvW3EZZ6SRpWHTeQZ8=; b=oU4nzVtOqyopwu2jf+aVnt48PdqYaMxBo7tf3rOiX64LzlGx2fpHQX/ZyWgZMuOAQO XgT2HPS9CpwhmWZNrJ3elHhwHZsKExhl6SXfhhv3Dn7OJeHLHTaNk2o8V+/Z8X9xnesB 79BXoTwDMfGQo2qkk5AyXzM9xHTMBaKHi+B8Nc8ET22bI547D7gonrKPQC5hlYj9fz2k KoT/lY0ZeUM7wSiaf/aaRPJbcwv+awwu3ZCuJZM4x3w9ecS0azzN5LoB/ehKYEtCVsKC 8TVQfGirkD+bD7CtvUP5aQuL5g3oS69lYNZ6eaA1GsUv63bpAKOQh99BAMjQ5KUv8oby DNag== X-Forwarded-Encrypted: i=1; AJvYcCUbP9YWw3rqugj5DZPaeScPbuFUWFnlA6QEcNeN0tQ23+c4EaYdMmV07S5DH9kZR+ycS9NpMRI=@lists.denx.de X-Gm-Message-State: AOJu0Yw6xxm+6/49hJvhGRtsfJZqtKOcXsFun7dRNJRL0algsZo8K5J0 rc1Va01KAqJM7cHPopWEbdJF9X5X49RVOl1iSsTWpfqGEOZCq3iW/Z5qG/PM2YxjM6A= X-Gm-Gg: ASbGncuM1sw79R4QJ7vttUsY0g1aDGGml/QXfAURWo5PRLYQMJN8gNpDGexbiKHx642 Irq2sddyNcq45cLFXom0IBVePSSr6ixi5L3i+p73eEoKNBRaHoGQMFZFLOmzcnFyYKncm/lT0/m thKG6gb6Cz8Z2uuVmb+FZuw3Die/YuknCj3lZfak7a4lV0VaP4hlwmAcNK2wR2Zi4vCCR2pOBGh wHATEOkO23w6Cdejnfg/LOyQchf06kLBAFREUOnU5RXKn0DulfISR71MECqQ3nc+Ryv0s06ms6z vc9HfGniIfF7tIKIaU756zrPYxfwY3f8BFSFs5MAtGw0QPaHhxqLuCFJ0Ls93O34SQa0TSvj4ML vryD/HZsMbBlcGS/afy/9+CGSv7EeW8RWoOd0+lvj X-Received: by 2002:a05:6000:4304:b0:3a4:f7ae:77e8 with SMTP id ffacd0b85a97d-3a55869b507mr3805341f8f.15.1749673498176; Wed, 11 Jun 2025 13:24:58 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:24:57 -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 v2 02/13] kbuild: add -Werror=implicit-int flag unconditionally Date: Wed, 11 Jun 2025 23:24:29 +0300 Message-ID: <20250611202449.2317279-3-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 6c01ccfcb97d..7e1b36e78b93 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 Wed Jun 11 20:24: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: 895538 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2977671wrb; Wed, 11 Jun 2025 13:25:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWSECL84Yt4gbJers6VbPDanavDmjW7C3XV6NlD7Glz7haywHmA0/lo38e7TSDW6AI4ffqiJA==@linaro.org X-Google-Smtp-Source: AGHT+IEVN2gqf5XViFhzIiz+uj3xxKpZ0/NS1NODyrVr3YemKFyLHbFgN8GDKAdo3haztFuC/Lod X-Received: by 2002:a05:6402:1d4a:b0:607:2d8a:9b2a with SMTP id 4fb4d7f45d1cf-6086b387dd5mr148479a12.31.1749673531088; Wed, 11 Jun 2025 13:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673531; cv=none; d=google.com; s=arc-20240605; b=DwCqzKtmPq0Adfog9lUt8wfXUaFfhfVKHqfym8EUH2AIvHIFrJLMtGlRb7AKr5OMmQ kjnnyB1SUFl/G215IjhKQqO+m3/4o/7ntvNQ60GzhbyuOxMKr4lwyKBpWNIDSQ2aJk3+ 6/Epl5QaxTQGwLNOemsAldBWFKKTIDreudx+GqqeAwbMPkvORjr5ahEnQa3hMFyTLXSW X1QdeMHog1qs2jqI4r6WRWLiB1O9rmjCtLjaKb+I6QZzZrbKnGSM1fSdjSPCRYBqpuTS r9OvSkO9VFMUiyctXF/flwy7w7Z9QEIZ6ti45EvNPJlkIrp/xP5IJgI8RqaSrNUoe+yP 6KKQ== 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=5bmb6S2651jvP5YUHfpCUq+jU8oE8C6lkgeXLkt61qA=; b=abSj9WlYppK3eD4s8b/uy1nNwTHpe05PGXQzjP+ok7oRS9nVoafAWfBa4dqX+UXRWS 7OxBOD8uJ+uMv/jCXZWlyGwWuWOTwaIKz7vqeFqlnvONpP9ecvicy5MFpg9TCdrfvuSo 6FEXRY+F12SMZcS5VBEapg1RM5rLXA3Jz/RJ2MGQPGYVaJKllYf2dGxXha3rzA5+qasJ CJtwsWoctZpvWiGCMnqvCcAffAHqhgM1u8uHWYEdqGnGaggRqWGKP2LB7OBuefteXkSc BHbx5udlhq8rKbr6SBBUeq2aa5Az5jjtYCOqPbmWt8XO7qL0/Df6EOI1QFZo+1aWWi3h YIag==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MnlYnSLg; 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 4fb4d7f45d1cf-6086a5ca0b2si146780a12.84.2025.06.11.13.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:31 -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=MnlYnSLg; 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 8EFC782A4B; Wed, 11 Jun 2025 22:25: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="MnlYnSLg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 462EA82C7F; Wed, 11 Jun 2025 22:25:03 +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 424BC828A2 for ; Wed, 11 Jun 2025 22:25: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=ilias.apalodimas@linaro.org Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3a3798794d3so305775f8f.1 for ; Wed, 11 Jun 2025 13:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673501; x=1750278301; 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=MnlYnSLgMqRWJ3SZPd16ODJEL6Kc/thaQ95BfmFWpzSfm1FYgYP/OyZ0karhjiVVl8 2zJkcLDewc8iQTvJR1gCadshxyURZ2qQvOR7Krrlxc4jsQf35X+1kRWBegqnUNVaWT5F kk2UUGp9tgm82jfK9kxUP/TTE//yt9Or3az9EBkkvyfuLl6hzXJlqNkleYfvD51QohUm Wr5T0ghcX04lsiHsEBzJEdM4fHFxJQOXELEWiB4qepshImVhZKpsRoB41HsNgGMJHqfM T2FEsocDY0WvyRh0J7UqDlSY/ecqu9ys8w86ac+uOLu50NHiRjn6ZP/CAO5CsvLeh5yN lwcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673501; x=1750278301; 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=O4N62WVD4YBpIltNYKgzzG72mb7vAinTFN7ukq0cs9M2HMldjNdn/fze/XPe/wse6g qc6sHGCULPodE2HdO/e05avYi+72cvyWVkcK5Uwz4QZPlCzlZt+LzwWzKXuqiRkfv8vK JYrrqIg7/0XqBclL65pkl70sxEBaJjYNsDs4FzCrzXrssRhd64eKm3O7O7OZHv9lZMYX 2uRf0R1DxiBrqXiCPje8ULjPSTba4N8Kz9svB9QM6/r70LDgJY3pjLDSMkvd4IL0h2dX nxZ0eVxTOwgFoV3tsVgrlcD+hQz8LTPWbv4Hs7qLZi9GLATXy9IVlCE7TVnaX+rJxuIo m+1A== X-Forwarded-Encrypted: i=1; AJvYcCUDwwG/vn9ru8gnMagS8gDBz1YmYUACaFLWXbe0pzJn8UNrdSkHIgjBBHIb15C3cSbzW96NQrQ=@lists.denx.de X-Gm-Message-State: AOJu0YyHJR9i9hBAQkLmS2OZZNdQfJZ1Q6ZiYVTYHk64CxCLViTAuRMe sc/CtQwtHtghPpEXp2esXagSxqgzoRIpNHTmmzWimZEcXsFrhgXVkkhztqujxAhxe+Y= X-Gm-Gg: ASbGncuSdO4zzFpJllWcQXlbcOZjcSrfj+OgOPOKFibPIC0qYD5l2BZ92lhReOTnKZ1 kenghT9eBU2hXEFfzJcZsY/Q1+dJrDat7CL8du+cwV1puJ68IXAoyDk4fhk7OIUc6MlVYcFjPOn pJDKEITjUpp++CaZs9gF9yQx0wRFIlOMpO4jIJnZGnq9f5CdYXrgyX+JSwLIfpH/d721Q0pP/NR Ei05sgzzhfITCW3fLjzHUBufbuSmibCWdsTlZId8A2C7JgwSlYii1WzeC07ugVd6uTFvAFPI4ps ng+6LXaFP4qAE5yXZGNGtby5uobngpmHuzc6xcjbOgqMXZc1I07r5Ny2H8R9ivFggjlOPtwkXtq s+VGwC4hPP9LJDps/4S3z/a/R25lo5eU4Jr/7ZTUene/mNj2Xfdo= X-Received: by 2002:a05:6000:2912:b0:3a5:300d:ead0 with SMTP id ffacd0b85a97d-3a5612f466bmr272280f8f.43.1749673500700; Wed, 11 Jun 2025 13:25:00 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.24.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:24:59 -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 v2 03/13] kbuild: use assignment instead of define ... endef for filechk_* rules Date: Wed, 11 Jun 2025 23:24:30 +0300 Message-ID: <20250611202449.2317279-4-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 Wed Jun 11 20:24: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: 895539 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2977727wrb; Wed, 11 Jun 2025 13:25:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUK0pmtOJe3MewxvrufUo51GOBjg1ra4Z7wFBZeJ6iZ5fOqUf9TE0l82ZmwxR5ahlS1hNlOpQ==@linaro.org X-Google-Smtp-Source: AGHT+IGPAnbYhBOrm6lskIpwiOEurrA64+ED0AHYXxwYUCxC3OV3lU1wspfWkuyjhVvW4HOsr/8y X-Received: by 2002:a05:6402:1812:b0:608:2e97:4399 with SMTP id 4fb4d7f45d1cf-60846ac025fmr3201434a12.4.1749673539806; Wed, 11 Jun 2025 13:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673539; cv=none; d=google.com; s=arc-20240605; b=N+eYiEXox8uea2ayP4YEZ6kUexdf4eHP3pDr+Sahfvd0VRT2lQjsgtkpHS8O8zPkQ2 noNPO9CVVSbBxjDRhJUOL78/pPV3R+KVPKStji38muHmiSPn0iGHPOk+xBGk1GB1FNMU BELGjW9FZppzHLA0TqQJrTDDypmrmEmYIrhtosdnHUdhYtoAai1MYd0zRnXzMd8d7YfF LZvBG7YWEFSSepBANZzzMEsRx4N0N8pE6czNivpoic+2KdJXLwTbrZ9whFjAz8iTBe7n Eo4esC/WiiH1xdMJlaroLZNQpxQNPV9W5J2n0rIKMli5nrDNmUZ0xIAGc24CMiGfXzIp itSg== 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=VBd5IqOqmVtWiDMTCWjmlUBBf+6RSNiOck8S+u2pwEs=; fh=ZqWD8rBwhVf2d936W4nePpGATkjyZ6s4YHZDlab2xjE=; b=iMBEAHkiWOElUYagvWqBmGS6JDF53f00V9RdJDnppLdf1EXRQYV6CtA6Gb9VBNRkx1 g0WIf3A48Ue5c+1RpANZrcYqZhhkiizXMNU31yy9lr+dOy0n6T05bMVNqkxQYqbr3dQ8 bU58gy9RAXrcs5iqrHRpzbM7yJON138qVwhmny35o8BlBI3NLwukMPSdKvDkZ0otTzwM r4AzYjzdUvHBls8Kg2H6J+bHRUZKnQK4jVykDzy9BvRJD8Af/BVa08Qf+SGyVWfJkL5v ZM3R21c++wo99PA9LKgKkzAbmW96rlBqS7i5pFWd7zoArxD3+OExtY8/V4UgMg58hnL/ FfbA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QWnqxBTw; 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 4fb4d7f45d1cf-6086b2fb553si102183a12.400.2025.06.11.13.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:39 -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=QWnqxBTw; 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 E48C382C2F; Wed, 11 Jun 2025 22:25: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="QWnqxBTw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1B6F782B63; Wed, 11 Jun 2025 22:25:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3378E82B0F for ; Wed, 11 Jun 2025 22:25:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-45024721cbdso1507715e9.2 for ; Wed, 11 Jun 2025 13:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673503; x=1750278303; 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=VBd5IqOqmVtWiDMTCWjmlUBBf+6RSNiOck8S+u2pwEs=; b=QWnqxBTw+JtH5SF5PdQMZPsLPGqfFOehLLEy1yxi9ZNjus6cQXRYnwugS7D5deihrR J6oTEz5H4yWv2XGIHB7Hv/Au0T6gvOxmFQKbfyNghZbCIRL7TSvfCVLr6cv9IObNYU/3 gpb2vEoWLcm9B5KQh730hA2IpM3g0UQ1oN6/a+WTkw1F72riIBMj4UjWVNkmw+GDmKsr sSjwO4wHO3jC4WkeYr8kTMY3judZc2+c9ay0TQhfe8x/0ZrCxLGLYTiE5LRU9yScfYDl J7xUh19qzz/XV7+xvPBXQzcxpDAnTIA0/Q5qbYrt9v0WsISyPXdkTEcjefK62ZI75nUi WSEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673503; x=1750278303; 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=VBd5IqOqmVtWiDMTCWjmlUBBf+6RSNiOck8S+u2pwEs=; b=V7s/X5Ybb3DkT0/JwNMzhf5Qlzp6BmlhY0WP26NYZ7J4CP+UqiSsHZ7rFMzyuq8N3+ lJAHlM2PmfS8meH8kh2/W3GJrFRYwMG2XyyEK3CaHHxzPifiaHpnie5MWfTQNvCTSG48 Ht+A6du6qzsmJNxwiI6OKY9arX/ZUTi5oSNvyhxXIrWBg5XONDeqq6SXnOejrB6lLk/+ RIfs8TgB0Dv3MvzFHxNBV3Sqs7lt6aIMQxE5rAF9JlwYhloOJZbnb++Pvmhwccsb8slR Ifo2AadfPEyVO48l39CL1TKunOcSk5uaBGCqBTX2z9AICYzxYp26tRFPdQqahpkgFEfI x2jQ== X-Forwarded-Encrypted: i=1; AJvYcCXdklSGuXbEXHXASetXwSc57orKDn6AJlaydIyujNnNIbKnN0lUr2Fi6syw8ZG/JpoW7e25qrM=@lists.denx.de X-Gm-Message-State: AOJu0YwS230OUv3qEsHX3Qgyubhz0HTtb9uXGEF3+ahD7BBgmHaXYVcK 9oGo55vZQmyrKnLw5qlka3Bsxp3lI4H53+zLUfIz0A79ZjGiruon0GG5cX0ZMxQLY7pUWUdmcSm zbxPE X-Gm-Gg: ASbGncvVtBn6DU037nFbGGVQqS/VGSCl3r1eOCXI2+0ssFDit4cdPUJxjvxqWzWOZnh iBBlBnA9sbvxWD22DYwMW2FO/fdI6hkPyBFgoNBj00FMnFkuZHwC52D3VY93ykYdCsCy6VfT4OS c40DaEzW7TJcHdkYbJ2kjGPJ4P8aFYyUS87YDDyKPau31y4uJ0lpwCgxS/7AO2BrS+RPPmpN8K2 7vW2rilzp3/+1/GuAHoTyP8N5x7mxU5QBgU1wurufysL0vSYRFNGrnJRoHqlSJqMUbk8EsPkujs KA7NpZ+ehbcrIKsod4XmKNJAIbDbbpDv1Ax12fhllBzSlZMyElakygUj2oahbwCi1JK2RTRM5bd oEAmTEpKacll0OR5Blcp7E3la/jQcoacPObyCaElH X-Received: by 2002:a05:600c:384a:b0:43d:4686:5cfb with SMTP id 5b1f17b1804b1-453248cc53dmr42321385e9.27.1749673502637; Wed, 11 Jun 2025 13:25:02 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:02 -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 v2 04/13] kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD Date: Wed, 11 Jun 2025 23:24:31 +0300 Message-ID: <20250611202449.2317279-5-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 7e1b36e78b93..e648f4920cfb 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 Wed Jun 11 20:24: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: 895540 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2977778wrb; Wed, 11 Jun 2025 13:25:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWxlaLStst1hz8E+lHXYLbPtkPEcOJBCeuXJoRES7ySIRaMsR1jBfLE56ZGBtWCot4rNvLpcg==@linaro.org X-Google-Smtp-Source: AGHT+IHYjhTpOnE0PBSvgHc8AllhWJbKzTfrZu2+fP9Ugi61PuzCFVe4+YoKTmgR243mC+C2tjEB X-Received: by 2002:a17:907:1c23:b0:adb:1b2b:fe20 with SMTP id a640c23a62f3a-adea36ec547mr92090266b.34.1749673549095; Wed, 11 Jun 2025 13:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673549; cv=none; d=google.com; s=arc-20240605; b=RCz+5AKv7W41ne5udme0eWewaKeX5DLVhLvCrUWRW4BbAyjgiyqtIuiriiV1hsWC6x TQS7aU7QltLurd/LR7IHYmnPnE8QB4FgExmvOKhZ2lEL94Co1sOwhl/6/si6CNMvCbyw D8T28I/YI6tF/s7jKu1WIg9V+fMYzR5ceatoV8OLLZtXCQKYBOjUHJI3ybDWjYQo8fPQ MiQlpKW7pTZ/iNde05rexEYznvmUstIo2V/QdJ5g1JH6kgGDsNTEy86Ur7c3pF9UuhPu DPGP2EejbHAod9wmmSK2+y+2jpehs0c64YGLLY+HlyNPO3BPk7Sd7MpjmvvXvHr1S6WI EGug== 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=pOkgineMJ551dyRHxEfGWTNhTaN6wvRV6+TDygMhfB4=; fh=bXKn7OkEm1L8zL1VjSPzSTkF7pocACnllXu+91+CmRI=; b=ZvA4CwB7imxnNpslZxBCoq5UwI5m3pxnGQeebALjs/g6KQx1to2qLmjrRaVCbi0smQ sj/MhHvK5CMDhBSzgp/c7+R7A4qyybXrO7YEJ6retTPlmas8lpN8xYpfWS2/PF0SJgpo Jmgs0OYpiIwh4bHfjOh2TDwu+liwlilkGGrZKq60IBroO3/JhVHGog/J21otBmHdKcSN CHEXO5o2tVLESTBQFMo+0y7k3d27V5xNRIXd+xkw5rBvTpGnJpEuQrq7aRUYb9+oRRDU scaAjHH5Rr6kiQZ9g9ycIF6KWxt3+dBllUtzOr1vmP01V+gJq0XplhJ5zCExsW7CnXRR JwUg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lSoiuWzW; 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 a640c23a62f3a-adeadb792fesi6840666b.329.2025.06.11.13.25.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:49 -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=lSoiuWzW; 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 442AC82CA0; Wed, 11 Jun 2025 22:25: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=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="lSoiuWzW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D186882C8A; Wed, 11 Jun 2025 22:25:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D758982B0F for ; Wed, 11 Jun 2025 22:25:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-43edecbfb46so1652245e9.0 for ; Wed, 11 Jun 2025 13:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673505; x=1750278305; 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=pOkgineMJ551dyRHxEfGWTNhTaN6wvRV6+TDygMhfB4=; b=lSoiuWzWErdYOo6p3kFqyKch3s5uNnRz+LsRbcshiFwhBIEhP47VPGOT/kpYcAxJMI DW4WcELZC1Kse55sdQ2XoTSj0qwqWgB0QqBA8V0F5uIrZjH6qs1RrwBexQqjFeVHqin4 682Go82iWwtkY6ck+StcurlPPqfBIz6WzFbS9D403rh1TyUyKZAPt7UJF7uMJ1B+iMZT WSDz9zS3xJUoxzTOiBNF+TlaHW1I4Y/RUIxkF28gGMzvVgu9yzcPtjkoodfrkb6w2b5g BphX5lxeM0q2c+J4bE2VDM0Q30T8cAc8TBUWDzvN7OSnT/PhvMI0diRQb0gQzqO7+VBd qjbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673505; x=1750278305; 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=pOkgineMJ551dyRHxEfGWTNhTaN6wvRV6+TDygMhfB4=; b=aQdA49z64Omjr2Se3i70Cr7r3byasncnpnv3vS7UZO1q2GLMCrVAByYnKujTO3ooDh VmylNN+M/hAzck4eKnmJ32vlVlU4oiW1zCJXLkcLpGuUuk2rmg1Gshxvb7ahuLwq+Zj0 I3xT/CNVS6r69kyDZhXHvB5065FQ6vk3VZEW1aapbYBI3v2jnpXx2cMbStfoBooC3wT0 iP4Xg/j7tsJKXsTsR+UYPPZbWC3cz4LvC3pbzn9tPCyfNrQH5HWCLUGBBZkZ6xc/bkPZ YF2apSbf3Ym6JmMLRJ0p7eagtbJew+EX/ILkJsAyZu6Q6YNpCtUWhBh+ceAXD9q5uOni siBA== X-Forwarded-Encrypted: i=1; AJvYcCWk6IyngZ7F80eMcWodnmA+wDuc0tHul4+7cO/Io1VyYj6A/g2yMJyYMilpkWhmYGlZvdbbxIc=@lists.denx.de X-Gm-Message-State: AOJu0YyHitzkyPnzPfs4dR8DWnzA+Wtbjw8j6dwnxoN8msPsU3/iwXEp FFyfuZmYo3VjHDYn7+mFjA2gC/MvIMJzt8kWSwzRgYza6NoDgTJ6RGMQ0xK5RN/uu9Y= X-Gm-Gg: ASbGnctx1VbwnODU8anqkkIAXIzO8ZuGUe9WfXV1EtmPz340a9oWtB5U8e/YF1I1jbk 2hvh3b4jvCEzUJcjWJMPa2zyX2uLrWN75bYV0EBzX5bi4An1SI3XsNsl43H7d7YloXgcUVE2Uoc hxT85YCy06pMdVr4RybJ73L1cilcqyiUuezjdQAXOpXg+BHd4Xj7UN2QTWP85VDg+F2dGqbkeyd ut5gnEuDCmye5Xdcz9Mq3ogWCqkdCgFT7g/S58wS0jRAkNNu0cZrNIVuo8s0LwO+0v8SC4c/BT4 5jHw1wRFSwdjzSqFIsHCEToHx/5JxUhTs9LwFeAdQmKhrCt4U0OyLbB8jpdqG30mUJxpdJGhbJU h0DQQa2A91dMkFZonZez9x5CWJJ7oHM2T0LHn7JH5 X-Received: by 2002:a05:600c:3e84:b0:453:a95:f086 with SMTP id 5b1f17b1804b1-4532b8c2bd7mr13169305e9.12.1749673505261; Wed, 11 Jun 2025 13:25:05 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:04 -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 v2 05/13] kbuild: use -Werror=implicit-... instead of -Werror-implicit-... Date: Wed, 11 Jun 2025 23:24:32 +0300 Message-ID: <20250611202449.2317279-6-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 e648f4920cfb..00c0d76e1954 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 Wed Jun 11 20:24: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: 895541 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2977825wrb; Wed, 11 Jun 2025 13:25:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTwlFKqS7cWbxhQtrZjlkbeUaqSePYkMeGvXdc/SXUdhh06Ju3fPFcIYkUqC1vQpH0ih011Q==@linaro.org X-Google-Smtp-Source: AGHT+IEzwJt+CgplWn8ERgsztXQWAZ06Z4A3Wy8xH/yNbDgk0wdHoUz7N0O5zR8y/f1nnNTQ/hin X-Received: by 2002:a17:907:3c95:b0:ad8:9909:20a3 with SMTP id a640c23a62f3a-ade89767456mr463894466b.43.1749673558528; Wed, 11 Jun 2025 13:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673558; cv=none; d=google.com; s=arc-20240605; b=M64nFccqH9xTawVEYd1eAUVM9n3evOEVWvvhmisDRug85SU3KpQcybNDYPh71jKlYW ueAwSt1hRDdKXm+xghWpuofixdaU6yHCfW4kuh8pNO5bypLCld+kxDEVGhc3AaaAiC2m DuA35tEv04ACaKGr+uHkT1emOTS3i+6vSlohL+q8S4GdeHmQSUTbmSzj75sc6gmDEx9L jQvdykbJeCiMO/maOJKLV8OOYirztkYtbWJH+2EMy0AhJKu3Ul0GhrASYsbp+5axYkFb i4ikdNQO4m4s6oOgcU1HkzuRQxiBKGbvH9rudezyWdPXcLONt03FKoF/1jEnUDWR4zlx 6kAg== 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=9kbjBj6U3/9n4e8o7nYGpRJlvNKq/iy5+qlJp5kuMjw=; fh=IdVuSmS4xWri8blVnaGo9ldv8CAp9QOh+zURSdN1Qw4=; b=eE+cU8BwMtt2awNVhZosLo4Bt8K1nbFfcbRAHa0hwNrp9y63O7rHYB/tWtFY96ghiR IyGsJd0BO/1E3MeQvOlsU4QaBiXRNzfceGfrCV/VXuz9nr2gMz4SFSkB/1JngnX67eUd D4sweCKS4W4XaOijm98g+z+FGBxoBjTv92+PJ3FBzpFVMI5wN+DEYXpFyR3dAgW4uDMs GBBoeWZRpycTf/1G85DtAHYLMGQquaon+kmFOAz4gZYs8eslU+suriL1WrfMDcxooF98 4siuAxRt0v8P8xQzxc1IHLd5B5vbmaG8ONKfdAzuyfaMBIsDNd/aoFoEAaXAqQcNvHB9 dErw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MS0+srtE; 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 a640c23a62f3a-adeadf94978si6017466b.750.2025.06.11.13.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:58 -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=MS0+srtE; 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 8C38D82C79; Wed, 11 Jun 2025 22:25:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="MS0+srtE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 553B382CA8; Wed, 11 Jun 2025 22:25:10 +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-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 6AF8082B63 for ; Wed, 11 Jun 2025 22:25: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=ilias.apalodimas@linaro.org Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-453066fad06so1416085e9.2 for ; Wed, 11 Jun 2025 13:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673508; x=1750278308; 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=9kbjBj6U3/9n4e8o7nYGpRJlvNKq/iy5+qlJp5kuMjw=; b=MS0+srtEPkaTKQH7Sj7GTGIOIBBmNgCaX78nkNgV7+/zdScsHwMpkpSBy4Yk6l6DJe i1lPIo5dn4W8RB6lwbBO/8N0OMcAAmOb1NlPybuamk+8JkkraQNk3Rw4scTi+wJjfYm5 CSgjo0jNF602F/fSDaF0wbNz38dfw0omtz6lL0cHCUsfQWLFToMGjaZW8fG43J25TGV/ IrUwVCcXdvDV+8DyhxJeEjrd7UYQ8GNx9sorj0zslWuUQkx9ZbBaQNpmS5lLszV44rRu fbMxWMIEGhFOV19uXiQk4DjNm9Su7OKEfOB7ZzK4DV5C437Q17r8v49WnMpXZeaS/mDB UlIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673508; x=1750278308; 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=9kbjBj6U3/9n4e8o7nYGpRJlvNKq/iy5+qlJp5kuMjw=; b=G6Fv7+DGTBYJ7vebk+qBUz2xWTKKdcdjx+pMle7YL2GZfN5G05p5VgPrZ5+JZV0hqi ZF+pZu+10isRUn6e0t5/Ju9NQP9+3V0IuUoPrigKrDtPRXu5mN4mr7RMGWUM57hV/HR+ vh8LNY6j//I4yzYhwKUmJz55lhs+uBDeEGM49JkzS5ve0WNx6p8L4hc8LAx5/H0f160z yctcuvhpNt05w1bRkLbrg9XBD/cM03Whj2V3t3k/oYfbQaM3U481FRXB7pg3nC/lHycC hDJO85l80W/NUsAbBo+kkLhCsZ2/VEpKZIdT4pkYqiS/1IYmr2k3rWVyo2V3N4/12IjU 5rRA== X-Forwarded-Encrypted: i=1; AJvYcCV/R4YHsm44w5sRS8KpH+5Xhkyh9NuGiUDAipDqbZtHShgq/wmR6tlDsH4m9GdfBUuauEWu1DM=@lists.denx.de X-Gm-Message-State: AOJu0Yxfs80ioGKKcXvkdHBUheLzD0ueftP82bmL2UIf1QNuoSekUxWp KctBr3hRILWRVBJZyzSlcCYSYZsq3xaalbxPTP1A5A+ZNhNUPj2aIgDnU81XU2Laj6c= X-Gm-Gg: ASbGncvorBCIk4NMaYJxBulXDhWlqTuJorpEKgeDJyCqcCJYEgr6u4YE6JABj7pLTRv +y2qV/IMFztpZywSvxALmL4KJATm0882KEQqDgjzz9R9zpSBEblDnenYa5Rb23qLNicF2Awvdqq Q1NSRfH3FnsfbTmHUG7BeyLlbFdHy7kq5I/RanUCak1+yx2cAuL2+mZl6LWFF6oToRs6wI8/N4w 4qtT9Mpw/iEqMb+8TjPLrBYEdsDHTQ9cw9R5P4nHK4iNLntlRjWOvlPuS1q2NfFFMNTlUForkpn OaQJ9ZRpPJttZ+FovbM/a+9I2V7kXL31PgDjiB7frenWOrgrTPdxRlmv/9KacT7zizbUBqNEzd3 cZ64GJ8bPKO/AC5SDG8fwmv1+NxuOdMbsSVkZGOY01vPNgznqNyo= X-Received: by 2002:a05:6000:2507:b0:3a4:ea1f:3534 with SMTP id ffacd0b85a97d-3a558691657mr3825823f8f.5.1749673507877; Wed, 11 Jun 2025 13:25:07 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25: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 v2 06/13] kbuild: gitignore output directory Date: Wed, 11 Jun 2025 23:24:33 +0300 Message-ID: <20250611202449.2317279-7-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 00c0d76e1954..2b9516bf4ff7 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 Wed Jun 11 20:24: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: 895542 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2977889wrb; Wed, 11 Jun 2025 13:26:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWui3tJdKZ6bCJvPvYlieMInLOBqYvMXx2Dw1u8f3PEP5ot25zmgSv96k1nfAtwQZoYc0mSFw==@linaro.org X-Google-Smtp-Source: AGHT+IHMwadniVV3gjE0tb9vuAfvi1N+i0w76R7AUc2Pdxx+qXi4Bc46sNi4ZWNZKpmPz/HB4r46 X-Received: by 2002:a17:907:c1b:b0:ade:40cb:2517 with SMTP id a640c23a62f3a-adea36d67c8mr92884966b.30.1749673568291; Wed, 11 Jun 2025 13:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673568; cv=none; d=google.com; s=arc-20240605; b=ShahnAgTp3nlXp4JUQF1JIwxaMHgcv7epZcEW5+YptMK9zzLF5l4DQDFDWMVqgyMVO RnNZUoIMyuh7aoIUhMl0JaHgaJfbW7WksNywNbRIqLVdiZ+eMJ5reh16fAOTm1JfYMCT xiaMx+51LcKY1WjIYpDgJoaQW6FDD5FxVKKhMIwHLwO8Y+ckXHGG61k+eAa80quHomw7 DuBFvSfuMCGVTOpKYI5tIe0BmFhKFb3l3Z4tcGOVFVvRDdmZdFjRU954E5Fah7LDB7ze yvO9V8BmTVw+IBPsJqlza46/NFuJPK00M3YTt3VMZOPFZ5Z/0seV90oADBtp+wSwG2sg 7C9Q== 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=7iRnpuDsRl+JlIXPKvd8K3Ryaye9eFr4JW/Zljv0tmw=; fh=V91GxWT9J+pekMNRHwPTSTZGRjH0WQpgpxspFuSbQPo=; b=BzE7+OPbtOALovB/mIciGsctFvHc+0RMPkyo3QpqTMe+23jmJ9cTkFR7YrEmlDcuNy hEvOEo42XmjuvcL92D10+ca76KrsjCpRFdPfcmNcVWcw+6MonaEtgMFkqhhoU3d3jnzi clnPWqJDOnGfsaTLnUDboFeB07tBjal0VGmeKhRYaI3zwallnOMNbQ4fbBkggCWc0LGm 55XAjKM4/UPUgBLlFx4hfsVTxOOYTa9T3AOp/lul8miuS0KRCQMzI2UgNsHZS1BipM00 /M1UCShyJQk9iSlo7GrWW4haspXqLIt8UL3b3lDRJ8g3ab5USbagrM3gayGk/qUQ7OUu h4yw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yBEo6d5a; 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 a640c23a62f3a-adeadba0b14si6530566b.269.2025.06.11.13.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:26:08 -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=yBEo6d5a; 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 DB8C682B0F; Wed, 11 Jun 2025 22:25:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="yBEo6d5a"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD4DC82CBB; Wed, 11 Jun 2025 22:25:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 00DA7828A2 for ; Wed, 11 Jun 2025 22:25:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3a525eee2e3so222312f8f.2 for ; Wed, 11 Jun 2025 13:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673510; x=1750278310; 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=7iRnpuDsRl+JlIXPKvd8K3Ryaye9eFr4JW/Zljv0tmw=; b=yBEo6d5a2CzlNWj2ojENNckUq7ZYhCjVQAmuvqDio2hVFsSP6Cl1lkP/F11llLsWMC zwG89mQ4WqtQuJjSUBSxfzczLu2z2ejbEEGg8sNJew4bNiUqbAWvH3sQPwD0wr6DyvXp ZNaUyrKJWBCX7w2srPTXozkats3IX+pVU/l9sE86V7KJWcqMMPOfgiY1hZIQGhdcvlK2 NOkndJUBSdf2qbspqiRW285meOiSq2fU2j7ngpc8CWztVreBC0QzX57XMe+GHKbpM9dP ba2Q8cRt1UVKmZIMnTzVh1d6zvMm+R24PPp6bAt2HLJePwJExBrN4Og1KF0Cl/lK2+gc Qqug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673510; x=1750278310; 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=7iRnpuDsRl+JlIXPKvd8K3Ryaye9eFr4JW/Zljv0tmw=; b=wtlgD/DjWsRdLwU13Mk/Ki+M5/ZxHiirbpKrNsebSgg6Wbyl7VzR7tzsM22hOFBk89 1aga2lln37TqMNHlPJLtA4pDZoueJUGPRp3pONYdxvaGq0aJCeOOkdZKsouq0h5QfR6z S5qZmRv97exWHmsMQC3wQDil1EtmsBsTwZYJkCyqbQL22gs9hQmtSYU1BjeWvS5A9Gec 948wIYGtdnUMGtEy+41/dsxw0DbmJjVHGYMq+t9lKfvJBaeCZbLbhym71qxbgfNYsFlJ 2b75NsWIymmkoIv/JfHtFGIR31i/7k4upbEuURHMFng2dxjEX6z4AqZbPzh4fJ4Peiax OdVw== X-Forwarded-Encrypted: i=1; AJvYcCVS4NOTrC/vhx0GYW2+RPzuWM8A3TVqKjq4OeNDVLoTatfvNuFt3cYYVl5c0W5u4FS6rm/UxAs=@lists.denx.de X-Gm-Message-State: AOJu0YzZoBWyP888fftuMzyI02For82QfQOinczONHslF/P8vrk0fgyf /s9kGPnyNnN+6Svcrft+eHfdbbS2Hr3UCpKolMLy7aEVSy5DIdg0phv0aJEhTulmiCQ= X-Gm-Gg: ASbGncuJNh51W6WW6euXUhCJfnGT45p+44saYtFZ5Sx36+UYzjuLh9PB5zqcWgCQ4CD UpIRZ6gBandEvzhhCMiPSdi5vqqaAnRBN73JM2esC/JJ+lW6OTTu/IOSf3oWlxczp4XopeJL8ed uZzsGqMQXy958TGPD8C4DiAPxrmRKszyotzpjDtm7xUVlnIeAudjwPqOlfdQCL3yAvhbjBTq9C0 KDa8BMkXjWH/h/3Z5m3i7HjxDVzoBDMnJ+0fXn3Dj5JiG5/lP3SDuhgU6yELGLDm+g7o1H4R8Wj tx8FoTzAraj+8yIczTONB53X03uWturnZpiMTsfQ0pTq8+3IZGLUj/U8KM8MzMjwqkCs9eDdJKZ XUjLWCOsHi1IEk4gH7Y0A7aaZn7BuHX2VDaY7w/IH X-Received: by 2002:a05:6000:4023:b0:3a5:39d7:3f17 with SMTP id ffacd0b85a97d-3a56077b0e3mr516059f8f.47.1749673510469; Wed, 11 Jun 2025 13:25:10 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:09 -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 v2 07/13] kbuild: remove meaningless prepare2 target Date: Wed, 11 Jun 2025 23:24:34 +0300 Message-ID: <20250611202449.2317279-8-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 2b9516bf4ff7..bd0866dc4579 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 Wed Jun 11 20:24: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: 895543 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2977949wrb; Wed, 11 Jun 2025 13:26:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWKkTayaguL3tw90vGZSLXJvLfGYD8rcGbEP4HSZpQvwj+klvAUQEPYH1/FF/D1CQnpGtrL4Q==@linaro.org X-Google-Smtp-Source: AGHT+IGY5DSQ7T8cQch966C9yqXER5zgQuRGnXPdzDvdgZTwpcUjCy2zAFw0DC2aYg6ugqeXo3uL X-Received: by 2002:a17:906:f595:b0:ad8:e477:970c with SMTP id a640c23a62f3a-adea9311691mr42993066b.23.1749673580516; Wed, 11 Jun 2025 13:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673580; cv=none; d=google.com; s=arc-20240605; b=INF4zKVK/ddhVgWRzbcPN1RyO/J1Mvu88+mDskA24pk1PWeCBub0G8d56yndS2E7P0 518f8kdwwhb5G2sFkDQjFpT3dxsZwX9KTTyB228iEwVnyBsl8hpJz5mUJ99oklQLo6PN +JVes24fb8Co2AaM+fotzQY6cc7hosYn7LcXN+hr0OZVMiwqlWm3KQRWeZHPUnIMey09 /9o/l/ephvHFmTQjcFNfaaWOJtOQtLBGVxYHjj5wxgKiteALL7rw0daAfQaQ87QsUUay 78v9wD5TLta/xtydUBfHRDRjEc7c9KNOSh4MwKJtLUNew5Ae75klFvtrPdXJv1nBN08D fu7Q== 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=GdBw1BLSy/tFF/waQ+VEoCTJeCTIQ7FsDYgsbOpsBXI=; fh=rmcXbjJwS8WSdaakqzRBcVFzQJ5OfYubhDs2ZvVkb2w=; b=aKdKBwSTihKlOZRLmX4JUVpAuvmpTZXRlCL7wPihhGorFpl/pcp03/CGnuPxUIxVEU RpgPVftQ5DeXSMxgFZeB1XipyuF+cRiuCnxjWvWQb2aufV5CvS27QatgbmHviW0oeWY2 1b20/KRguGBZkOlS/EJl1hNr77SlYWc3rAjGKaJDkB0OiX8DEEk6158ER+7hsDNS6nhI 8QlasOsU8ripJ9rbw7HpHnbwOB+or0zgGD50WmtLTm/HDNNdhs/3YqOelTb/EK4+IFBx 2Z4w8WmIA+vRM0uSEo9IU3fAuydGd4So6RmJjiaPBKgj0xE3fUSLmvkBmiUA8v2N8K60 R5Fg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qxEG4ywX; 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 a640c23a62f3a-adead4d1ca5si8810566b.104.2025.06.11.13.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:26:20 -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=qxEG4ywX; 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 3066382CBC; Wed, 11 Jun 2025 22:25: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="qxEG4ywX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BC2BF82B0F; Wed, 11 Jun 2025 22:25: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-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 D96E082CBC for ; Wed, 11 Jun 2025 22:25: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-x433.google.com with SMTP id ffacd0b85a97d-3a5257748e1so216767f8f.2 for ; Wed, 11 Jun 2025 13:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673512; x=1750278312; 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=GdBw1BLSy/tFF/waQ+VEoCTJeCTIQ7FsDYgsbOpsBXI=; b=qxEG4ywX+m4SkpZJP9qCf+I9xRmMIMApae4I0m7jGOv8M+9sPTFlaXdCddjKwx8iJR IVPmZkMilsNfvYXEpOs9w8izCFFX9bwR1Xbrxv/nJAi+tBSI+pmjDVH7S74E5GZ0y2jt nXEiHqeQ8jAmxyD380c5XXHGWeGw5KB97/ApzNvI6cqrfaK8u1wHeaYltYnc9bbzhFh6 qfcGqwkNApzXq8XQYsJL8rweaSsIH/M+WMzmD4m5zHAqKJZW3NjX5dRwbq3NWTx+BLjP nGkFHoTltdeHxJbgTQQFS/I9GaQtrxPbg9pErMLSX42uKaWsP6tkTl7PcPPGl3tEdtem /Acw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673512; x=1750278312; 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=GdBw1BLSy/tFF/waQ+VEoCTJeCTIQ7FsDYgsbOpsBXI=; b=vXALJFDoe4rtUeSJJIB7Xarng7Sq1tix+niF/5oO0KTlDQ2uXbZ8LrY0Kej4i6zilf FTRN+5KED9H8QDGCENgQ2e8C2zAGkOGFBBwJuxD+CDAuZp3lRZSZMs2TaoIi6S+5uDpw N/YxWHuXOxg+PZMFEKYNpVEJ7rctsRFDknAg4tnL9BfoGpSXLZRfNQyoi3GBifB0vweu T4Kf4kneJ0gmz2aGVBjwadVIZfyqYlk7xgLN2cMCZ5hmZ7aXREYlSYr0JGhUybRECW0E 0phJM8SRS/B3B8hxjRAY5WLHTinr/ifH4SRqEJRZAX8r5dvMbQcwv4vsS59FIwxvlSpO b84Q== X-Forwarded-Encrypted: i=1; AJvYcCXECwsA8zJznwgag/ECp253DVGDAteiE/CyJqfxeOUiAVwVnGG+bPOaui+DAWvSilYCNq4lsE8=@lists.denx.de X-Gm-Message-State: AOJu0YydcL5ugGW9HwO8oHD5db03PXjfR9wsSoDxwnX7xEwgaPPO7WXN 8jaz80s08uUAI/J8tICq1lHYNGcbFABtVVysYg6iDVvTL6oDLccWJvEANsNrySYpvwg= X-Gm-Gg: ASbGncvLQ8bBYkaMm7A2qd2goMiyx8P7ma8U3qwIMQANwARbpHE81ho4rpTneUUHevs b1Kjx1LRvHstSruUlRMqodxLImTzOt/9tmugKquFHkPBDpD+kGXoDTquZaBueDX2DY0hDAmaMmi pa9AapbipxYS3z8LU7w0kb566wRvRLGSyitWJXegTIELbJMvM5hGHUrXcDQpb4D2pzArBtCCogX ujDZBE25LM+TvxyhBh6s0fnLLABNiXk2P8SdXYkvFKM9p17OaymR7lSNoAKz2AcZzXm2+p8ouGM 13VWT/oVXpEVsAjtp5MAucgJD6I3PIAE9yhLnC/QDwA1aZOLP92jPRlI6qcv0yZa8LHzmhm0B6E EaQi3hW01VpZHfHQEOzYfQ+SFWINfXdSlsGIsrek1 X-Received: by 2002:a05:6000:310c:b0:3a4:f5f6:b4ab with SMTP id ffacd0b85a97d-3a561349f27mr182059f8f.30.1749673512323; Wed, 11 Jun 2025 13:25:12 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:11 -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 v2 08/13] gcc-9: silence 'address-of-packed-member' warning Date: Wed, 11 Jun 2025 23:24:35 +0300 Message-ID: <20250611202449.2317279-9-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 bd0866dc4579..f05c70073b85 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 Wed Jun 11 20:24: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: 895544 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2978035wrb; Wed, 11 Jun 2025 13:26:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUSp3So++S/zmT3bOIaSButsNJ82aXuHr0w8w3YIkrgJpg0w84iYfjfiM0RkcjrEkcDNGugpw==@linaro.org X-Google-Smtp-Source: AGHT+IHsQgIezXc9ZBa29Rt77Zb2UqKuyCWQo1iWAjisdyYjAmqSQ2rktOvQeZCzQ2JR+hg8HZcz X-Received: by 2002:a05:6402:d0e:b0:607:19a6:9f1d with SMTP id 4fb4d7f45d1cf-6084687472bmr4277447a12.14.1749673594309; Wed, 11 Jun 2025 13:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673594; cv=none; d=google.com; s=arc-20240605; b=Agp5++n0RJhIrvRMraF0KB0CkT33VqeX7ZOcL+C/MvcfKKBLHKo1HQ9pyQQZNPuZS5 S+YCjRYYvwYtnAris8UtdT0N1QqQ1pDv3O+4kln/vjrOAIcOGsmwmGHH915LQ0Dq4l+p o6p3SiuDzee+n5IWjOTGGhTcqcKHjT6SumzADSlFu2LKigoyolqTR+GMISBMtpHyu0Zv 2Hj8OSlKNJEZsCsKwyi8cMqfwAn+d6I1Nc6RsIeO5JrNvxChf/l3UzRUFGV9GE5YQd8E d9827L2fgEob6kSy/nC7QiHzSTFPruTo3PU+f1IGBZhSpHu40/8onnvtl+QmedBGkWxQ lpfw== 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=cDueBkdFPArmbo9xyYSwcVMqBU+ZAegSrjoUIKHVOVA=; fh=FkQKCPiaiDHyJI/AW+Oa8MO+/M7NGBeg8yYPIjMu02Q=; b=VcERYCf/VakgcHi9o9HkbMN31Omjqs7VUmQOcLI4KrngU0nJ8YVWJIbNuUqEFVvugC sYaLG93QjOeMZc8IGhPtHGCE8m8jV6Rj1kd+H+hSDoiJzzF4/7JS1OlK3tBKK3Kwyzt5 OSP0bMudVC0yRRPiYU/gB87MqwQiMXfLVYd99onJGiLgsSDtE2Hjne+dUhfEYX/1BumM Zs2HgbeHHnWETwmX0PuLz89LlVXQ9yhZOgzOeVR1201SzsXTAsODobhtAgwLceV/cmB+ 4BapFI5YA5XdOXmUk3MSBkFf3U6+BDypngzpxvxr1lAfMzBQnzuh3eOUUd/zyOmU2XaU uLdA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NLbB9jE4; 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 4fb4d7f45d1cf-6086b2b8f1asi118362a12.367.2025.06.11.13.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:26:34 -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=NLbB9jE4; 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 16BA282CFA; Wed, 11 Jun 2025 22:25:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=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="NLbB9jE4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5E848828A2; Wed, 11 Jun 2025 22:25: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-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 7273D82CD2 for ; Wed, 11 Jun 2025 22:25: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=ilias.apalodimas@linaro.org Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4531e146a24so1342745e9.0 for ; Wed, 11 Jun 2025 13:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673515; x=1750278315; 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=cDueBkdFPArmbo9xyYSwcVMqBU+ZAegSrjoUIKHVOVA=; b=NLbB9jE4a63LJ6ry8lv8ary93guz8PaHh5hDs/PW7Yyo9ZfaeZQ3kXHx/j170JG7df SM6g83RtRuuPCm3fVOVnU+TA6O9bwL3wtdZtLfSPzLCePhOagBpSlaw2ULfNoZAZ2sZt B2GwKnXbrluwvQDknI8HdwwkN4DZcW3EetDzpC+7ESH4fZLOguvYXp+f4Ere3eNl371n r+z03YBvyf2QgNTuCMRcm9WvEAlE22iYtAjdqyWguzPI+0vW1qjLpXjKa7sT0SubGO/D TW9+uOMXyTH7JWAZhs/YOI38cOISR4TxUWo5FbKqGs1KsY3dMiK2r9QpdwjdMprlq4Oz fQjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673515; x=1750278315; 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=cDueBkdFPArmbo9xyYSwcVMqBU+ZAegSrjoUIKHVOVA=; b=aqIkkWHdsZd55qYbrxJcqGobHIYFfqdy6WVT+vOA7igU8SMY7lgtV8h4N4ZIvsRiiY JqNlTiJ9shcZ5B6pCZLDBMka/EJdx4Ph0UZaQynZUjhTn/ZGdb8RsThTM34M8CBEJEqt hJDAtKjnE5sO3lNptL85AqBE0eNyxAfpO0QZfasyOlEyLJuTR0mUsq9jjGj02U1065zB YzMiGWZJNz9FqiQc36C1oSUarFFEl1WDmbQmdta7Ft9phlo8a6V4rkIZuvXuJor8Lnb7 9oe28/y014RfCdpACUvV6XTXezK//ul8rUPQpquRCKEP/3Gkta+Gb1UKcgrFNdNMoBkj Svtw== X-Forwarded-Encrypted: i=1; AJvYcCUJt0y6ltkkFGmkwwjWOAnPOb3MV/sUDVwB3O5pRVIql6r84KbVWbJy3k8h125P29qhH/nBJ5k=@lists.denx.de X-Gm-Message-State: AOJu0YzikO41DE+YzDV36h8NZ2sh7XnGLcNd6ySh2tl+qut6amn3Bm19 G8wbe67zw/fY4wFPBgxeZYrfm62hbL3rIOiL/zQvj4NWomcU73VWf8xnj+lQs7tLfnI= X-Gm-Gg: ASbGnctAv2ZBuAaNXtNI+jfUmhNGHw8PVOIL53UjNXeYODmXweX1FG9He6QnwGCQDbK eoH5DsWLwWQds6xoNetvCx1I5dKK8cgAWh6MDh8m3EvehNVvBNltSArKDLCdbw2iDessSLoYIA7 ghHEiA/9xvnImsLHibfL0GfT/5Y1IKArRz/zQoDtUmufWhhbQz0YFT1VdKObtYCsUXdlBDITlxt BvLqJpTaw8F6WXNCQHZ7LJ8m1BfeHE6XawVU1V2YAsHeklruUTv9FHux7GY8W1A8kmQqiMfLSVh Ew9JddT3ndM5k6XtpZjUMl3/BOleU4BJob9L2w28X9W0NlMiFnCeSfmgfxVNSzSWicTrHS5am7e GZEBqZMTBp9OrwXSsBd/uCEvyj6TFtnSFJA9R5F4E X-Received: by 2002:a05:600c:8012:b0:43d:94:2d1e with SMTP id 5b1f17b1804b1-4532487a6b7mr48524785e9.13.1749673514910; Wed, 11 Jun 2025 13:25:14 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:13 -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 v2 09/13] kbuild: do not overwrite .gitignore in output directory Date: Wed, 11 Jun 2025 23:24:36 +0300 Message-ID: <20250611202449.2317279-10-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 f05c70073b85..5dad1aa57f70 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 Wed Jun 11 20:24: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: 895545 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2978078wrb; Wed, 11 Jun 2025 13:26:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVBAj1yTbx5iJkYHIF7tpqSF9/RhyHBYWqKcx2fodtljQsw4HEc9LmyvkTraa0z8+wxNOd9rA==@linaro.org X-Google-Smtp-Source: AGHT+IEY0K7H1DcmSzMKNjA+0O7RiaYj67qSiBKJF5ocSJsZ6A8OnYrs2PV/sUYrcDvp91XT8M3f X-Received: by 2002:a05:6402:2554:b0:602:cfab:ea9a with SMTP id 4fb4d7f45d1cf-60863c20fbfmr1164201a12.27.1749673603766; Wed, 11 Jun 2025 13:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673603; cv=none; d=google.com; s=arc-20240605; b=ZFiukjyH6/jH52Y6PBbBnpCbH73g6VbLPSZ7H9b8eYyvoQT3FbBu2U+YeCtgmv91oi fkATnjlySQNKWLbxX/sR9MdxGliLWvKTUducaSEbDm+v3YJbitHmYqxe5qgDY1YjiVE3 QTnVghh4EmogClCPYRg5txGHTkNae3TcfMzA3b4INfhwq53IsCtRMmDBagb7BoMFYhBm QQmvRaLRdqqOZkIq19fdfcfdY3FnECpnfIzDFDI9R0e4tm6FhZygRQbCnCC9dnN+Uu4I d/lFXbZceMUobSxaVQ4tQJWey9cnZQ9kc1DY6g2KO5qha0YXLMgyB4kBss4tNX3TY3iE lBwQ== 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=gyGXDkHLx9118TFNH0C/SmTYkkuq81Vl+KQfxSnbIl4=; fh=ruIcRf3C5O4Q60BR/Ulb2GLHbqiGt1Jl1iXDAo0A6Y0=; b=ffhNQ1K0068Fvip0DFK5cK9Hr+Sy9vzesZe8/x6zYYqKGb4ejLAZuiUvlpoXqXV45x A6Mhq9GDKPmmok2idfzrxg28A4OtYyBBxZzD0qxQge3sKDf7JwhRuCf5RT1XmPPFYv3i BHmQvRIVSkNVtdQGaHMyTMLg4eoqd5kkWz1FOdHS3QvIWCCnGlTz0YzqcBzR6ej4fxUh QEodn92WB2vwhtAHSLklJfkrRuKq0wO0NwJfkkGwwkbWFUKcyQjdvnOCBXp64W3evqwk 3h8qC9heKy6werTgArX8ozxypq3oytTfLBw4ZmMjSw1Y6w6b9pJAXW2Sbwo62cX1slkB 3WOw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uuWmJ6rS; 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 4fb4d7f45d1cf-6086b32d98esi102223a12.469.2025.06.11.13.26.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:26:43 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uuWmJ6rS; 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 620E082CC9; Wed, 11 Jun 2025 22:25:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="uuWmJ6rS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD0CF82B63; Wed, 11 Jun 2025 22:25:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 F1D9382CE7 for ; Wed, 11 Jun 2025 22:25:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-442ea341570so1308775e9.1 for ; Wed, 11 Jun 2025 13:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673517; x=1750278317; 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=gyGXDkHLx9118TFNH0C/SmTYkkuq81Vl+KQfxSnbIl4=; b=uuWmJ6rSEkSLQRTUjdMeINdXLlzMV1AqFIbYwYol7AVrGelajbNr82Mf5QN/yaNabG +bCloXogmtC8yVEYf12cSisrrDORqwyHyslszqLt5EjqHvZNDmmhsg1sKnAbMjCR6YlF WT5VN5/F9vsfZxggnq6RcfTgAWz4Hj3KM8Jk8TYkaFApFBw4W2DfN41sVeniXDlJCGz9 FjmfT+NNJj3/zVMCBfWOA8sBVlse237W2u9uRgYWGg11QoVJKcNBoFVfwM+Yi/LZWR68 PrVg4UrCQnADn/vz0veHXd9CLc/LlDleYC6ZSLS+CgCYzZkLveknQrzAfyL/OZRMb9Bu 1FSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673517; x=1750278317; 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=gyGXDkHLx9118TFNH0C/SmTYkkuq81Vl+KQfxSnbIl4=; b=jj8mEeodMJi3aUaF/Xs1yqutqjSMcs8Rp8MDMk1FQ226cT+Of/iu4iHphlnlPWn4md 5RIv4XuPSZQqZlmGlaAY/ARANtm8as8edlJXLrpuzhcKd4aLrjnslFWe8HnSNmCuvB05 Te5tqnrnMC+yoP8rZWUsbshQTLOnX5qYEoYHt0Fhx54JdSr0O5DYbxxV+rY2zSCcV/cJ AGjeUF2/If0qOq1EeWU8Mig6G7jVwt/KzlFMA2Ak/Q7Y9jUYPNIhg4fd4kKjZVIOjHNr LZDK0MfbB+Ez1QzpjtDl0cmDv8z8SoclPwik1ge0nJp8WqvvAy9x2M63akGy5LdVgQ43 qSRQ== X-Forwarded-Encrypted: i=1; AJvYcCWOex55C5CLkhpaA4VGVO65Hn4FDxDeGnGeZ0VImvPcbXpvPQJ4Xxh/OtbV8ZEz1a5+xWFmCqg=@lists.denx.de X-Gm-Message-State: AOJu0YxSPWNyEaUa1tYlDENiADXd7ExfqZRzotjedzhKbRkphMYd+BZA XplV4DKA6ow/gcd4e0V1QGKyebHON10vHMZ8tg2JBfSWVc93r71e4nuWTAmc+fLQE10= X-Gm-Gg: ASbGnctfQFbTnCQXaPSy1SsLldjnAsVZ15p89XLJ6jwvi00f8J4JDt05FYOu1XO/3og A3Ik55J96rwAKPKN9pede50qEfivNQ2da5R6NnMqjfZ3N6UeMe1Zce2KnbwbA7bX6cjTSCJND/z PIIQUmk19tlmxJNQdpCJpBjvjnKBaukLUhwlbB/B/H9XGjzhpxPy1gajk6b/y9xB1vX7cPLbQNi lnUpFsGbFbkDx+wSf4hFgoQS95Jbs5dzpEsDi8l9u6Yt0RN562C/hF/ROaEHo9m0u7P3KfmtdJu cU01FWPZIVh71LTuZDYrEINQPUadOHcYANKafEbbCGFUgLL9QlW82rzYGxy1ngej12cGtyxhPY4 B8rRJsNy7nWcyuE5ZWR7qnGBFR8R5WiN6GZnQJLtX X-Received: by 2002:a05:6000:40c8:b0:3a5:39d7:5d5d with SMTP id ffacd0b85a97d-3a56072919fmr619549f8f.36.1749673517427; Wed, 11 Jun 2025 13:25:17 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25: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 v2 10/13] kbuild: skip parsing pre sub-make code for recursion Date: Wed, 11 Jun 2025 23:24:37 +0300 Message-ID: <20250611202449.2317279-11-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 5dad1aa57f70..4e339ef4bb9c 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 Wed Jun 11 20:24: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: 895546 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2978139wrb; Wed, 11 Jun 2025 13:26:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXPyoJC3K97ZGUrHREL03vHBEes08hM3yLplnoLRFIZPsrTCy2wTn1bHxrTHv71zrx5C7b2hA==@linaro.org X-Google-Smtp-Source: AGHT+IFdlsAvV9MXmgyiVDre250rnIUXpGnSwRF3GciXa+YrlqoPyCOnZadIQ1idVyFwRq3Jgh2n X-Received: by 2002:a05:6402:278f:b0:607:293:fd6 with SMTP id 4fb4d7f45d1cf-608665159acmr859184a12.0.1749673613795; Wed, 11 Jun 2025 13:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673613; cv=none; d=google.com; s=arc-20240605; b=Qdck49o7m8AoF52V5OTvOR1MacTxUo5SgXB7Ez97eaokJyLWg9Wv3zzeevZwdeUh9P EfM9SvXyEoTJxIom83b+0HBJAEvnxxYOb4YYxkcKfP/SVYhVLTHJfODCmlUDsNJfFgHT 4Q64RZBGDnIFyJgDl3W8DJNCKwvIo2QR/slRdpDFRcrWk9DaveNcuj7TtvCyyf1pbqDA C1LhNaYfUKQexeq5ZxC9tOSruhQt9VQ7HyYH76VZolHL8/bqGi0LdgNq+q6EjqeOr3M7 iupMW/fFNcRSzcIMsfxegNuBJkFOHsgzwUkz6QF49l+Mu+x7J/ofiwnb3B43tRH9TsH9 of8Q== 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=yi2f56CKH8KBqCyNPpwoXR98HlpxYUiPmL22p+iKl4w=; fh=XQGWXPJqP6SOoKcnyXGoN/Ow0GBZovH2mb0NgCzH3dY=; b=Qe2aOO+RX3Jg21MBrMdVQh6ucq0BBeJ2M4aOoZtpJzoVQb40fqqJLMWaVSdKzHk/KE mzJesQ0a5NxTmkP/rrg3aXoL5/OgsOFqkUvfTJMX8DkyOokigrY0hBCLKKM0DZH9+G31 PtNuqNkYVd2D+Lt0JC5kZFGbqgrniEh1sS/XzstvhG7yl5RhHnGPMW6odLCNI0M1nkBA i+kVP4UJn7RZbQ06vYGf9uLeOJDr79tc0cHKVb6n+eUKjDUsU/gEz6j2I7IgT22H84aK sGkfISOQtvzc3OtuhNHqGb46ReUIQaSWaw7Pjmj1HoB6kZq8bqvHnjBDZqTzG8f+Czsz /xAw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KEG+PnAA; 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 4fb4d7f45d1cf-6086b2fd94dsi103992a12.412.2025.06.11.13.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:26:53 -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=KEG+PnAA; 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 D61D082CD5; Wed, 11 Jun 2025 22:25: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="KEG+PnAA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D9BCB82CF5; Wed, 11 Jun 2025 22:25:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EF36A82CE7 for ; Wed, 11 Jun 2025 22:25:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3a4f72cba73so1004854f8f.1 for ; Wed, 11 Jun 2025 13:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673519; x=1750278319; 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=yi2f56CKH8KBqCyNPpwoXR98HlpxYUiPmL22p+iKl4w=; b=KEG+PnAAzpa621IBYp5v/lrSoGFC6+7LxCJ+eDKSmuYL+x02PaeItyaOJe5k0+XCmY YgMhgOq/8KFN581fo/ORcvtr8VWft6LCC/cwBZHch3SxVWho4n3ZUuaGZ2F+JCQTkYNE dJjger4QY/cDHztYDhq648tJQ3xq1y008RxrCaIiWvzrfb8EFJtjaonw9TgHcx2JloQ1 3fPb+a747p2nCkI1aAkEOA0ppI/HoZXHwnnK3DSnCIspG+Ya0IXHBb+YJbZhDOi86Qzm pkmgFEk0/zIf9hUEZnz5+2LoZGZEvAdRE1MgVyFaRxYg61Tp4F9WSn79jcNKkiNA8PfG C0vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673519; x=1750278319; 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=yi2f56CKH8KBqCyNPpwoXR98HlpxYUiPmL22p+iKl4w=; b=A8Zs4vKvEycdC9dpSXC0k9iMGxzZZfAUyPdqgD4wOU0jhtYXBmZ+OHGuwYdSWSqcb6 43TdfNCFsBXYfHG5EzcNIdrER0J7D+8RvViltBuO6O1lv2qzRgYrtDI7uZcXsMN+OSR2 JfUznu3zCc5qVrQMgftmZhQCMVPG1XsU04CTmZiTpRTu8cbmTazV8KiLXFHAQG9s+0LF aceOUa5gI9fWmjTJXalMsc5Oz53PY0zherV38MSNKdmRuP9zamkYO6XvX5VyQdmEz1Mf pMYqaZONzgv4lCY56C7bUEv+8OZXwxRmlidGC/VM2Q5FuPtDkstyyMPFUFYalUqbARmA Wlfw== X-Forwarded-Encrypted: i=1; AJvYcCVp90Rom27L29JOeGdJ3y2BzADJOflf4OmwLvoRhmyyef13Y7GJTmN4yOjIIOiopLsiVyHXq74=@lists.denx.de X-Gm-Message-State: AOJu0YwANRONYsn7GLv7rcfyjTM7AfB0sDpArHZPszNbmwPbpAJKxW4x eyFohWseCAKe9EdyEIBK2+22jTa3F1qQGr3CdNkX6H5y6xCe04JDew1LpF+7K15e6Pk= X-Gm-Gg: ASbGncstpz4SmwgDfb7ASlEHQfZDUV+Qs7i4o3tj1zdP6pyysFmbpsCJzq+OYi96zWR ydlpwUy+7a8NKTvYDsj3eARb4o9I1u/w5jt7wUdKp1nReMYRNSm5feWlm7xp11NX2yFJ73OrLos phtfdMge6TCd4zsv+J996fwa0a1JpcTmCimfY3sGXRW/5v1qe0khcKikvBH9c3oa0iBurvCiJne nqaL1XMXsLy3mHh3p4ygjvL/FF5xzQfwIL8mH8a4GI6BePHcWwkpVyAhWmBHRKLwbc/F9MKD2fO TpEcSl81M8GoA/zkxcYfIpLG6Mz+mW8qhCTq+fPaiMCHGnaAm+r5tHVAjuuGrcbV03vCjBZO0VT XPEhbPryyMQLFgJwM2RGU1yRjYyRkbZgE5EFmhYit X-Received: by 2002:a05:6000:4029:b0:3a5:270e:7d3 with SMTP id ffacd0b85a97d-3a5607fa06cmr565109f8f.13.1749673519374; Wed, 11 Jun 2025 13:25:19 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25: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 v2 11/13] kbuild: mark prepare0 as PHONY to fix external module build Date: Wed, 11 Jun 2025 23:24:38 +0300 Message-ID: <20250611202449.2317279-12-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 4e339ef4bb9c..a31e89d77490 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 Wed Jun 11 20:24: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: 895547 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2978198wrb; Wed, 11 Jun 2025 13:27:03 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXTm92+r4ql71fSbZr3IPSYl6aZyeU3slTwMoQdekOFhUveBZGT3MRHWiQU1WOncJbonrUwEA==@linaro.org X-Google-Smtp-Source: AGHT+IHVlSdEAjedO+T0IScKOilDdALd7rOjt3ntiCs+6gY8Djx5vqudKdfReDWgz3AgX4j5/45A X-Received: by 2002:a17:907:2689:b0:ad2:27b1:7214 with SMTP id a640c23a62f3a-adea565a1b0mr79142566b.17.1749673623178; Wed, 11 Jun 2025 13:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673623; cv=none; d=google.com; s=arc-20240605; b=iZZcDjgFocft0115beW3gj7sUyuhT+Pyg/MwUGDfkZVkku1CAXxpuFkJrKq20YnaMG sE3EmnT0i6TQiukQn3xB2lROUpJEGEqjxi5E94XD1yONwbsIjw+tUM/Bxk4s78rDgyzP F8YJpX7Kh2FoXRboDY4EeqnNGdYR/2ra5UL9cYXGAm5MFk6/ROny7a99wyWZomPEhAhH /StAgtokbs3lRBbz8QkGMIsGH4slNAMR0t6YmfwmxxJMCEqmGL2GXPupwKSsv3XzJwfo m/BI8yxdTRivMKneA7BFUooNIsnhEvpITITwExz12X4urI+C5Vw7/GSC4MM9Yu4uxXQk mi7w== 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=NazrwjVIXY0tpunC+kHC+JzNkeztpVpyuL3jYJej9RQ=; fh=hAr5LZC2ggt+lDZ0ycLvLua0DB7jVISAv0F4JNrzzrg=; b=gSOme1WFRsthSx+AHOQ0GUe5WYFsTroYkZodPB4Z3x9dVLIp+Uw3+jwwuZg9wW3EGj QE+gDPjyp4J92uSYwd1w9KvA2gNZqtx+qZq7SZ9sSaH73T4nziW8I2bDl16nAUKYhKp2 evYFT3O9xp575B+V9qWtIjrCip/QkBCywgAVcQD1vz8WAM4UC2rIcP7Gr21N1eP/IUZQ 0g6Sw/QFj94oFDqs9AkIQVOTF6jMbgiGWgp7mCByI9+4Z6LYDqkyvjM+Cd6Pw9h/3hqM 2ZjyIzmg9yrPDU5qT6x8H9oQYZZUQAWa12RlUvnKIfsVLdVDLhYb+WW/aXPrVWPX1NXl z2iw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bKgWKNS9; 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 a640c23a62f3a-adeadf3c290si6698966b.543.2025.06.11.13.27.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:27:03 -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=bKgWKNS9; 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 21B2882CBB; Wed, 11 Jun 2025 22:25:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=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="bKgWKNS9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E7B8582D21; Wed, 11 Jun 2025 22:25:24 +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-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 21A7282CE7 for ; Wed, 11 Jun 2025 22:25:22 +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-x32b.google.com with SMTP id 5b1f17b1804b1-4508287895dso9010345e9.1 for ; Wed, 11 Jun 2025 13:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673521; x=1750278321; 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=NazrwjVIXY0tpunC+kHC+JzNkeztpVpyuL3jYJej9RQ=; b=bKgWKNS9FLj6uOBHn1SmKC8gH7IPPCoqSZsyCqWcI7vOhxMQzW2E0q+n/PNftoaatW li6Lnp6xk+yTBjWEuhit8Mwd/CWy2wLLUTjZ1KP5IBP+FgZ52Ug6b6+jNL//Sf0qr5DX Fty/AG2q9QiYjLUjXxvp33bjDEef+pjdZLGHbBfs3a0Hq1l5dULBi4+7xADJUbpd+2dY LqZo/Ly+5GGR8tyxmHXBAtC0v7Iua4YvbDl6Dy9vjmHm8NYfmgr14oGsLRuhFqV45lqS AWZkHCGP4R5O/T9dw3eKKaxkCYzdB6GLty3Mm01sdfauX/nV9dh3SuH3R3Ca0NH1+FJv mFxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673521; x=1750278321; 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=NazrwjVIXY0tpunC+kHC+JzNkeztpVpyuL3jYJej9RQ=; b=QjaDJAQWJlQU+MEMmGqi1R+vvFEn3mbxtZxf94JfvJwgg00kmWgP3DFf5Jew/vGzWA 0SwiXqocAYN9vOP+AADdFl1rHPmM+zAN9BEGK/ySIpOqr0zN/0q/d+/ZgQgPkDyF2JrD QyIvm5oJ4Q1w3tMhPIEptc8Y2ru1epLdJ7+w0VHzWQrHINwQ7bZ8RWr+Z45lEgGyCHwA 0hfpB6WJxKvEFi7saHRfZCO+wSOi1XLSeoztW/RK5n1It70Mpyfo2ygFbjRHZIdeIwH8 9Q4JLXFa3LA0nU8q37oaLSDltVlbnKn+27DQ3mA3Uyg61pKyu6hhN+jGXvLxg9STAze1 v/nA== X-Forwarded-Encrypted: i=1; AJvYcCUCy0Ajyrp+VCTLvD1OHZnFWHVaCRmLnNA6qnODUjWlkiMEQazivjkibVDbuZHt7wgBNquLMg0=@lists.denx.de X-Gm-Message-State: AOJu0YxJcxnBApg8daWJSIp9hq5nSA1NVk0+lw/sYRQnblYYDL6WbGzO qpvgPS5/6WBwEIdkqD3Ltla+oBiedVAFqLzRQXTEoOhbIKYrrqIIvoo/pAvRmVMd7P4= X-Gm-Gg: ASbGncvEW1bhuGzCXdn/Q0UKvE9G4e+sJimuJUB6Inq4O5XF1gvJL5j2bBae1CvWhKa qvJO54vyOmSiCD1pfcHOqbnMYVdsrm0kuk10SgyMqZdQb/igV6JYVGDcGZXszzQm7ufcR3jue/U 0x1kR4Hek5v35DuvYYqYPNJ7XnfBq/RL3aKA6nuLgLJ5cPO36InvBRUvtZBvV3tG50RePeenbhW 2j2IqGmNrafwyMBtaV0FHCHkwXlEAe7AEZNo9Pu0OdvA9RQX3KrhdlwVG6HYQoU7XWMFrkiCTC3 OCGVSFf3pEFmsdBmYaUKZffwlnA4C6OpCZ+Mg2PO1ALmgEoUf5cuFClsXyZmZYuNh6zd1H+txsF +iCuvzmKEgqLDx5gzBqVgM1aql/EstbZypgMNNdQn X-Received: by 2002:a5d:64c8:0:b0:3a5:298a:3214 with SMTP id ffacd0b85a97d-3a5608a0302mr569132f8f.13.1749673521354; Wed, 11 Jun 2025 13:25:21 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:20 -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 v2 12/13] kbuild: make 'archprepare' depend on 'scripts' Date: Wed, 11 Jun 2025 23:24:39 +0300 Message-ID: <20250611202449.2317279-13-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 a31e89d77490..af8129ccc884 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 Wed Jun 11 20:24: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: 895548 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2978244wrb; Wed, 11 Jun 2025 13:27:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWxkZP0HfGb9Oe/hWs0+wBOsZXcKHns25BlmnGJQOumhaQ+a4fzOW88yCZm14pisE03H0d3Cg==@linaro.org X-Google-Smtp-Source: AGHT+IHmmeS2ZqhfNtctd1+F1nncKq5i4PU4jm1v3gXWMW/Ng10iMFgylBq4qyAHXwQ/XmUG9Of/ X-Received: by 2002:a05:6402:350d:b0:605:2990:a9dc with SMTP id 4fb4d7f45d1cf-6086b39f4efmr178508a12.27.1749673632138; Wed, 11 Jun 2025 13:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749673632; cv=none; d=google.com; s=arc-20240605; b=Y81jHMs7ZYc2QSkB0qKMvbo9oNy2TJuku0AaTKE4gM/XbE2AX7sMcQ8WzAvThDmFr2 DA0UPk358/2l0TIF6kfRyeWxJ0vhNXqOx9b070dtwL+dd4Ts9mlpUHbOPZS5N/0sjyQM UijVEHosy7RuAR5l7ermVTZ8Zjcv/ajF+YVaSkuQ3uyQZWx8CnjBiNd8cV2DNDajkNQ5 +mC/axeH1Z+xIpFGb7/pQzpGBi0jfSbbouzeb6ArdjS6P06FCNL/kyc1n7GXQsLY8LHO rg10iRuZyEkjEegckF8IgV7w3Wm0IZrl7LIMok1oQH0v5IZ5roAh+9Pacp0CFcwF+I5L JnvA== 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=N/JsFnX9nYTxK/H9GGWkEAtg/dbhMTW/CzDsRF3YLDA=; fh=hDKaCQDa3mvueddfolum4g6iW4LqeMkRQ8a1mvM71NA=; b=YGGHjli7fkVCV1GkdoeyYGaXYw/vPk8I7Wlt8k1BLqqszCE7FlPOozy+bw9owWaMli Yzg+W3gclamkgWQfrY0IDQsB/Zy/FVVRPg9oEkV1ECedJ6r0YbpjX10rEurNIqPzacmC lKEzXjj8K/h8ghqNFs4J/Z9ds147ydpafIRRj0GWc5MsU1jUAUJcGrF1vmZWc5y5s7GM EVeI1aHPLPGCbl7dZ9MaBUNvv1+h2l5/iQOL0PuI6I+0dywNbhyWV8YQJMQg6bUfhXIy eIJA8Z9Rit8y3Vq7miCYhF9ij2DF+Mqr+ZVIeu8gkP5c9lnWlM8E+CQfeyyUW2mE+oD8 N0+Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mGLFSyZR; 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 4fb4d7f45d1cf-6086b2aa773si108067a12.364.2025.06.11.13.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:27:12 -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=mGLFSyZR; 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 66AC982D2E; Wed, 11 Jun 2025 22:25:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=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="mGLFSyZR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EDF3882CB8; Wed, 11 Jun 2025 22:25:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 12A2A82D2E for ; Wed, 11 Jun 2025 22:25:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3a4ef2c2ef3so246247f8f.2 for ; Wed, 11 Jun 2025 13:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749673523; x=1750278323; 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=N/JsFnX9nYTxK/H9GGWkEAtg/dbhMTW/CzDsRF3YLDA=; b=mGLFSyZRXw7IriuLE0YF3GHcDxa49NvlURQOpprVYZWYbEdgWAu9ncDXsp6flXCwOT Te/Xf1JhdQtk7EbdsifYXPHlkWqmqWM5onHPl3E4Ooy7W1GAJKDnXFwS7vhvokuu841p 32CqZNNXGqdZ2HNJbYabBo7IbFc4f8QxDwrfT/GqCsjAZeW3SLPoW8QcMeIrRzyWL/x3 5qT7gWcNs7yqCvf1O+yOL6n+9DLqTn++uymuT4QCI/G0r7MLl1o2SXlLEPZ/4n4ufY6Q Nohbs7zHB5dyVx8n0TYLivNGvsLksIk9X2KKnfXpRqXs4B5ahibud3V6OrcR6zt7dhNN tBgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749673523; x=1750278323; 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=N/JsFnX9nYTxK/H9GGWkEAtg/dbhMTW/CzDsRF3YLDA=; b=ti/FE7PU+EoC8KkuPt+XRSj+RJ1gu8LuczP9SRULrdNuzxJL0SpPqyz7/s1nBKwYU1 2vnz1I9jurzV5unHonD9FhwTheHPoEvZ1zYDrQxlPfx92kE2/HM1ztzXw/Phvc8EIf17 koE9txhYDGBxwF3QyIsuTbh5slMVjf5Dnz4QobuRfaQ7e6t2eBtTYlBcAkXeiq7TDQIE uAAK7GPCmEcnyb2l2NkNhQp8GdPSaTEf/eH5sdzW2GCDPR5rlAyj2FzNxQToj2D6ShE9 noxuiZb/9Sry8JPXExWdQfjMVaFW7dZOpVFCZ6otJTrL9bk5rcofJkLRzGviSpKH0pY3 cgLw== X-Forwarded-Encrypted: i=1; AJvYcCXgBDsDKMuoGYj2esUGEJOsbvRQbLJRKPjpPM4eL+r/0W8U9jBsIbLQRXZd/BJk8+Hp94WhnEM=@lists.denx.de X-Gm-Message-State: AOJu0YwAjUJk0XT78gRviOU+NX3FMvIFnZgRP3ijn9c9EaJObMILV1P8 3oJAwkV538zlqTrIRZ0wu8k2oYHp0no20k3TZDgk+Wh54gAV0GSdws2xt6XXtNsaeDY= X-Gm-Gg: ASbGncux4zH2TmdpYBrkYZffBYT90xiYqPbrDYFUqCozVgbNQRMzBrj5vsdgV+G6ZCa RlbCINy8j5xdlcyiXT7ENk3K561B4UFMWaMoTgN7H0e/Fb2PDMQ3aXF93aid90wmzBsqFgxLDcH Hn+nwiv2qE+qZe7zsHHUqSoS6vSpU/wUdBsXvh8y6q9n4BTgOfTZJ+D6dA1QYbXgZ8rv+HSd6VR T1zkImAry/Jq20ANqhvtgX+WrWPMy607u+9NH0/giLYFm1obvJme17JryzF4Xcz8xcg7WRm63mR SrRuP4+f/vlGqOQ6e3wcMOWuTNnEQ8QbkZ9yb+KH6Oi6OYtZDAabkTibOGz3Anjmzmrtq59V0Ts XGmwhQ9gNyj6Z5BrQ9mzzTCCgtjaPFMU+hPMQF9EH X-Received: by 2002:a05:6000:2909:b0:3a5:287b:da02 with SMTP id ffacd0b85a97d-3a5614c1aacmr219425f8f.40.1749673523563; Wed, 11 Jun 2025 13:25:23 -0700 (PDT) Received: from localhost.localdomain (ppp089210105145.access.hol.gr. [89.210.105.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a561a3c538sm12071f8f.50.2025.06.11.13.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jun 2025 13:25:22 -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 v2 13/13] kbuild: fix single target build for external module Date: Wed, 11 Jun 2025 23:24:40 +0300 Message-ID: <20250611202449.2317279-14-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250611202449.2317279-1-ilias.apalodimas@linaro.org> References: <20250611202449.2317279-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 af8129ccc884..a9cba5b6e076 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