mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
fix(build): fix incorrectly-escaped armlink preprocessor definitions
Preprocessor definitions that are passed to armlink are currently not correctly escaped, resulting in the shell trying to parse the parentheses contained in some of the preprocessor definitions: ``` LD build/tegra/t210/release/bl31/bl31.elf /bin/sh: 1: Syntax error: "(" unexpected ``` This change ensures that these preprocessor definitions are adequately escaped for the shell. Change-Id: I9d2c60fa60c0aa00770417a68f900e9fb84b4669 Signed-off-by: Chris Kay <chris.kay@arm.com>
This commit is contained in:
parent
20307efa5e
commit
df52e2600d
1 changed files with 2 additions and 2 deletions
|
@ -559,8 +559,8 @@ $(ELF): $(OBJS) $(DEFAULT_LINKER_SCRIPT) $(LINKER_SCRIPTS) | $(1)_dirs libraries
|
|||
$$(ECHO) " LD $$@"
|
||||
ifeq ($($(ARCH)-ld-id),arm-link)
|
||||
$$(Q)$($(ARCH)-ld) -o $$@ $$(TF_LDFLAGS) $$(LDFLAGS) $(BL_LDFLAGS) --entry=${1}_entrypoint \
|
||||
--predefine="-D__LINKER__=$(__LINKER__)" \
|
||||
--predefine="-DTF_CFLAGS=$(TF_CFLAGS)" \
|
||||
--predefine=$(call escape-shell,-D__LINKER__=$(__LINKER__)) \
|
||||
--predefine=$(call escape-shell,-DTF_CFLAGS=$(TF_CFLAGS)) \
|
||||
--map --list="$(MAPFILE)" --scatter=${PLAT_DIR}/scat/${1}.scat \
|
||||
$(LDPATHS) $(LIBWRAPPER) $(LDLIBS) $(BL_LIBS) $(OBJS)
|
||||
else ifeq ($($(ARCH)-ld-id),gnu-gcc)
|
||||
|
|
Loading…
Add table
Reference in a new issue