binaryPI: Refactor Makefile for PSP directory
Change-Id: I3c2d528519ac26b24159a46400f232d6acd629e9 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31073 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
This commit is contained in:
parent
4d990ab1bb
commit
8b8fbafb84
1 changed files with 15 additions and 53 deletions
|
@ -74,77 +74,39 @@ smm-y += smi_util.c
|
|||
|
||||
HUDSON_FWM_POSITION=$(call int-add, $(call int-subtract, 0xffffffff $(CONFIG_ROM_SIZE)) 0x20000 1)
|
||||
|
||||
##
|
||||
ifeq ($(CONFIG_HUDSON_PSP), y)
|
||||
##
|
||||
### 0
|
||||
|
||||
##
|
||||
ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y)
|
||||
FIRMWARE_LOCATE=$(dir $(call strip_quotes, $(CONFIG_AMD_PUBKEY_FILE)))
|
||||
FIRMWARE_TYPE=
|
||||
|
||||
PSPBTLDR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspBootLoader.Bypass.sbin
|
||||
PSPRCVR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspRecovery.sbin
|
||||
PSPSCUREOS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspSecureOs.sbin
|
||||
PSPTRUSTLETS_FILE=$(top)/$(FIRMWARE_LOCATE)/trustlets.bin
|
||||
TRUSTLETKEY_FILE=$(top)/$(FIRMWARE_LOCATE)/Trustlet.tkn.cert
|
||||
endif
|
||||
##
|
||||
|
||||
|
||||
ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y)
|
||||
FIRMWARE_LOCATE=$(dir $(call strip_quotes, $(CONFIG_AMD_PUBKEY_FILE)))
|
||||
FIRMWARE_TYPE=CZ
|
||||
|
||||
PSPBTLDR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspBootLoader_prod_CZ.sbin
|
||||
PSPRCVR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspRecoveryBootLoader_prod_CZ.sbin
|
||||
PSPSCUREOS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspSecureOs_prod_CZ.csbin
|
||||
PSPTRUSTLETS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspTrustlets_prod_CZ.cbin
|
||||
TRUSTLETKEY_FILE=$(top)/$(FIRMWARE_LOCATE)/TrustletKey_prod_CZ.sbin
|
||||
SMUFIRMWARE2_FILE=$(top)/$(FIRMWARE_LOCATE)/SmuFirmware2_prod_CZ.sbin
|
||||
endif
|
||||
|
||||
###5
|
||||
PUBSIGNEDKEY_FILE=$(top)/$(FIRMWARE_LOCATE)/RtmPubSigned$(FIRMWARE_TYPE).key
|
||||
###1
|
||||
ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y)
|
||||
PSPBTLDR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspBootLoader$(FIRMWARE_TYPE).Bypass.sbin
|
||||
else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y)
|
||||
PSPBTLDR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspBootLoader_prod_$(FIRMWARE_TYPE).sbin
|
||||
endif
|
||||
|
||||
###3
|
||||
ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y)
|
||||
PSPRCVR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspRecovery$(FIRMWARE_TYPE).sbin
|
||||
else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y)
|
||||
PSPRCVR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspRecoveryBootLoader_prod_$(FIRMWARE_TYPE).sbin
|
||||
endif
|
||||
|
||||
###2
|
||||
ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y)
|
||||
PSPSCUREOS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspSecureOs$(FIRMWARE_TYPE).sbin
|
||||
else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y)
|
||||
PSPSCUREOS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspSecureOs_prod_$(FIRMWARE_TYPE).csbin
|
||||
endif
|
||||
|
||||
###4
|
||||
PSPNVRAM_FILE=$(top)/$(FIRMWARE_LOCATE)/PspNvram$(FIRMWARE_TYPE).bin
|
||||
|
||||
###8
|
||||
SMUFWM_FILE=$(top)/$(FIRMWARE_LOCATE)/SmuFirmware$(FIRMWARE_TYPE).sbin
|
||||
SMUFWM_FN_FILE=$(top)/$(FIRMWARE_LOCATE)/SmuFirmware$(FIRMWARE_TYPE)_FN.sbin
|
||||
|
||||
###95
|
||||
SMUSCS_FILE=$(top)/$(FIRMWARE_LOCATE)/SmuScs$(FIRMWARE_TYPE).bin
|
||||
|
||||
###9
|
||||
PSPSECUREDEBUG_FILE=$(top)/$(FIRMWARE_LOCATE)/PspSecureDebug$(FIRMWARE_TYPE).Key
|
||||
|
||||
###12
|
||||
ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y)
|
||||
PSPTRUSTLETS_FILE=$(top)/$(FIRMWARE_LOCATE)/trustlets.bin
|
||||
else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y)
|
||||
PSPTRUSTLETS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspTrustlets_prod_$(FIRMWARE_TYPE).cbin
|
||||
endif
|
||||
|
||||
###13
|
||||
ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y)
|
||||
TRUSTLETKEY_FILE=$(top)/$(FIRMWARE_LOCATE)/Trustlet.tkn.cert
|
||||
else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y)
|
||||
TRUSTLETKEY_FILE=$(top)/$(FIRMWARE_LOCATE)/TrustletKey_prod_$(FIRMWARE_TYPE).sbin
|
||||
endif
|
||||
|
||||
###18
|
||||
ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y)
|
||||
SMUFIRMWARE2_FILE=$(top)/$(FIRMWARE_LOCATE)/SmuFirmware2_prod_$(FIRMWARE_TYPE).sbin
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
add_opt_prefix=$(if $(call strip_quotes, $(1)), $(2) $(call strip_quotes, $(1)), )
|
||||
|
|
Loading…
Reference in a new issue