arm64: Add verstage support
This stage is not tested on any hardware. BUG=None BRANCH=None TEST=Compiles successfully for rush_ryu and veyron_pinky Original-Change-Id: I6dd266471c815895bb3dd53d34aacc8fe825eeb6 Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/221911 Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> (cherry picked from commit 907ea2d1f8c9f01d815e8673695dd5271322c7a8) Signed-off-by: Aaron Durbin <adurbin@chromium.org> Change-Id: I617a742d4a387be947086dae33e9a913f742a8d1 Reviewed-on: http://review.coreboot.org/9255 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
a48ca841a2
commit
6f33f0a87d
|
@ -76,6 +76,26 @@ $(objcbfs)/bootblock.debug: $$(bootblock-objs) $(obj)/config.h
|
|||
|
||||
endif # CONFIG_ARCH_BOOTBLOCK_ARM64
|
||||
|
||||
###############################################################################
|
||||
# verification stage
|
||||
###############################################################################
|
||||
|
||||
ifeq ($(CONFIG_ARCH_VERSTAGE_ARM64),y)
|
||||
|
||||
$(objcbfs)/verstage.debug: $$(verstage-objs) $$(VB2_LIB) $(obj)/mainboard/$(MAINBOARDDIR)/memlayout.verstage.ld $(obj)/config.h
|
||||
@printf " LINK $(subst $(obj)/,,$(@))\n"
|
||||
$(LD_verstage) --gc-sections -static -o $@ -L$(obj) --start-group $(verstage-objs) $(VBS_LIB) --end-group -T $(obj)/mainboard/$(MAINBOARDDIR)/memlayout.verstage.ld
|
||||
|
||||
verstage-$(CONFIG_EARLY_CONSOLE) += early_console.c
|
||||
verstage-y += div0.c
|
||||
verstage-y += eabi_compat.c
|
||||
verstage-y += ../../lib/memset.c
|
||||
verstage-y += ../../lib/memcpy.c
|
||||
verstage-y += ../../lib/memmove.c
|
||||
verstage-y += stages.c
|
||||
|
||||
endif # CONFIG_ARCH_VERSTAGE_ARM64
|
||||
|
||||
################################################################################
|
||||
# romstage
|
||||
################################################################################
|
||||
|
|
|
@ -45,6 +45,20 @@ bootblock-S-ccopts += $(armv8_asm_flags)
|
|||
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
## verstage
|
||||
################################################################################
|
||||
ifeq ($(CONFIG_ARCH_VERSTAGE_ARMV8_64),y)
|
||||
|
||||
verstage-y += cache.c
|
||||
verstage-y += cpu.S
|
||||
verstage-y += exception.c
|
||||
|
||||
verstage-c-ccopts += $(armv8_flags)
|
||||
verstage-S-ccopts += $(armv8_asm_flags)
|
||||
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
## romstage
|
||||
################################################################################
|
||||
|
|
|
@ -26,6 +26,10 @@ ifeq ($(CONFIG_ARCH_BOOTBLOCK_ARMV8_64),y)
|
|||
bootblock-y += $(lib_access)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_VERSTAGE_ARMV8_64),y)
|
||||
verstage-y += $(lib_access)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_ROMSTAGE_ARMV8_64),y)
|
||||
romstage-y += $(lib_access)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue