soc/amd/*: Utilize get_fmap_value() Makefile function where possible
Replace: $(shell awk '$$2 == "xyz" {print $$3}' $(obj)/fmap_config.h) with: $(call get_fmap_value,xyz) to improve code readability/maintainability. Change-Id: If6859108c7d5611a63fc38909dc75195bfb1d59a Signed-off-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76168 Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
committed by
Felix Held
parent
2f707374d0
commit
163dbddfe9
@@ -59,12 +59,10 @@ CEZANNE_FWM_POSITION=$(call int-add, \
|
|||||||
AMD_FW_AB_POSITION := 0x40
|
AMD_FW_AB_POSITION := 0x40
|
||||||
|
|
||||||
CEZANNE_FW_A_POSITION=$(call int-add, \
|
CEZANNE_FW_A_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_A_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_A_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
|
|
||||||
CEZANNE_FW_B_POSITION=$(call int-add, \
|
CEZANNE_FW_B_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_B_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_B_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
#
|
#
|
||||||
# PSP Directory Table items
|
# PSP Directory Table items
|
||||||
#
|
#
|
||||||
@@ -130,8 +128,8 @@ PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD |
|
|||||||
|
|
||||||
# type = 0x63 - construct APOB NV base/size from flash map
|
# type = 0x63 - construct APOB NV base/size from flash map
|
||||||
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
||||||
APOB_NV_SIZE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_SIZE" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
|
||||||
APOB_NV_BASE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_START" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_BASE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START)
|
||||||
|
|
||||||
ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
||||||
# type = 0x6B - PSP Shared memory location
|
# type = 0x6B - PSP Shared memory location
|
||||||
|
@@ -62,12 +62,10 @@ GLINDA_FWM_POSITION=0xff020000
|
|||||||
AMD_FW_AB_POSITION := 0x40
|
AMD_FW_AB_POSITION := 0x40
|
||||||
|
|
||||||
GLINDA_FW_A_POSITION=$(call int-add, \
|
GLINDA_FW_A_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_A_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_A_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
|
|
||||||
GLINDA_FW_B_POSITION=$(call int-add, \
|
GLINDA_FW_B_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_B_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_B_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
#
|
#
|
||||||
# PSP Directory Table items
|
# PSP Directory Table items
|
||||||
#
|
#
|
||||||
@@ -129,8 +127,8 @@ PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD |
|
|||||||
|
|
||||||
# type = 0x63 - construct APOB NV base/size from flash map
|
# type = 0x63 - construct APOB NV base/size from flash map
|
||||||
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
||||||
APOB_NV_SIZE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_SIZE" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
|
||||||
APOB_NV_BASE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_START" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_BASE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START)
|
||||||
|
|
||||||
ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
||||||
# type = 0x6B - PSP Shared memory location
|
# type = 0x6B - PSP Shared memory location
|
||||||
@@ -146,11 +144,11 @@ endif # CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
|
|||||||
|
|
||||||
ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
|
ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
|
||||||
SIGNED_AMDFW_A_POSITION=$(call int-subtract, \
|
SIGNED_AMDFW_A_POSITION=$(call int-subtract, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_SIGNED_AMDFW_A_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_A_START) \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FLASH_START" {print $$3}' $(obj)/fmap_config.h))
|
$(call get_fmap_value,FMAP_SECTION_FLASH_START))
|
||||||
SIGNED_AMDFW_B_POSITION=$(call int-subtract, \
|
SIGNED_AMDFW_B_POSITION=$(call int-subtract, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_SIGNED_AMDFW_B_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_B_START) \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FLASH_START" {print $$3}' $(obj)/fmap_config.h))
|
$(call get_fmap_value,FMAP_SECTION_FLASH_START))
|
||||||
SIGNED_AMDFW_A_FILE=$(obj)/amdfw_a.rom.signed
|
SIGNED_AMDFW_A_FILE=$(obj)/amdfw_a.rom.signed
|
||||||
SIGNED_AMDFW_B_FILE=$(obj)/amdfw_b.rom.signed
|
SIGNED_AMDFW_B_FILE=$(obj)/amdfw_b.rom.signed
|
||||||
endif # CONFIG_SEPARATE_SIGNED_PSPFW
|
endif # CONFIG_SEPARATE_SIGNED_PSPFW
|
||||||
|
@@ -62,12 +62,10 @@ MENDOCINO_FWM_POSITION=$(call int-add, \
|
|||||||
AMD_FW_AB_POSITION := 0x80
|
AMD_FW_AB_POSITION := 0x80
|
||||||
|
|
||||||
MENDOCINO_FW_A_POSITION=$(call int-add, \
|
MENDOCINO_FW_A_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_A_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_A_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
|
|
||||||
MENDOCINO_FW_B_POSITION=$(call int-add, \
|
MENDOCINO_FW_B_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_B_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_B_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
|
|
||||||
MENDOCINO_FW_BODY_OFFSET := 0x100
|
MENDOCINO_FW_BODY_OFFSET := 0x100
|
||||||
|
|
||||||
@@ -132,14 +130,14 @@ PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD |
|
|||||||
|
|
||||||
# type = 0x63 - construct APOB NV base/size from flash map
|
# type = 0x63 - construct APOB NV base/size from flash map
|
||||||
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
||||||
APOB_NV_SIZE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_SIZE" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
|
||||||
APOB_NV_BASE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_START" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_BASE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START)
|
||||||
|
|
||||||
ifeq ($(CONFIG_HAS_RECOVERY_MRC_CACHE),y)
|
ifeq ($(CONFIG_HAS_RECOVERY_MRC_CACHE),y)
|
||||||
# On boards with recovery MRC cache, point type 0x63 entry to RECOVERY_MRC_CACHE.
|
# On boards with recovery MRC cache, point type 0x63 entry to RECOVERY_MRC_CACHE.
|
||||||
# Else use RW_MRC_CACHE. This entry will be added in the RO section.
|
# Else use RW_MRC_CACHE. This entry will be added in the RO section.
|
||||||
APOB_NV_RO_SIZE=$(shell awk '$$2 == "FMAP_SECTION_RECOVERY_MRC_CACHE_SIZE" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_RO_SIZE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_SIZE)
|
||||||
APOB_NV_RO_BASE=$(shell awk '$$2 == "FMAP_SECTION_RECOVERY_MRC_CACHE_START" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_RO_BASE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_START)
|
||||||
else
|
else
|
||||||
APOB_NV_RO_SIZE=$(APOB_NV_SIZE)
|
APOB_NV_RO_SIZE=$(APOB_NV_SIZE)
|
||||||
APOB_NV_RO_BASE=$(APOB_NV_BASE)
|
APOB_NV_RO_BASE=$(APOB_NV_BASE)
|
||||||
@@ -159,11 +157,11 @@ endif # CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
|
|||||||
|
|
||||||
ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
|
ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
|
||||||
SIGNED_AMDFW_A_POSITION=$(call int-subtract, \
|
SIGNED_AMDFW_A_POSITION=$(call int-subtract, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_SIGNED_AMDFW_A_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_A_START) \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FLASH_START" {print $$3}' $(obj)/fmap_config.h))
|
$(call get_fmap_value,FMAP_SECTION_FLASH_START))
|
||||||
SIGNED_AMDFW_B_POSITION=$(call int-subtract, \
|
SIGNED_AMDFW_B_POSITION=$(call int-subtract, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_SIGNED_AMDFW_B_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_B_START) \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FLASH_START" {print $$3}' $(obj)/fmap_config.h))
|
$(call get_fmap_value,FMAP_SECTION_FLASH_START))
|
||||||
SIGNED_AMDFW_A_FILE=$(obj)/amdfw_a.rom.body.signed
|
SIGNED_AMDFW_A_FILE=$(obj)/amdfw_a.rom.body.signed
|
||||||
SIGNED_AMDFW_B_FILE=$(obj)/amdfw_b.rom.body.signed
|
SIGNED_AMDFW_B_FILE=$(obj)/amdfw_b.rom.body.signed
|
||||||
endif # CONFIG_SEPARATE_SIGNED_PSPFW
|
endif # CONFIG_SEPARATE_SIGNED_PSPFW
|
||||||
|
@@ -65,12 +65,10 @@ PHOENIX_FWM_POSITION=0xff020000
|
|||||||
AMD_FW_AB_POSITION := 0x40
|
AMD_FW_AB_POSITION := 0x40
|
||||||
|
|
||||||
PHOENIX_FW_A_POSITION=$(call int-add, \
|
PHOENIX_FW_A_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_A_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_A_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
|
|
||||||
PHOENIX_FW_B_POSITION=$(call int-add, \
|
PHOENIX_FW_B_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_B_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_B_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
#
|
#
|
||||||
# PSP Directory Table items
|
# PSP Directory Table items
|
||||||
#
|
#
|
||||||
@@ -132,21 +130,21 @@ PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD |
|
|||||||
|
|
||||||
# type = 0x63 - construct APOB NV base/size from flash map
|
# type = 0x63 - construct APOB NV base/size from flash map
|
||||||
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
||||||
APOB_NV_SIZE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_SIZE" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
|
||||||
APOB_NV_BASE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_START" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_BASE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START)
|
||||||
|
|
||||||
ifeq ($(CONFIG_HAS_RECOVERY_MRC_CACHE),y)
|
ifeq ($(CONFIG_HAS_RECOVERY_MRC_CACHE),y)
|
||||||
# On boards with recovery MRC cache, point type 0x63 entry to RECOVERY_MRC_CACHE.
|
# On boards with recovery MRC cache, point type 0x63 entry to RECOVERY_MRC_CACHE.
|
||||||
# Else use RW_MRC_CACHE. This entry will be added in the RO section.
|
# Else use RW_MRC_CACHE. This entry will be added in the RO section.
|
||||||
APOB_NV_RO_SIZE=$(shell awk '$$2 == "FMAP_SECTION_RECOVERY_MRC_CACHE_SIZE" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_RO_SIZE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_SIZE)
|
||||||
APOB_NV_RO_BASE=$(shell awk '$$2 == "FMAP_SECTION_RECOVERY_MRC_CACHE_START" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_RO_BASE=$(call get_fmap_value,FMAP_SECTION_RECOVERY_MRC_CACHE_START)
|
||||||
else
|
else
|
||||||
APOB_NV_RO_SIZE=$(APOB_NV_SIZE)
|
APOB_NV_RO_SIZE=$(APOB_NV_SIZE)
|
||||||
APOB_NV_RO_BASE=$(APOB_NV_BASE)
|
APOB_NV_RO_BASE=$(APOB_NV_BASE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_AMDFW_SPLIT),y)
|
ifeq ($(CONFIG_AMDFW_SPLIT),y)
|
||||||
FMAP_AMDFW_BODY_LOCATION=$(shell awk '$$2 == "FMAP_SECTION_AMDFWBODY_START" {print $$3}' $(obj)/fmap_config.h)
|
FMAP_AMDFW_BODY_LOCATION=$(call get_fmap_value,FMAP_SECTION_AMDFWBODY_START)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
||||||
@@ -163,11 +161,11 @@ endif # CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK
|
|||||||
|
|
||||||
ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
|
ifeq ($(CONFIG_SEPARATE_SIGNED_PSPFW),y)
|
||||||
SIGNED_AMDFW_A_POSITION=$(call int-subtract, \
|
SIGNED_AMDFW_A_POSITION=$(call int-subtract, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_SIGNED_AMDFW_A_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_A_START) \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FLASH_START" {print $$3}' $(obj)/fmap_config.h))
|
$(call get_fmap_value,FMAP_SECTION_FLASH_START))
|
||||||
SIGNED_AMDFW_B_POSITION=$(call int-subtract, \
|
SIGNED_AMDFW_B_POSITION=$(call int-subtract, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_SIGNED_AMDFW_B_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_SIGNED_AMDFW_B_START) \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FLASH_START" {print $$3}' $(obj)/fmap_config.h))
|
$(call get_fmap_value,FMAP_SECTION_FLASH_START))
|
||||||
SIGNED_AMDFW_A_FILE=$(obj)/amdfw_a.rom.signed
|
SIGNED_AMDFW_A_FILE=$(obj)/amdfw_a.rom.signed
|
||||||
SIGNED_AMDFW_B_FILE=$(obj)/amdfw_b.rom.signed
|
SIGNED_AMDFW_B_FILE=$(obj)/amdfw_b.rom.signed
|
||||||
endif # CONFIG_SEPARATE_SIGNED_PSPFW
|
endif # CONFIG_SEPARATE_SIGNED_PSPFW
|
||||||
|
@@ -65,12 +65,10 @@ PICASSO_FWM_POSITION=$(call int-add, \
|
|||||||
AMD_FW_AB_POSITION := 0x40
|
AMD_FW_AB_POSITION := 0x40
|
||||||
|
|
||||||
PICASSO_FW_A_POSITION=$(call int-add, \
|
PICASSO_FW_A_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_A_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_A_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
|
|
||||||
PICASSO_FW_B_POSITION=$(call int-add, \
|
PICASSO_FW_B_POSITION=$(call int-add, \
|
||||||
$(shell awk '$$2 == "FMAP_SECTION_FW_MAIN_B_START" {print $$3}' $(obj)/fmap_config.h) \
|
$(call get_fmap_value,FMAP_SECTION_FW_MAIN_B_START) $(AMD_FW_AB_POSITION))
|
||||||
$(AMD_FW_AB_POSITION))
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# PSP Directory Table items
|
# PSP Directory Table items
|
||||||
@@ -110,8 +108,8 @@ endif
|
|||||||
|
|
||||||
# type = 0x4
|
# type = 0x4
|
||||||
# The flashmap section used for this is expected to be named PSP_NVRAM
|
# The flashmap section used for this is expected to be named PSP_NVRAM
|
||||||
PSP_NVRAM_BASE=$(shell awk '$$2 == "FMAP_SECTION_PSP_NVRAM_START" {print $$3}' $(obj)/fmap_config.h)
|
PSP_NVRAM_BASE=$(call get_fmap_value,FMAP_SECTION_PSP_NVRAM_START)
|
||||||
PSP_NVRAM_SIZE=$(shell awk '$$2 == "FMAP_SECTION_PSP_NVRAM_SIZE" {print $$3}' $(obj)/fmap_config.h)
|
PSP_NVRAM_SIZE=$(call get_fmap_value,FMAP_SECTION_PSP_NVRAM_SIZE)
|
||||||
|
|
||||||
# type = 0x7
|
# type = 0x7
|
||||||
# RSA 2048 signature
|
# RSA 2048 signature
|
||||||
@@ -132,8 +130,8 @@ PSP_BIOSBIN_SIZE=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD |
|
|||||||
PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD | awk '{print $$3}')
|
PSP_BIOSBIN_DEST=$(shell $(READELF_bootblock) -Wl $(PSP_ELF_FILE) | grep LOAD | awk '{print $$3}')
|
||||||
# type = 0x63 - construct APOB NV base/size from flash map
|
# type = 0x63 - construct APOB NV base/size from flash map
|
||||||
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
# The flashmap section used for this is expected to be named RW_MRC_CACHE
|
||||||
APOB_NV_SIZE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_SIZE" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_SIZE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_SIZE)
|
||||||
APOB_NV_BASE=$(shell awk '$$2 == "FMAP_SECTION_RW_MRC_CACHE_START" {print $$3}' $(obj)/fmap_config.h)
|
APOB_NV_BASE=$(call get_fmap_value,FMAP_SECTION_RW_MRC_CACHE_START)
|
||||||
|
|
||||||
ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
ifeq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
||||||
# type = 0x6B - PSP Shared memory location
|
# type = 0x6B - PSP Shared memory location
|
||||||
|
Reference in New Issue
Block a user