Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 1 | #***************************************************************************** |
| 2 | # |
| 3 | # Copyright (c) 2012, Advanced Micro Devices, Inc. |
| 4 | # 2013 - 2014, Sage Electronic Engineering, LLC |
| 5 | # All rights reserved. |
| 6 | # |
| 7 | # Redistribution and use in source and binary forms, with or without |
| 8 | # modification, are permitted provided that the following conditions are met: |
| 9 | # * Redistributions of source code must retain the above copyright |
| 10 | # notice, this list of conditions and the following disclaimer. |
| 11 | # * Redistributions in binary form must reproduce the above copyright |
| 12 | # notice, this list of conditions and the following disclaimer in the |
| 13 | # documentation and/or other materials provided with the distribution. |
| 14 | # * Neither the name of Advanced Micro Devices, Inc. nor the names of |
| 15 | # its contributors may be used to endorse or promote products derived |
| 16 | # from this software without specific prior written permission. |
| 17 | # |
| 18 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 19 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 20 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 21 | # DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY |
| 22 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 23 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 27 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | # |
| 29 | #***************************************************************************** |
| 30 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 31 | romstage-y += smbus.c smbus_spd.c |
| 32 | ramstage-y += hudson.c |
| 33 | ramstage-y += usb.c |
| 34 | ramstage-y += lpc.c |
| 35 | ramstage-y += sm.c |
| 36 | ramstage-y += ide.c |
| 37 | ramstage-y += sata.c |
| 38 | ramstage-y += hda.c |
| 39 | ramstage-y += pci.c |
| 40 | ramstage-y += pcie.c |
| 41 | ramstage-y += sd.c |
| 42 | |
| 43 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fadt.c |
| 44 | ramstage-y += reset.c |
| 45 | romstage-$(CONFIG_USBDEBUG_IN_ROMSTAGE) += enable_usbdebug.c |
| 46 | ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c |
| 47 | romstage-y += early_setup.c |
WANG Siyuan | c7667f0 | 2015-06-23 22:28:17 +0800 | [diff] [blame] | 48 | ifeq ($(CONFIG_HUDSON_IMC_FWM), y) |
| 49 | romstage-y += imc.c |
| 50 | ramstage-y += imc.c |
| 51 | endif |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 52 | |
Zheng Bao | 2286138 | 2015-11-21 12:19:22 +0800 | [diff] [blame] | 53 | ifeq ($(CONFIG_HUDSON_UART), y) |
| 54 | romstage-y += uart.c |
| 55 | ramstage-y += uart.c |
| 56 | endif |
| 57 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 58 | smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c smi_util.c |
| 59 | ramstage-$(CONFIG_HAVE_SMI_HANDLER) += smi.c smi_util.c |
| 60 | |
| 61 | # ROMSIG At ROMBASE + 0x20000: |
| 62 | # +-----------+---------------+----------------+------------+ |
| 63 | # |0x55AA55AA |EC ROM Address |GEC ROM Address |USB3 ROM | |
| 64 | # +-----------+---------------+----------------+------------+ |
| 65 | # |PSPDIR ADDR| |
| 66 | # +-----------+ |
| 67 | # |
| 68 | # EC ROM should be 64K aligned. |
| 69 | |
Martin Roth | d12d65f | 2015-06-28 14:06:23 -0600 | [diff] [blame] | 70 | HUDSON_FWM_POS_CALC=$(call int-add, $(call int-subtract, 0xffffffff $(call int-multiply, $(CONFIG_COREBOOT_ROMSIZE_KB) 1024)) 0x20000 1) |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 71 | HUDSON_FWM_POSITION=$(shell printf %u $(CONFIG_HUDSON_FWM_POSITION)) |
Martin Roth | d12d65f | 2015-06-28 14:06:23 -0600 | [diff] [blame] | 72 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 73 | ## |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 74 | ifeq ($(CONFIG_HUDSON_PSP), y) |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 75 | ## |
| 76 | ### 0 |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 77 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 78 | ## |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 79 | ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y) |
| 80 | FIRMWARE_LOCATE=$(dir $(call strip_quotes, $(CONFIG_AMD_PUBKEY_FILE))) |
| 81 | FIRMWARE_TYPE= |
| 82 | endif |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 83 | ## |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 84 | ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y) |
| 85 | FIRMWARE_LOCATE=$(dir $(call strip_quotes, $(CONFIG_AMD_PUBKEY_FILE))) |
| 86 | FIRMWARE_TYPE=CZ |
| 87 | endif |
| 88 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 89 | ###5 |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 90 | CONFIG_PUBSIGNEDKEY_FILE=$(top)/$(FIRMWARE_LOCATE)/RtmPubSigned$(FIRMWARE_TYPE).key |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 91 | ###1 |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 92 | ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y) |
Bruce Griffith | 5e2053e | 2014-12-05 19:38:53 -0700 | [diff] [blame] | 93 | CONFIG_PSPBTLDR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspBootLoader$(FIRMWARE_TYPE).Bypass.sbin |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 94 | else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y) |
| 95 | CONFIG_PSPBTLDR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspBootLoader_prod_$(FIRMWARE_TYPE).sbin |
| 96 | endif |
Bruce Griffith | 5e2053e | 2014-12-05 19:38:53 -0700 | [diff] [blame] | 97 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 98 | ###3 |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 99 | ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y) |
Bruce Griffith | 5e2053e | 2014-12-05 19:38:53 -0700 | [diff] [blame] | 100 | CONFIG_PSPRCVR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspRecovery$(FIRMWARE_TYPE).sbin |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 101 | else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y) |
| 102 | CONFIG_PSPRCVR_FILE=$(top)/$(FIRMWARE_LOCATE)/PspRecoveryBootLoader_prod_$(FIRMWARE_TYPE).sbin |
| 103 | endif |
Bruce Griffith | 5e2053e | 2014-12-05 19:38:53 -0700 | [diff] [blame] | 104 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 105 | ###2 |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 106 | ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y) |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 107 | CONFIG_PSPSCUREOS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspSecureOs$(FIRMWARE_TYPE).sbin |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 108 | else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y) |
WANG Siyuan | db08765 | 2015-06-16 21:21:00 +0800 | [diff] [blame] | 109 | CONFIG_PSPSCUREOS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspSecureOs_prod_$(FIRMWARE_TYPE).csbin |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 110 | endif |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 111 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 112 | ###4 |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 113 | CONFIG_PSPNVRAM_FILE=$(top)/$(FIRMWARE_LOCATE)/PspNvram$(FIRMWARE_TYPE).bin |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 114 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 115 | ###8 |
Bruce Griffith | 5e2053e | 2014-12-05 19:38:53 -0700 | [diff] [blame] | 116 | CONFIG_SMUFWM_FILE=$(top)/$(FIRMWARE_LOCATE)/SmuFirmware$(FIRMWARE_TYPE).sbin |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 117 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 118 | ###95 |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 119 | CONFIG_SMUSCS_FILE=$(top)/$(FIRMWARE_LOCATE)/SmuScs$(FIRMWARE_TYPE).bin |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 120 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 121 | ###9 |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 122 | CONFIG_PSPSECUREDEBUG_FILE=$(top)/$(FIRMWARE_LOCATE)/PspSecureDebug$(FIRMWARE_TYPE).Key |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 123 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 124 | ###12 |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 125 | ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y) |
| 126 | CONFIG_PSPTRUSTLETS_FILE=$(top)/$(FIRMWARE_LOCATE)/trustlets.bin |
| 127 | else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y) |
| 128 | CONFIG_PSPTRUSTLETS_FILE=$(top)/$(FIRMWARE_LOCATE)/PspTrustlets_prod_$(FIRMWARE_TYPE).cbin |
| 129 | endif |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 130 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 131 | ###13 |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 132 | ifeq ($(CONFIG_CPU_AMD_PI_00730F01), y) |
| 133 | CONFIG_TRUSTLETKEY_FILE=$(top)/$(FIRMWARE_LOCATE)/Trustlet.tkn.cert |
| 134 | else ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y) |
| 135 | CONFIG_TRUSTLETKEY_FILE=$(top)/$(FIRMWARE_LOCATE)/TrustletKey_prod_$(FIRMWARE_TYPE).sbin |
| 136 | endif |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 137 | |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 138 | ###18 |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 139 | ifeq ($(CONFIG_CPU_AMD_PI_00660F01), y) |
| 140 | CONFIG_SMUFIRMWARE2_FILE=$(top)/$(FIRMWARE_LOCATE)/SmuFirmware2_prod_$(FIRMWARE_TYPE).sbin |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 141 | endif |
| 142 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 143 | endif |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 144 | |
| 145 | add_opt_prefix=$(if $(call strip_quotes, $(1)), $(2) $(call strip_quotes, $(1)), ) |
| 146 | |
| 147 | OPT_HUDSON_XHCI_FWM_FILE=$(call add_opt_prefix, $(CONFIG_HUDSON_XHCI_FWM_FILE), --xhci) |
| 148 | OPT_HUDSON_IMC_FWM_FILE=$(call add_opt_prefix, $(CONFIG_HUDSON_IMC_FWM_FILE), --imc) |
| 149 | OPT_HUDSON_GEC_FWM_FILE=$(call add_opt_prefix, $(CONFIG_HUDSON_GEC_FWM_FILEddd), --gec) |
| 150 | |
| 151 | OPT_AMD_PUBKEY_FILE=$(call add_opt_prefix, $(CONFIG_AMD_PUBKEY_FILE), --pubkey) |
| 152 | OPT_PSPBTLDR_FILE=$(call add_opt_prefix, $(CONFIG_PSPBTLDR_FILE), --bootloader) |
| 153 | OPT_SMUFWM_FILE=$(call add_opt_prefix, $(CONFIG_SMUFWM_FILE), --smufirmware) |
| 154 | OPT_PSPRCVR_FILE=$(call add_opt_prefix, $(CONFIG_PSPRCVR_FILE), --recovery) |
| 155 | OPT_PUBSIGNEDKEY_FILE=$(call add_opt_prefix, $(CONFIG_PUBSIGNEDKEY_FILE), --rtmpubkey) |
| 156 | OPT_PSPSCUREOS_FILE=$(call add_opt_prefix, $(CONFIG_PSPSCUREOS_FILE), --secureos) |
| 157 | OPT_PSPNVRAM_FILE=$(call add_opt_prefix, $(CONFIG_PSPNVRAM_FILE), --nvram) |
| 158 | OPT_PSPSECUREDEBUG_FILE=$(call add_opt_prefix, $(CONFIG_PSPSECUREDEBUG_FILE), --securedebug) |
| 159 | OPT_PSPTRUSTLETS_FILE=$(call add_opt_prefix, $(CONFIG_PSPTRUSTLETS_FILE), --trustlets) |
| 160 | OPT_TRUSTLETKEY_FILE=$(call add_opt_prefix, $(CONFIG_TRUSTLETKEY_FILE), --trustletkey) |
| 161 | OPT_SMUFIRMWARE2_FILE=$(call add_opt_prefix, $(CONFIG_SMUFIRMWARE2_FILE), --smufirmware2) |
| 162 | OPT_SMUSCS_FILE=$(call add_opt_prefix, $(CONFIG_SMUSCS_FILE), --smuscs) |
| 163 | |
Marc Jones | c98629c | 2016-09-20 20:50:25 -0600 | [diff] [blame^] | 164 | CONFIG_2AMD_PUBKEY_FILE =$(CONFIG_AMD_PUBKEY_FILE) |
| 165 | CONFIG_2PSPBTLDR_FILE =$(CONFIG_PSPBTLDR_FILE) |
| 166 | CONFIG_2SMUFWM_FILE =$(CONFIG_SMUFWM_FILE) |
| 167 | CONFIG_2PSPRCVR_FILE =$(CONFIG_PSPRCVR_FILE) |
| 168 | CONFIG_2PUBSIGNEDKEY_FILE =$(CONFIG_PUBSIGNEDKEY_FILE) |
| 169 | CONFIG_2PSPSCUREOS_FILE =$(CONFIG_PSPSCUREOS_FILE) |
| 170 | CONFIG_2PSPNVRAM_FILE =$(CONFIG_PSPNVRAM_FILE) |
| 171 | CONFIG_2PSPSECUREDEBUG_FILE =$(CONFIG_PSPSECUREDEBUG_FILE) |
| 172 | CONFIG_2PSPTRUSTLETS_FILE =$(CONFIG_PSPTRUSTLETS_FILE) |
| 173 | CONFIG_2TRUSTLETKEY_FILE =$(CONFIG_TRUSTLETKEY_FILE) |
| 174 | CONFIG_2SMUFIRMWARE2_FILE =$(CONFIG_SMUFIRMWARE2_FILE) |
| 175 | CONFIG_2SMUSCS_FILE =$(CONFIG_SMUSCS_FILE) |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 176 | |
| 177 | OPT_2AMD_PUBKEY_FILE=$(call add_opt_prefix, $(CONFIG_2AMD_PUBKEY_FILE), --pubkey2) |
| 178 | OPT_2PSPBTLDR_FILE=$(call add_opt_prefix, $(CONFIG_2PSPBTLDR_FILE), --bootloader2) |
Marshall Dawson | e7d892c | 2016-10-08 14:49:41 -0600 | [diff] [blame] | 179 | OPT_2SMUFWM_FILE=$(call add_opt_prefix, $(CONFIG_2SMUFWM_FILE), --smufirmware_2) |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 180 | OPT_2PSPRCVR_FILE=$(call add_opt_prefix, $(CONFIG_2PSPRCVR_FILE), --recovery2) |
| 181 | OPT_2PUBSIGNEDKEY_FILE=$(call add_opt_prefix, $(CONFIG_2PUBSIGNEDKEY_FILE), --rtmpubkey2) |
| 182 | OPT_2PSPSCUREOS_FILE=$(call add_opt_prefix, $(CONFIG_2PSPSCUREOS_FILE), --secureos2) |
| 183 | OPT_2PSPNVRAM_FILE=$(call add_opt_prefix, $(CONFIG_2PSPNVRAM_FILE), --nvram2) |
| 184 | OPT_2PSPSECUREDEBUG_FILE=$(call add_opt_prefix, $(CONFIG_2PSPSECUREDEBUG_FILE), --securedebug2) |
| 185 | OPT_2PSPTRUSTLETS_FILE=$(call add_opt_prefix, $(CONFIG_2PSPTRUSTLETS_FILE), --trustlets2) |
| 186 | OPT_2TRUSTLETKEY_FILE=$(call add_opt_prefix, $(CONFIG_2TRUSTLETKEY_FILE), --trustletkey2) |
| 187 | OPT_2SMUFIRMWARE2_FILE=$(call add_opt_prefix, $(CONFIG_2SMUFIRMWARE2_FILE), --smufirmware2_2) |
| 188 | OPT_2SMUSCS_FILE=$(call add_opt_prefix, $(CONFIG_2SMUSCS_FILE), --smuscs2) |
| 189 | |
| 190 | $(obj)/amdfw.rom: $(call strip_quotes, $(CONFIG_HUDSON_XHCI_FWM_FILE)) \ |
| 191 | $(call strip_quotes, $(CONFIG_HUDSON_IMC_FWM_FILE)) \ |
| 192 | $(call strip_quotes, $(CONFIG_HUDSON_GEC_FWM_FILE)) \ |
| 193 | $(call strip_quotes, $(CONFIG_AMD_PUBKEY_FILE)) \ |
| 194 | $(call strip_quotes, $(CONFIG_PUBSIGNEDKEY_FILE)) \ |
| 195 | $(call strip_quotes, $(CONFIG_PSPBTLDR_FILE)) \ |
| 196 | $(call strip_quotes, $(CONFIG_PSPRCVR_FILE)) \ |
| 197 | $(call strip_quotes, $(CONFIG_PSPSCUREOS_FILE)) \ |
| 198 | $(call strip_quotes, $(CONFIG_PSPNVRAM_FILE)) \ |
| 199 | $(call strip_quotes, $(CONFIG_SMUFWM_FILE)) \ |
| 200 | $(call strip_quotes, $(CONFIG_SMUSCS_FILE)) \ |
| 201 | $(call strip_quotes, $(CONFIG_PSPSECUREDEBUG_FILE)) \ |
| 202 | $(call strip_quotes, $(CONFIG_PSPTRUSTLETS_FILE)) \ |
| 203 | $(call strip_quotes, $(CONFIG_TRUSTLETKEY_FILE)) \ |
| 204 | $(call strip_quotes, $(CONFIG_SMUFIRMWARE2_FILE)) \ |
Marc Jones | c98629c | 2016-09-20 20:50:25 -0600 | [diff] [blame^] | 205 | $(call strip_quotes, $(CONFIG_2AMD_PUBKEY_FILE)) \ |
| 206 | $(call strip_quotes, $(CONFIG_2PUBSIGNEDKEY_FILE)) \ |
| 207 | $(call strip_quotes, $(CONFIG_2PSPBTLDR_FILE)) \ |
| 208 | $(call strip_quotes, $(CONFIG_2SMUFWM_FILE)) \ |
| 209 | $(call strip_quotes, $(CONFIG_2PSPRCVR_FILE)) \ |
| 210 | $(call strip_quotes, $(CONFIG_2PSPSCUREOS_FILE)) \ |
| 211 | $(call strip_quotes, $(CONFIG_2PSPNVRAM_FILE)) \ |
| 212 | $(call strip_quotes, $(CONFIG_2SMUSCS_FILE)) \ |
| 213 | $(call strip_quotes, $(CONFIG_2PSPSECUREDEBUG_FILE)) \ |
| 214 | $(call strip_quotes, $(CONFIG_2PSPTRUSTLETS_FILE)) \ |
| 215 | $(call strip_quotes, $(CONFIG_2TRUSTLETKEY_FILE)) \ |
| 216 | $(call strip_quotes, $(CONFIG_2SMUFIRMWARE2_FILE)) \ |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 217 | $(AMDFWTOOL) |
| 218 | rm -f $@ |
Zheng Bao | a962e06 | 2015-12-08 23:41:37 +0800 | [diff] [blame] | 219 | @printf " AMDFWTOOL $(subst $(obj)/,,$(@))\n" |
Marc Jones | c98629c | 2016-09-20 20:50:25 -0600 | [diff] [blame^] | 220 | echo "$(AMDFWTOOL) \ |
| 221 | $(OPT_HUDSON_XHCI_FWM_FILE) \ |
| 222 | $(OPT_HUDSON_IMC_FWM_FILE) \ |
| 223 | $(OPT_HUDSON_GEC_FWM_FILE) \ |
| 224 | $(OPT_AMD_PUBKEY_FILE) \ |
| 225 | $(OPT_PSPBTLDR_FILE) \ |
| 226 | $(OPT_SMUFWM_FILE) \ |
| 227 | $(OPT_PSPRCVR_FILE) \ |
| 228 | $(OPT_PUBSIGNEDKEY_FILE) \ |
| 229 | $(OPT_PSPSCUREOS_FILE) \ |
| 230 | $(OPT_PSPNVRAM_FILE) \ |
| 231 | $(OPT_PSPSECUREDEBUG_FILE) \ |
| 232 | $(OPT_PSPTRUSTLETS_FILE) \ |
| 233 | $(OPT_TRUSTLETKEY_FILE) \ |
| 234 | $(OPT_SMUFIRMWARE2_FILE) \ |
| 235 | $(OPT_SMUSCS_FILE) \ |
| 236 | $(OPT_2AMD_PUBKEY_FILE) \ |
| 237 | $(OPT_2PSPBTLDR_FILE) \ |
| 238 | $(OPT_2SMUFWM_FILE) \ |
| 239 | $(OPT_2PSPRCVR_FILE) \ |
| 240 | $(OPT_2PUBSIGNEDKEY_FILE) \ |
| 241 | $(OPT_2PSPSCUREOS_FILE) \ |
| 242 | $(OPT_2PSPNVRAM_FILE) \ |
| 243 | $(OPT_2PSPSECUREDEBUG_FILE) \ |
| 244 | $(OPT_2PSPTRUSTLETS_FILE) \ |
| 245 | $(OPT_2TRUSTLETKEY_FILE) \ |
| 246 | $(OPT_2SMUFIRMWARE2_FILE) \ |
| 247 | $(OPT_2SMUSCS_FILE) \ |
| 248 | --output $@" |
Zheng Bao | c64f21c | 2015-11-17 22:58:55 +0800 | [diff] [blame] | 249 | $(AMDFWTOOL) \ |
| 250 | $(OPT_HUDSON_XHCI_FWM_FILE) \ |
| 251 | $(OPT_HUDSON_IMC_FWM_FILE) \ |
| 252 | $(OPT_HUDSON_GEC_FWM_FILE) \ |
| 253 | $(OPT_AMD_PUBKEY_FILE) \ |
| 254 | $(OPT_PSPBTLDR_FILE) \ |
| 255 | $(OPT_SMUFWM_FILE) \ |
| 256 | $(OPT_PSPRCVR_FILE) \ |
| 257 | $(OPT_PUBSIGNEDKEY_FILE) \ |
| 258 | $(OPT_PSPSCUREOS_FILE) \ |
| 259 | $(OPT_PSPNVRAM_FILE) \ |
| 260 | $(OPT_PSPSECUREDEBUG_FILE) \ |
| 261 | $(OPT_PSPTRUSTLETS_FILE) \ |
| 262 | $(OPT_TRUSTLETKEY_FILE) \ |
| 263 | $(OPT_SMUFIRMWARE2_FILE) \ |
| 264 | $(OPT_SMUSCS_FILE) \ |
| 265 | $(OPT_2AMD_PUBKEY_FILE) \ |
| 266 | $(OPT_2PSPBTLDR_FILE) \ |
| 267 | $(OPT_2SMUFWM_FILE) \ |
| 268 | $(OPT_2PSPRCVR_FILE) \ |
| 269 | $(OPT_2PUBSIGNEDKEY_FILE) \ |
| 270 | $(OPT_2PSPSCUREOS_FILE) \ |
| 271 | $(OPT_2PSPNVRAM_FILE) \ |
| 272 | $(OPT_2PSPSECUREDEBUG_FILE) \ |
| 273 | $(OPT_2PSPTRUSTLETS_FILE) \ |
| 274 | $(OPT_2TRUSTLETKEY_FILE) \ |
| 275 | $(OPT_2SMUFIRMWARE2_FILE) \ |
| 276 | $(OPT_2SMUSCS_FILE) \ |
| 277 | --output $@ |
| 278 | |
| 279 | cbfs-files-y += apu/amdfw |
| 280 | apu/amdfw-file := $(obj)/amdfw.rom |
| 281 | apu/amdfw-position := $(HUDSON_FWM_POSITION) |
| 282 | apu/amdfw-type := raw |