From nobody Tue Feb 10 17:08:37 2026 Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3328932AAA8 for ; Fri, 14 Nov 2025 14:28:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763130493; cv=none; b=jLPoNNbkSjSWF6fpKxP7XvGR6sBsrJ88zRj7AHCx5jaSyQMEexK3zHV37w1lhecqq/HdHRNuJzMYafJ3Ff2MkK7FiKmI5Roo0BbfcVCK4qNH8onWn5FeiJgmN+HISBWx0wb5DdpPmL9pBa7Dh8YFDk4zyuVN4N9YiuBrhqM9E+A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763130493; c=relaxed/simple; bh=vtbE4iQccIDPAbt51GtKugnCRkvsnDiu597g0q1p1vA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O93GOdg3CXdqs9a8CkFm/2+n5ebIkEUPAwOpVrepdIa1W6SM6ZDOMwMGmXs+gJLt8RUEv+4Pn/2doT74ZATIm/lVmeMwVuxA/lOsG2+E/o/5cMcNLc1YBBLHn+0ItczDMag7++9qB905ec+++TboU5FYHYk+QtsS5GEMvhMnJ5E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=J1Ttlg0N; arc=none smtp.client-ip=209.85.166.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="J1Ttlg0N" Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-4337076ae3fso9080685ab.1 for ; Fri, 14 Nov 2025 06:28:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1763130491; x=1763735291; darn=vger.kernel.org; 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=g04XP369OdIGlU7nO8ZhA20Z4uYWbY8J/2UrhgEgmF8=; b=J1Ttlg0N6LKJN8NnZbsH7QqIhk3l6+pthl7S8qvWG1xbUXVbdhnmcWYHXkHTNUNlyO myNeB0dhzIOEvZPQtUD6c2brUcF2+QpBXFJxsdE8N64518kKe6nT9J6Th+l4qSkxveGT Q170jXhmSOP6fjw7Yu8W3GqRAYil3u+TYAiWA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763130491; x=1763735291; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=g04XP369OdIGlU7nO8ZhA20Z4uYWbY8J/2UrhgEgmF8=; b=EUhask3UNhRee4YHz4+qC8s83LPD634Tex7lXuJnPSxcnphDLKWxHJZFr3IKgXh1da /N/zeYMabSscCUNC7wdgpwFFPAulPE3wbV3mMlK5IfFig7cSsE8SWSJ3udqmTpE2rHed mGtzHWKz8MCD0A63S+mXVw/NBP1/87QZxxtv4zMxd0B/jdi3wOMRrrm0+CD0d2kQdjMe S/iPPKxN3vkap33tNh45A5PP++97O/+e0IZSdDITZnzRC9bps5dfxRdSKOHbvDzr6qiA L647kFXgJKHHp7Q7NwC5Xmxgw6GYM/bdrCNagEDFBt9HzMlXu/rdGLf9yG7Fuuh4y3+F j+Xw== X-Forwarded-Encrypted: i=1; AJvYcCXngl0Gs+vJp0fevZjhIdIVCNNmjE8yr5lR7IS1DR5U+SfKD6NM0dNT9RdCwK/w/TIa12GnOoWp41TZamw=@vger.kernel.org X-Gm-Message-State: AOJu0Yz51sT0QLTNkVfG3bzMnFzQmXyvGyDaudbnApyQn9c9yTcRDGdL H1TDMq2EjIZEt/ee7B+Gy7kiHA5GQKWjdkSrJThN47NwPl6WZ34EQvqJRaF++bODKg== X-Gm-Gg: ASbGnctxo66rYqU8PN6lwd3ENVZCkGjeyRSQXwWukWcjQY39xDFailRUothuya4hrnq wwP8Qmnrsw7T7kg4AWClnQb9R8iZ8wo4UzMA0GeBFTcLBPwRZUgYh7u6Ab2iaAEnVowdTiVdjgJ QNmyvfnjJISFyxDoXVS+n/4t0R9YQ5n81j35Qk0b04zooWnPEyCCL5bPaJiNuu8z8BGk2wcnl4g LLDxnV3lUdacdG6mX/jfYUV5nBeuK9dt4TLdz+/F+8CAQ/ePUfcpPG432Owvej2xnXzT7BOHBfY aTm0AG2qs48WPD999QEggQ8jSGWRJZjaZa772654RtTKlcTFTlz17SwJfK+SiDVA54gnvuFAPWz Ye6xvlaDVzCIvomd7npmphorZLI3kJsOuJsN+dhrdxypx5V868H9mufTXrx8bED1Mleeayitb8q csPwL9nXNF8bB0J/E= X-Google-Smtp-Source: AGHT+IH9WRXDGpQxQ/K/6unFcP6iH5jd3lNOXJwjoIeZqn0+/6i1yonIkDQHVVuUwWSwfsG4BW0P5Q== X-Received: by 2002:a05:6e02:2389:b0:433:330a:a572 with SMTP id e9e14a558f8ab-4348c8e3e5amr60110435ab.13.1763130491388; Fri, 14 Nov 2025 06:28:11 -0800 (PST) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-434839cdb10sm27500205ab.32.2025.11.14.06.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Nov 2025 06:28:10 -0800 (PST) From: Simon Glass To: linux-arm-kernel@lists.infradead.org Cc: Nicolas Schier , Masahiro Yamada , Chen-Yu Tsai , Tom Rini , Ahmad Fatoum , =?UTF-8?q?J=20=2E=20Neusch=C3=A4fer?= , Simon Glass , Bill Wendling , Justin Stitt , Miguel Ojeda , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Tamir Duberstein , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH v5 5/8] kbuild: Split out module targets into a variable Date: Fri, 14 Nov 2025 07:27:31 -0700 Message-ID: <20251114142741.1919072-6-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251114142741.1919072-1-sjg@chromium.org> References: <20251114142741.1919072-1-sjg@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add a modules-targets variable to list the targets which cause modules to be built, since we want to add a conditional target. Signed-off-by: Simon Glass --- Changes in v5: - Add a new patch to split out module targets into a variable Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 638bc09a546a..8cd46222fc48 100644 --- a/Makefile +++ b/Makefile @@ -772,7 +772,12 @@ endif # in addition to whatever we do anyway. # Just "make" or "make all" shall build modules as well =20 -ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMD= GOALS)),) +modules-targets :=3D all +modules-targets +=3D modules +modules-targets +=3D nsdeps +modules-targets +=3D compile_commands.json +modules-targets +=3D clang-% +ifneq ($(filter $(modules-targets),$(MAKECMDGOALS)),) KBUILD_MODULES :=3D y endif =20 --=20 2.43.0