From nobody Mon Feb 9 01:45:12 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 444B233891F; Wed, 14 Jan 2026 18:47:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768416441; cv=none; b=C77TdLm91UMuDlvDdl8n591unsV9qS1eCYiHxhpEZ7APNOmDE6I+cJzH2i2IMVVqXpJcKmH2BXCzPdxzkK1kTRnUzynab37/ub+R3nQ/GsyIPWvI9EhH3pUAAQGlXsW2OQSKY8CG5wET/3UgHGSh9N/kYFk97URjTjOjQpOo/Xg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768416441; c=relaxed/simple; bh=YLF+4BcUQJTP3iEEWTP8D42sBjB8VT3elX2rEJCus4Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z1z5SrzdQlxO04aGpi0EoULYx8iNycytsezQ5ur4nUmV2MgFZXdDSR5ZY+03SDidKg9h4Sx9qgOyCyNiQM3Z8rReISpWmSxro3X9a8EwzOEqh1zrulbAWoIT8Tl1SUjlBFDXsVzvZ9KhndodAhdANvMsxh5EpkHtejAH3laIENE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ubvvefNh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ubvvefNh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8E34C4CEF7; Wed, 14 Jan 2026 18:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768416440; bh=YLF+4BcUQJTP3iEEWTP8D42sBjB8VT3elX2rEJCus4Q=; h=From:To:Cc:Subject:Date:From; b=ubvvefNh1715tWh6Ra9/OfnRdMnFq8sqp6Ds31O7IynYU2kzuWdf6eiszbsiO5j/U nZKGhPPqqZ2jl5naF8DrkIoukyi4SYJDdgzJH6dlLLZwsWCO8VnsIGnID9lRjWLZc1 MLxPq+7+dL5olITILne5sQn5zRSmTeR825os6/cfUxCoqDp9rXZ6y5lOcO1quAYejK 8KpFScKeUM18XQW8t6e0yvOmsLr5d8cU1uR6k7n8FX8ck0O51MAb6lxLx+iL34YZrx I7fIZFp1tZyMeut/LxrrclNM8JkMUrQr2+BDWzKxtl84Q5CyaBNLtnf7WEAlhSOSl5 lAUeoR2MeS7Ow== From: "Rob Herring (Arm)" To: Saravana Kannan , Nathan Chancellor , Nicolas Schier Cc: David Heidelberg , devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: Fix unnecessary rebuilding DT base+overlay targets Date: Wed, 14 Jan 2026 12:46:39 -0600 Message-ID: <20260114184640.3043083-1-robh@kernel.org> X-Mailer: git-send-email 2.51.0 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" Commit 5d0cac427d42 ("kbuild: Support directory targets for building DTBs") causes base+overlay targets to be rebuilt every time. The problem is due to the added check on $(MAKECMDGOALS) which now testing again doesn't even seem to be needed. Revert that portion of the commit. Fixes: 5d0cac427d42 ("kbuild: Support directory targets for building DTBs") Reported-by: David Heidelberg Signed-off-by: Rob Herring (Arm) Tested-by: David Heidelberg --- scripts/Makefile.dtbs | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/Makefile.dtbs b/scripts/Makefile.dtbs index f5d51b8c2eeb..b2d85b9a4a7a 100644 --- a/scripts/Makefile.dtbs +++ b/scripts/Makefile.dtbs @@ -23,10 +23,7 @@ dtb-y :=3D $(addprefix $(obj)/, $(dtb-y)) multi-dtb-y :=3D $(addprefix $(obj)/, $(multi-dtb-y)) real-dtb-y :=3D $(addprefix $(obj)/, $(real-dtb-y)) =20 -dtb-targets :=3D %.dtb %.dtbo dtbs dtbs_check -ifneq ($(findstring /dts/,$(MAKECMDGOALS))$(filter $(dtb-targets),$(MAKECM= DGOALS)),) always-y +=3D $(dtb-y) -endif =20 targets +=3D $(real-dtb-y) =20 --=20 2.51.0