On Fri, 4 Oct 2024 at 19:13, Marek Vasut <[email protected]> wrote: > > Currently the enablement of OF_UPSTREAM results on the build system > searching for DTs only in dts/upstream/ . There are platforms which > use U-Boot specific DTBOs applied on top of U-Boot control DT during > SPL stage, and source DTs for these are located in arch/$(ARCH)/dtb. > > Add dedicated 'dtbos' target which builds only .dtbos and not .dtbs and > in case CONFIG_OF_UPSTREAM_INCLUDE_LOCAL_FALLBACK_DTBOS is enabled, build > this target for arch/$(ARCH)/dtb to generate local U-Boot specific DTBOs. > > Adjust top level Makefile so binman would search for .dtb and .dtbo in > both OF_UPSTREAM specific paths and arch/$(ARCH)/dtb for the .dtbo case > in case CONFIG_OF_UPSTREAM_INCLUDE_LOCAL_FALLBACK_DTBOS is enabled. > > Signed-off-by: Marek Vasut <[email protected]> > --- > Cc: "NXP i.MX U-Boot Team" <[email protected]> > Cc: Caleb Connolly <[email protected]> > Cc: Christoph Niedermaier <[email protected]> > Cc: Fabio Estevam <[email protected]> > Cc: Heinrich Schuchardt <[email protected]> > Cc: Jonas Karlman <[email protected]> > Cc: Lothar Rubusch <[email protected]> > Cc: Michal Simek <[email protected]> > Cc: Nobuhiro Iwamatsu <[email protected]> > Cc: Rasmus Villemoes <[email protected]> > Cc: Simon Glass <[email protected]> > Cc: Stefano Babic <[email protected]> > Cc: Sumit Garg <[email protected]> > Cc: Tom Rini <[email protected]> > Cc: [email protected] > Cc: [email protected] > --- > V2: Gate this functionality behind > CONFIG_OF_UPSTREAM_INCLUDE_LOCAL_FALLBACK_DTBOS > --- > NOTE: Depends on > https://lore.kernel.org/u-boot/[email protected]/ > --- > Makefile | 4 ++++ > dts/Kconfig | 16 ++++++++++++++++ > dts/Makefile | 14 +++++++++++++- > scripts/Makefile.dts | 6 ++++++ > 4 files changed, 39 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <[email protected]> Congratulations, you win the prize for the longest CONFIG name!

