History

kbuild: Allow DTB overlays to built from .dtso named source files

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.

Andrew Davis committed 4 years ago

Commit 363547d1 parent 9abf2311 file · +3 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/Makefile.lib+3−0
@@ -408,6 +408,9 @@ $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE · 407 unmodified lines
408$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE408$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
409 $(call if_changed_dep,dtc)409 $(call if_changed_dep,dtc)
410 410
411$(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE
412 $(call if_changed_dep,dtc)
413
411dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)414dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
412 415
413# Bzip2416# Bzip2

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t