X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=scripts%2FKbuild.include;h=a3a5c59d0da25446b1407fb013a7ec6e8443a5cc;hb=0e689a61929bdf15423e868bc242c1268bda7db9;hp=30e6e316ac1b2565f13436f2d81a2230e1fe5bfc;hpb=d82477748d641e60ba3e1a0b55d98362aed70f80;p=u-boot diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 30e6e316ac..a3a5c59d0d 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -172,6 +172,11 @@ ld-version = $(shell $(LD) --version | $(srctree)/scripts/ld-version.sh) # Usage: $(call ld-ifversion, -ge, 22252, y) ld-ifversion = $(shell [ $(ld-version) $(1) $(2) ] && echo $(3) || echo $(4)) +# dtc-option +# Usage: DTC_FLAGS += $(call dtc-option,-Wno-unit_address_vs_reg) +dtc-option = $(call try-run,\ + echo '/dts-v1/; / {};' | $(DTC) $(1),$(1),$(2)) + ###### ### @@ -316,6 +321,12 @@ endif ifdef CONFIG_SPL_BUILD SPL_ := SPL_ +ifeq ($(CONFIG_TPL_BUILD),y) +SPL_TPL_ := TPL_ +else +SPL_TPL_ := SPL_ +endif else SPL_ := +SPL_TPL_ := endif