]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Blackfin: cache result of cpp check
authorMike Frysinger <vapier@gentoo.org>
Thu, 3 Nov 2011 03:49:03 +0000 (23:49 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 19 Nov 2011 03:13:26 +0000 (22:13 -0500)
Avoid overhead of computing this value multiple times.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/config.mk

index f9d46de23167ee86b8b14e44732315067cf0356b..3595aa2a9922d72bc1ce04492134e8f8d23ac2f8 100644 (file)
@@ -48,9 +48,10 @@ ALL-y += $(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 += \
+HOSTCFLAGS_NOPED_ADSP := \
        $(shell $(CPP) -dD - -mcpu=$(CONFIG_BFIN_CPU) </dev/null \
                | awk '$$2 ~ /ADSP/ { print "-D" $$2 }')
+HOSTCFLAGS_NOPED += $(HOSTCFLAGS_NOPED_ADSP)
 else
 CREATE_LDR_ENV =
 endif