diff options
author | Patrick Georgi <pgeorgi@google.com> | 2016-02-10 12:49:08 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-02-10 12:44:15 -0800 |
commit | e7b5e7b0506c5c2528ff008b02217b8b60434de9 (patch) | |
tree | cca6126f140fa57c9893c33928a3d2ab4a163f40 /core/cortex-m | |
parent | 192806b8da1b8714f6bfcdc548a7e8e7866b8384 (diff) | |
download | chrome-ec-e7b5e7b0506c5c2528ff008b02217b8b60434de9.tar.gz |
core/*/ec.lds.S: quote paths containing OUTDIR
If OUTDIR brings in a "@", the build breaks because that delimits the
path, leading to invalid file names.
This can happen (and happened) when building on a Jenkins CI instance
which uses jobname@number as path for parallel checkouts on a
single build node.
BRANCH=none
BUG=none
TEST=build with make out=foo@bar ... failed and works now.
Change-Id: Id0594f0d7312419110091443755ec11b5f8ee2d8
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/327110
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Martin Roth <martinroth@chromium.org>
Diffstat (limited to 'core/cortex-m')
-rw-r--r-- | core/cortex-m/ec.lds.S | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index 9f08b98cc3..982f930d2f 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -5,6 +5,9 @@ #include "config.h" #include "rsa.h" +#define STRINGIFY0(name) #name +#define STRINGIFY(name) STRINGIFY0(name) + #ifdef RW_B_LDS #define FW_MEM_OFF_(section) CONFIG_##section##_B_MEM_OFF #else @@ -74,7 +77,7 @@ SECTIONS #if defined(SECTION_IS_RW) && defined(CONFIG_RW_HEAD_ROOM) . = . + CONFIG_RW_HEAD_ROOM; #endif - OUTDIR/core/CORE/init.o (.text.vecttable) + STRINGIFY(OUTDIR/core/CORE/init.o) (.text.vecttable) . = ALIGN(4); __version_struct_offset = .; KEEP(*(.rodata.ver)) @@ -87,7 +90,7 @@ SECTIONS #else . = ALIGN(4); #endif - OUTDIR/core/CORE/init.o (.text) + STRINGIFY(OUTDIR/core/CORE/init.o) (.text) *(.text*) #ifdef CONFIG_EXTERNAL_STORAGE __flash_lpfw_start = .; |