Commit da0b3a946f1a5135297b92e5a18ff97ab10145d6
Committed by
Simon Glass
1 parent
56fc7032e1
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
dtbo: make dtbos special
Special rule for dtbo generation Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Acked-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 17 additions and 0 deletions Side-by-side Diff
scripts/Makefile.lib
... | ... | @@ -321,6 +321,23 @@ |
321 | 321 | |
322 | 322 | dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) |
323 | 323 | |
324 | +# DTCO | |
325 | +# --------------------------------------------------------------------------- | |
326 | + | |
327 | +quiet_cmd_dtco = DTCO $@ | |
328 | +# Rule for objects only; does not put specific u-boot include at the end | |
329 | +# No generation of assembly file either | |
330 | +# Modified for U-Boot | |
331 | +cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \ | |
332 | + $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) - ; \ | |
333 | + $(DTC) -@ -O dtb -o $@ -b 0 \ | |
334 | + -i $(dir $<) $(DTC_FLAGS) \ | |
335 | + -d $(depfile).dtc.tmp $(dtc-tmp) ; \ | |
336 | + cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) | |
337 | + | |
338 | +$(obj)/%.dtbo: $(src)/%.dts FORCE | |
339 | + $(call if_changed_dep,dtco) | |
340 | + | |
324 | 341 | # Fonts |
325 | 342 | # --------------------------------------------------------------------------- |
326 | 343 |