diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-04-23 14:40:22 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-23 16:34:00 +0200 |
commit | 58decc540dd40c180542d214f74773c7c17b4f28 (patch) | |
tree | c93aa347b06aaea71bb95067534664611ee3e2d1 /src/lib/romstage.ld | |
parent | a52f9033dfd604e5c2c794ae30f2b684ba643fb9 (diff) | |
download | coreboot-58decc540dd40c180542d214f74773c7c17b4f28.tar.xz |
memlayout: Make sure preram_cbmem_console symbols exist
This enables its _size variable (a macro) to work even when
the console has no location assigned to it in the chip/board's
memlayout.ld.
Since _size == 0, the code will do the right thing.
Change-Id: I6b42ed0c5c3aaa613603680728b61cbdb24c4b61
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/9973
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/lib/romstage.ld')
-rw-r--r-- | src/lib/romstage.ld | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/romstage.ld b/src/lib/romstage.ld index c3a2643787..1e80962ab5 100644 --- a/src/lib/romstage.ld +++ b/src/lib/romstage.ld @@ -33,6 +33,8 @@ *(.rodata.*); *(.data); *(.data.*); + _preram_cbmem_console = DEFINED(_preram_cbmem_console) ? _preram_cbmem_console : 0; + _epreram_cbmem_console = DEFINED(_epreram_cbmem_console) ? _epreram_cbmem_console : 0; . = ALIGN(8); } |