vboot: fix vboot_reference compilation
The VB_FIRMWARE_ARCH variable was not being set correctly, and the VBOOT_STARTS_IN_BOOTBLOCK Kconfig option was not properly prefixed with CONFIG_. Correct both of these oversights. Change-Id: Id27974c285d2629bd47b90b6a93aca1ec8a76512 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/10152 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
e385b37126
commit
d1cf44c596
|
@ -39,7 +39,16 @@ romstage-y += vboot_handoff.c common.c
|
||||||
|
|
||||||
verstage-y += verstage.ld
|
verstage-y += verstage.ld
|
||||||
|
|
||||||
VB_FIRMWARE_ARCH := $(ARCHDIR-$(ARCH-VERSTAGE-y))
|
ifeq ($(CONFIG_SEPARATE_VERSTAGE),y)
|
||||||
|
VB_FIRMWARE_ARCH := $(ARCHDIR-$(ARCH-verstage-y))
|
||||||
|
else
|
||||||
|
ifeq ($(CONFIG_VBOOT_STARTS_IN_BOOTBLOCK),y)
|
||||||
|
VB_FIRMWARE_ARCH := $(ARCHDIR-$(ARCH-bootblock-y))
|
||||||
|
else
|
||||||
|
VB_FIRMWARE_ARCH := $(ARCHDIR-$(ARCH-romstage-y))
|
||||||
|
endif
|
||||||
|
endif # CONFIG_SEPARATE_VERSTAGE
|
||||||
|
|
||||||
VB2_LIB = $(obj)/external/vboot_reference/vboot_fw20.a
|
VB2_LIB = $(obj)/external/vboot_reference/vboot_fw20.a
|
||||||
VBOOT_CFLAGS += $(patsubst -I%,-I$(top)/%,$(filter-out -include $(src)/include/kconfig.h, $(CPPFLAGS_verstage)))
|
VBOOT_CFLAGS += $(patsubst -I%,-I$(top)/%,$(filter-out -include $(src)/include/kconfig.h, $(CPPFLAGS_verstage)))
|
||||||
VBOOT_CFLAGS += $(libverstage-c-ccopts)
|
VBOOT_CFLAGS += $(libverstage-c-ccopts)
|
||||||
|
@ -64,7 +73,7 @@ $(call strip_quotes,$(CONFIG_CBFS_PREFIX))/verstage-file = $(objcbfs)/verstage.e
|
||||||
$(call strip_quotes,$(CONFIG_CBFS_PREFIX))/verstage-type = stage
|
$(call strip_quotes,$(CONFIG_CBFS_PREFIX))/verstage-type = stage
|
||||||
$(call strip_quotes,$(CONFIG_CBFS_PREFIX))/verstage-compression = none
|
$(call strip_quotes,$(CONFIG_CBFS_PREFIX))/verstage-compression = none
|
||||||
else
|
else
|
||||||
ifeq ($(VBOOT_STARTS_IN_BOOTBLOCK),y)
|
ifeq ($(CONFIG_VBOOT_STARTS_IN_BOOTBLOCK),y)
|
||||||
bootblock-srcs += $(objgenerated)/libverstage.a
|
bootblock-srcs += $(objgenerated)/libverstage.a
|
||||||
else
|
else
|
||||||
romstage-srcs += $(objgenerated)/libverstage.a
|
romstage-srcs += $(objgenerated)/libverstage.a
|
||||||
|
|
Loading…
Reference in New Issue