aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2023-05-04 14:26:44 +0200
committerTom Rini <trini@konsulko.com>2023-05-15 14:08:45 -0400
commita0f9a77912b21adf5dbde5d5d47943c5d881d1c1 (patch)
treea4b1c6ac178bf06d10bdb73095ec981b2baeed0b
parentd50af66343f1bb3797e06aa4fabe11f4f61d8ee8 (diff)
downloadu-boot-a0f9a77912b21adf5dbde5d5d47943c5d881d1c1.zip
u-boot-a0f9a77912b21adf5dbde5d5d47943c5d881d1c1.tar.gz
u-boot-a0f9a77912b21adf5dbde5d5d47943c5d881d1c1.tar.bz2
kbuild: Allow DTB overlays to built from .dtso named source files
[Linux commit 363547d2191c] Currently DTB Overlays (.dtbo) are build from source files with the same extension (.dts) as the base DTs (.dtb). This may become confusing and even lead to wrong results. For example, a composite DTB (created from a base DTB and a set of overlays) might have the same name as one of the overlays that create it. Different files should be generated from differently named sources. .dtb <-> .dts .dtbo <-> .dtso We do not remove the ability to compile DTBO files from .dts files here, only add a new rule allowing the .dtso file name. The current .dts named overlays can be renamed with time. After all have been renamed we can remove the other rule. [Import notes: Adapt to U-Boot by using the cmd_dtco function instead of cmd_dtc just like the current .dts -> .dtbo rule.] Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--scripts/Makefile.lib3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 651d700..7362a39 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -354,6 +354,9 @@ cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
$(call if_changed_dep,dtco)
+$(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE
+ $(call if_changed_dep,dtco)
+
# Fonts
# ---------------------------------------------------------------------------