Skip to content
Snippets Groups Projects
Commit 48c00fe2 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

Blackfin: propagate target cpu defines when building embedded env


Since we're no longer extracting the env from the target ELF file (since
upstream wouldn't take that change), we're back to the problem of cpu
defines not properly propagating to the env setup stage.  So the embedded
env built by the host compiler doesn't match the one that is linked into
the u-boot env.

Reported-by: default avatarVivi Li <vivi.li@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent cec11d50
Branches
Tags
No related merge requests found
...@@ -43,6 +43,9 @@ ALL += $(obj)u-boot.ldr ...@@ -43,6 +43,9 @@ ALL += $(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 += \
$(shell $(CPP) -dD - -mcpu=$(CONFIG_BFIN_CPU) </dev/null \
| awk '$$2 ~ /ADSP/ { print "-D" $$2 }')
else else
CREATE_LDR_ENV = CREATE_LDR_ENV =
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment