Re: [PATCH] kbuild: fix compilation of dtb specified on command-line without make rule
From: Rob Herring
Date: Tue Nov 25 2025 - 08:26:11 EST
On Tue, Nov 25, 2025 at 4:52 AM Thomas De Schampheleire
<thomas.de_schampheleire@xxxxxxxxx> wrote:
>
> On Mon, Nov 24, 2025 at 07:07:47AM -0600, Rob Herring wrote:
> > On Thu, Nov 20, 2025 at 03:06:43PM +0100, Thomas De Schampheleire wrote:
> [...]
> > > In this scenario, both 'dtb-y' and 'dtb-' are empty, and the inclusion of
> > > scripts/Makefile.dtbs relies on 'targets' to contain the MAKECMDGOALS. The
> > > value of 'targets', however, is only final later in the code.
> > >
> > > Move the conditional include of scripts/Makefile.dtbs down to where the
> > > value of 'targets' is final.
> >
> > This breaks 'make dtbs' (and just 'make' for arm64).
>
> I see the 'make dtbs' failure, I will investigate.
>
> I don't yet see a problem with 'make ARCH=arm64 CROSS_COMPILE=[...]' after a
> standard 'defconfig'. Can you please clarify how it fails for you?
Did it build the dtbs? "dtbs" is an implicit target for "all", so I'm
assuming that wouldn't work either.
Rob