arm64: Add verstage support

This stage is not tested on any hardware.

BUG=None
BRANCH=None
TEST=Compiles successfully

Change-Id: Ib0b0d18090d83559276f978b57bdf600c7267606
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/221323
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
Furquan Shaikh 2014-10-02 16:43:19 -07:00 committed by chrome-internal-fetch
commit 36960019dc
5 changed files with 41 additions and 0 deletions

View file

@ -3,6 +3,10 @@ config ARCH_BOOTBLOCK_ARM64
default n
select ARCH_ARM64
config ARCH_VERSTAGE_ARM64
bool
default n
config ARCH_ROMSTAGE_ARM64
bool
default n

View file

@ -65,6 +65,22 @@ $(objcbfs)/bootblock.debug: $$(bootblock-objs)
endif # CONFIG_ARCH_BOOTBLOCK_ARM64
###############################################################################
# verification stage
###############################################################################
$(objcbfs)/verstage.debug: $$(verstage-objs) $$(VB2_LIB)
@printf " LINK $(subst $(obj)/,,$(@))\n"
$(call link,verstage,$(filter %.a %.o,$(^)),-o $(@) -L$(obj) -T $(obj)/mainboard/$(MAINBOARDDIR)/memlayout.verstage.ld,--gc-sections)
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
################################################################################
# romstage
################################################################################

View file

@ -1,6 +1,9 @@
config ARCH_BOOTBLOCK_ARM_V8_64
def_bool n
select ARCH_BOOTBLOCK_ARM64
config ARCH_VERSTAGE_ARM_V8_64
def_bool n
select ARCH_VERSTAGE_ARM64
config ARCH_ROMSTAGE_ARM_V8_64
def_bool n
select ARCH_ROMSTAGE_ARM64

View file

@ -45,6 +45,20 @@ bootblock-S-ccopts += $(armv8_asm_flags)
endif
################################################################################
## verstage
################################################################################
ifeq ($(CONFIG_ARCH_VERSTAGE_ARM_V8_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
################################################################################

View file

@ -34,6 +34,10 @@ ifeq ($(CONFIG_ARCH_BOOTBLOCK_ARM_V8_64),y)
bootblock-y += $(lib_access)
endif
ifeq ($(CONFIG_ARCH_VERSTAGE_ARM_V8_64),y)
verstage-y += $(lib_access)
endif
ifeq ($(CONFIG_ARCH_ROMSTAGE_ARM_V8_64),y)
romstage-y += $(lib_access)
endif