cortex-m: CONFIG_RO_HEAD_ROOM should only affect RO image

When we add head room to the RO image, it's generally to provide
a chip-specific boot header of some sort. That header is only
needed for the RO image, not the RW image. The macro name implies
this, but this CL makes it so.

BRANCH=none
BUG=chrome-os-partner:43025, chrome-os-partner:44625
TEST=the cr50 image validates *and jumps to* the RW image at boot.

Change-Id: I0e5b2c32e232418970e01c7409ddcbbabd4786d5
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/296451
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
Bill Richardson
2015-08-31 12:58:22 -07:00
committed by chrome-bot
parent 323f5e2ccf
commit 0860b19a97

View File

@@ -68,7 +68,7 @@ SECTIONS
} > SHARED_LIB
#endif
.text : {
#if defined(CONFIG_RO_HEAD_ROOM)
#if defined(SECTION_IS_RO) && defined(CONFIG_RO_HEAD_ROOM)
. = . + CONFIG_RO_HEAD_ROOM;
#endif
OUTDIR/core/CORE/init.o (.text.vecttable)