diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-03-20 15:02:17 -0500 |
---|---|---|
committer | Marc Jones <marc.jones@se-eng.com> | 2014-12-15 23:27:25 +0100 |
commit | 703e507fa0d26766cc96c35e0ef6b10129bcd3b8 (patch) | |
tree | 4afff7f0b08d8a86e8199d1e8b45cfadf8975118 | |
parent | 2d43a48158903fe41015b60808bbd7fa339f96b9 (diff) | |
download | coreboot-703e507fa0d26766cc96c35e0ef6b10129bcd3b8.tar.xz |
armv7: provide compiler options for rmodules
In order to build rmodules for armv7 boards, the default
compiler options need to be set so the assembler sources
can correclty compile. For now assume rmodules for arm
devices use the ramstage compiler options.
BUG=chrome-os-partner:27094
BRANCH=None
TEST=Built vboot as rmodule for nyan.
Original-Change-Id: I8d12a2a57944b187cbdff2f22176de5b4de87a54
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/190926
(cherry picked from commit cd091ae8ced30e6e2543f36bdb5c14518e7879c3)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Change-Id: I24706f7d72a53f71abd2770f0d12de8c6ed31f63
Reviewed-on: http://review.coreboot.org/7744
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r-- | src/arch/arm/armv7/Makefile.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/arm/armv7/Makefile.inc b/src/arch/arm/armv7/Makefile.inc index 01069c4462..62d5434888 100644 --- a/src/arch/arm/armv7/Makefile.inc +++ b/src/arch/arm/armv7/Makefile.inc @@ -78,4 +78,7 @@ ramstage-y += mmu.c ramstage-c-ccopts += $(armv7_flags) ramstage-S-ccopts += $(armv7_asm_flags) +# All rmodule code is armv7 if ramstage is armv7. +rmodules-c-ccopts += $(armv7_flags) +rmodules-S-ccopts += $(armv7_asm_flags) endif # CONFIG_ARCH_RAMSTAGE_ARMV7 |