vendorcode/amd/opensil/Makefile.mk: Add 0x prefix for BIOS address
The Makefile is patching the BIOS moudule base address and size so that the openSIL knows where the reset vector resides. However, the printf used for hex convertion is missing 0x prefix for hexvalue. Kconfig hex values start with 0x prefix. Otherwise, there is a chance the bios_base variable could be interpreted as decimal integer. This could result in improper reset vector address being calculated in OpenSIL and APs not able to be brought up. Change-Id: Ib528491b266ec2e8d74b9c8713788f8f37037162 Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89472 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Alicja Michalska <ahplka19@gmail.com>
This commit is contained in:
parent
4b353affd4
commit
077191641b
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ PYTHON?=python
|
||||||
|
|
||||||
OPENSIL_CONFIG=opensil_config
|
OPENSIL_CONFIG=opensil_config
|
||||||
|
|
||||||
bios_base=$(shell printf "%x" $(call int-subtract, $(CONFIG_ROMSTAGE_ADDR) $(CONFIG_C_ENV_BOOTBLOCK_SIZE)))
|
bios_base=$(shell printf "0x%x" $(call int-subtract, $(CONFIG_ROMSTAGE_ADDR) $(CONFIG_C_ENV_BOOTBLOCK_SIZE)))
|
||||||
bios_size=$(CONFIG_C_ENV_BOOTBLOCK_SIZE)
|
bios_size=$(CONFIG_C_ENV_BOOTBLOCK_SIZE)
|
||||||
|
|
||||||
$(OBJPATH)/$(OPENSIL_CONFIG): $(opensil_dir)/../opensil_config.template
|
$(OBJPATH)/$(OPENSIL_CONFIG): $(opensil_dir)/../opensil_config.template
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue