]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - scripts/Kbuild.include
kbuild: change out-of-tree build
[karo-tx-uboot.git] / scripts / Kbuild.include
index 547e15daf03dc86dbfa72818122bc4c61929edb0..6113c13d161b676cb1b367035bcf3c0d3d4b0428 100644 (file)
@@ -140,6 +140,10 @@ cc-fullversion = $(shell $(CONFIG_SHELL) \
 # Usage:  EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1)
 cc-ifversion = $(shell [ $(call cc-version, $(CC)) $(1) $(2) ] && echo $(3))
 
+# added for U-Boot
+binutils-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/binutils-version.sh $(AS))
+dtc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/dtc-version.sh $(DTC))
+
 # cc-ldoption
 # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both)
 cc-ldoption = $(call try-run,\