Re: [PATCH] kbuild: fix compilation of dtb specified on command-line without make rule
From: Thomas De Schampheleire
Date: Tue Nov 25 2025 - 05:53:14 EST
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?
Thanks,
Thomas