]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/blackfin/config.mk
Blackfin: propagate target cpu defines when building embedded env
[karo-tx-uboot.git] / arch / blackfin / config.mk
index e531edbfa981b7bd44a1c1927103eadeb14208c6..a3300841a0c3bb4349b3cd58353f94bae0febfe3 100644 (file)
@@ -43,6 +43,9 @@ ALL += $(obj)u-boot.ldr
 endif
 ifeq ($(CONFIG_ENV_IS_EMBEDDED_IN_LDR),y)
 CREATE_LDR_ENV = $(obj)tools/envcrc --binary > $(obj)env-ldr.o
+HOSTCFLAGS_NOPED += \
+       $(shell $(CPP) -dD - -mcpu=$(CONFIG_BFIN_CPU) </dev/null \
+               | awk '$$2 ~ /ADSP/ { print "-D" $$2 }')
 else
 CREATE_LDR_ENV =
 endif