diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-02 23:49:03 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-18 22:13:26 -0500 |
commit | e29ad970f10c68f93c900810ee184ccf0cee7d91 (patch) | |
tree | 4f687eff9aa061b44d3ca909d41a9b4933206300 | |
parent | ff1a618ad27f002344fa26cb90815d0b2206e508 (diff) | |
download | talos-obmc-uboot-e29ad970f10c68f93c900810ee184ccf0cee7d91.tar.gz talos-obmc-uboot-e29ad970f10c68f93c900810ee184ccf0cee7d91.zip |
Blackfin: cache result of cpp check
Avoid overhead of computing this value multiple times.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | arch/blackfin/config.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/blackfin/config.mk b/arch/blackfin/config.mk index f9d46de231..3595aa2a99 100644 --- a/arch/blackfin/config.mk +++ b/arch/blackfin/config.mk @@ -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 |