projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff1a618
)
Blackfin: cache result of cpp check
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 3 Nov 2011 03:49:03 +0000
(23:49 -0400)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/arch/blackfin/config.mk
b/arch/blackfin/config.mk
index f9d46de23167ee86b8b14e44732315067cf0356b..3595aa2a9922d72bc1ce04492134e8f8d23ac2f8 100644
(file)
--- 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