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: