mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
Blackfin: cache result of cpp check
Avoid overhead of computing this value multiple times. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
ff1a618ad2
commit
e29ad970f1
1 changed files with 2 additions and 1 deletions
|
@ -48,9 +48,10 @@ ALL-y += $(obj)u-boot.ldr
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_ENV_IS_EMBEDDED_IN_LDR),y)
|
ifeq ($(CONFIG_ENV_IS_EMBEDDED_IN_LDR),y)
|
||||||
CREATE_LDR_ENV = $(obj)tools/envcrc --binary > $(obj)env-ldr.o
|
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 \
|
$(shell $(CPP) -dD - -mcpu=$(CONFIG_BFIN_CPU) </dev/null \
|
||||||
| awk '$$2 ~ /ADSP/ { print "-D" $$2 }')
|
| awk '$$2 ~ /ADSP/ { print "-D" $$2 }')
|
||||||
|
HOSTCFLAGS_NOPED += $(HOSTCFLAGS_NOPED_ADSP)
|
||||||
else
|
else
|
||||||
CREATE_LDR_ENV =
|
CREATE_LDR_ENV =
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue