Leonardo Sandoval | c4dfbb0 | 2020-08-17 10:21:44 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 2 | # |
Manish V Badarkhe | 107c8e3 | 2021-08-02 19:49:32 +0100 | [diff] [blame] | 3 | # Copyright (c) 2019-2021, Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | # |
| 9 | # This script builds the TF in different configs. |
| 10 | # Rather than telling cov-build to build TF using a simple 'make all' command, |
| 11 | # the goal here is to combine several build flags to analyse more of our source |
| 12 | # code in a single 'build'. The Coverity Scan service does not have the notion |
| 13 | # of separate types of build - there is just one linear sequence of builds in |
| 14 | # the project history. |
| 15 | # |
| 16 | |
| 17 | # Bail out as soon as an error is encountered. |
| 18 | set -e |
| 19 | |
| 20 | TF_SOURCES=$1 |
| 21 | if [ ! -d "$TF_SOURCES" ]; then |
| 22 | echo "ERROR: '$TF_SOURCES' does not exist or is not a directory" |
| 23 | echo "Usage: $(basename "$0") <trusted-firmware-directory>" |
| 24 | exit 1 |
| 25 | fi |
| 26 | |
Leonardo Sandoval | c4dfbb0 | 2020-08-17 10:21:44 -0500 | [diff] [blame] | 27 | containing_dir="$(readlink -f "$(dirname "$0")/")" |
| 28 | . $containing_dir/common-def.sh |
| 29 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 30 | # Get mbed TLS library code to build Trusted Firmware with Trusted Board Boot |
| 31 | # support. The version of mbed TLS to use here must be the same as when |
| 32 | # building TF in the usual context. |
Leonardo Sandoval | c4dfbb0 | 2020-08-17 10:21:44 -0500 | [diff] [blame] | 33 | if [ ! -d "$MBED_TLS_DIR" ]; then |
| 34 | git clone -q --depth 1 -b "$MBED_TLS_SOURCES_TAG" "$MBED_TLS_URL_REPO" "$MBED_TLS_DIR" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 35 | fi |
Leonardo Sandoval | c4dfbb0 | 2020-08-17 10:21:44 -0500 | [diff] [blame] | 36 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 37 | cd "$TF_SOURCES" |
| 38 | |
| 39 | # Clean TF source dir to make sure we don't analyse temporary files. |
| 40 | make distclean |
| 41 | |
| 42 | # |
| 43 | # Build TF in different configurations to get as much coverage as possible |
| 44 | # |
| 45 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 46 | # |
| 47 | # FVP platform |
| 48 | # We'll use the following flags for all FVP builds. |
| 49 | # |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 50 | fvp_common_flags="$(common_flags) PLAT=fvp" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 51 | |
| 52 | # Try all possible SPDs. |
| 53 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} ARM_TSP_RAM_LOCATION=dram SPD=tspd |
| 54 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} ARM_TSP_RAM_LOCATION=dram SPD=tspd TSP_INIT_ASYNC=1 \ |
| 55 | TSP_NS_INTR_ASYNC_PREEMPT=1 |
| 56 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} SPD=opteed |
| 57 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} SPD=tlkd |
| 58 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 59 | # Dualroot chain of trust. |
| 60 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} SPD=tspd COT=dualroot |
| 61 | |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 62 | clean_build $fvp_common_flags SPD=trusty |
| 63 | clean_build $fvp_common_flags SPD=trusty TRUSTY_SPD_WITH_GENERIC_SERVICES=1 |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 64 | |
| 65 | # SDEI |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 66 | clean_build $fvp_common_flags SDEI_SUPPORT=1 EL3_EXCEPTION_HANDLING=1 |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 67 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 68 | # SDEI with fconf |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 69 | clean_build $fvp_common_flags SDEI_IN_FCONF=1 SDEI_SUPPORT=1 EL3_EXCEPTION_HANDLING=1 |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 70 | |
Zelalem | 4f3633e | 2021-06-18 11:53:47 -0500 | [diff] [blame] | 71 | # PCI Service |
| 72 | clean_build $fvp_common_flags SMC_PCI_SUPPORT=1 |
| 73 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 74 | # Secure interrupt descriptors with fconf |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 75 | clean_build $fvp_common_flags SEC_INT_DESC_IN_FCONF=1 |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 76 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 77 | # Without coherent memory |
| 78 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} ARM_TSP_RAM_LOCATION=dram SPD=tspd USE_COHERENT_MEM=0 |
| 79 | |
| 80 | # Using PSCI extended State ID format rather than the original format |
| 81 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} ARM_TSP_RAM_LOCATION=dram SPD=tspd PSCI_EXTENDED_STATE_ID=1 \ |
| 82 | ARM_RECOM_STATE_ID_ENC=1 |
| 83 | |
| 84 | # Alternative boot flows (This changes some of the platform initialisation code) |
| 85 | clean_build $fvp_common_flags EL3_PAYLOAD=0x80000000 |
| 86 | clean_build $fvp_common_flags PRELOADED_BL33_BASE=0x80000000 |
| 87 | |
| 88 | # Using the SP804 timer instead of the Generic Timer |
| 89 | clean_build $fvp_common_flags FVP_USE_SP804_TIMER=1 |
| 90 | |
| 91 | # Using the CCN driver and multi cluster topology |
| 92 | clean_build $fvp_common_flags FVP_CLUSTER_COUNT=4 |
| 93 | |
| 94 | # PMF |
| 95 | clean_build $fvp_common_flags ENABLE_PMF=1 |
| 96 | |
| 97 | # stack protector |
| 98 | clean_build $fvp_common_flags ENABLE_STACK_PROTECTOR=strong |
| 99 | |
| 100 | # AArch32 build |
Leonardo Sandoval | 1c24ae5 | 2020-07-08 11:47:23 -0500 | [diff] [blame] | 101 | clean_build $fvp_common_flags CROSS_COMPILE=arm-none-eabi- \ |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 102 | ARCH=aarch32 AARCH32_SP=sp_min \ |
| 103 | RESET_TO_SP_MIN=1 PRELOADED_BL33_BASE=0x80000000 |
Leonardo Sandoval | 1c24ae5 | 2020-07-08 11:47:23 -0500 | [diff] [blame] | 104 | clean_build $fvp_common_flags CROSS_COMPILE=arm-none-eabi- \ |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 105 | ARCH=aarch32 AARCH32_SP=sp_min |
| 106 | |
| 107 | # Xlat tables lib version 1 (AArch64 and AArch32) |
| 108 | clean_build $fvp_common_flags ARM_XLAT_TABLES_LIB_V1=1 RECLAIM_INIT_CODE=0 |
Leonardo Sandoval | 1c24ae5 | 2020-07-08 11:47:23 -0500 | [diff] [blame] | 109 | clean_build $fvp_common_flags CROSS_COMPILE=arm-none-eabi- \ |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 110 | ARCH=aarch32 AARCH32_SP=sp_min ARM_XLAT_TABLES_LIB_V1=1 RECLAIM_INIT_CODE=0 |
| 111 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 112 | # SPM support based on Management Mode Interface Specification |
| 113 | clean_build $fvp_common_flags SPM_MM=1 EL3_EXCEPTION_HANDLING=1 |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 114 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 115 | # SPM support with TOS(optee) as SPM sitting at S-EL1 |
| 116 | clean_build $fvp_common_flags SPD=spmd SPMD_SPM_AT_SEL2=0 |
| 117 | |
| 118 | # SPM support with Secure hafnium as SPM sitting at S-EL2 |
| 119 | # SP_LAYOUT_FILE is used only during FIP creation but build won't progress |
| 120 | # if we have NULL value to it, so passing a dummy string. |
| 121 | clean_build $fvp_common_flags SPD=spmd SPMD_SPM_AT_SEL2=1 ARM_ARCH_MINOR=4 \ |
Max Shvetsov | 44d2a70 | 2021-02-18 16:41:45 +0000 | [diff] [blame] | 122 | CTX_INCLUDE_EL2_REGS=1 SP_LAYOUT_FILE=dummy |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 123 | |
| 124 | #BL2 at EL3 support |
| 125 | clean_build $fvp_common_flags BL2_AT_EL3=1 |
Leonardo Sandoval | 1c24ae5 | 2020-07-08 11:47:23 -0500 | [diff] [blame] | 126 | clean_build $fvp_common_flags CROSS_COMPILE=arm-none-eabi- \ |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 127 | ARCH=aarch32 AARCH32_SP=sp_min BL2_AT_EL3=1 |
| 128 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 129 | # RAS Extension Support |
| 130 | clean_build $fvp_common_flags EL3_EXCEPTION_HANDLING=1 \ |
| 131 | FAULT_INJECTION_SUPPORT=1 HANDLE_EA_EL3_FIRST=1 RAS_EXTENSION=1 \ |
| 132 | SDEI_SUPPORT=1 |
| 133 | |
| 134 | # Hardware Assisted Coherency(DynamIQ) |
| 135 | clean_build $fvp_common_flags FVP_CLUSTER_COUNT=1 FVP_MAX_CPUS_PER_CLUSTER=8 \ |
| 136 | HW_ASSISTED_COHERENCY=1 USE_COHERENT_MEM=0 |
| 137 | |
| 138 | # Pointer Authentication Support |
| 139 | clean_build $fvp_common_flags CTX_INCLUDE_PAUTH_REGS=1 \ |
| 140 | ARM_ARCH_MINOR=5 EL3_EXCEPTION_HANDLING=1 BRANCH_PROTECTION=1 SDEI_SUPPORT=1 SPD=tspd TSP_NS_INTR_ASYNC_PREEMPT=1 |
| 141 | |
| 142 | # Undefined Behaviour Sanitizer |
| 143 | # Building with UBSAN SANITIZE_UB=on increases the executable size. |
| 144 | # Hence it is only properly supported in bl31 with RESET_TO_BL31 enabled |
| 145 | make $fvp_common_flags clean |
| 146 | make $fvp_common_flags SANITIZE_UB=on RESET_TO_BL31=1 bl31 |
| 147 | |
| 148 | # debugfs feature |
| 149 | clean_build $fvp_common_flags DEBUG=1 USE_DEBUGFS=1 |
| 150 | |
| 151 | # MPAM feature |
| 152 | clean_build $fvp_common_flags ENABLE_MPAM_FOR_LOWER_ELS=1 |
| 153 | |
| 154 | # Using GICv3.1 driver with extended PPI and SPI range |
| 155 | clean_build $fvp_common_flags GIC_EXT_INTID=1 |
| 156 | |
| 157 | # Using GICv4 features with extended PPI and SPI range |
| 158 | clean_build $fvp_common_flags GIC_ENABLE_V4_EXTN=1 GIC_EXT_INTID=1 |
| 159 | |
Alexei Fedorov | 20fdf50 | 2020-07-27 17:36:38 +0100 | [diff] [blame] | 160 | # Measured Boot |
| 161 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} MEASURED_BOOT=1 |
| 162 | |
Manish V Badarkhe | 447e31a | 2020-09-03 07:57:17 +0100 | [diff] [blame] | 163 | # CoT descriptors in device tree |
Manish V Badarkhe | 81102d1 | 2020-10-05 08:02:30 +0100 | [diff] [blame] | 164 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} COT_DESC_IN_DTB=1 USE_ROMLIB=1 |
Manish V Badarkhe | 447e31a | 2020-09-03 07:57:17 +0100 | [diff] [blame] | 165 | |
Manish V Badarkhe | 107c8e3 | 2021-08-02 19:49:32 +0100 | [diff] [blame] | 166 | # PSA FWU support |
| 167 | clean_build $fvp_common_flags ${ARM_TBB_OPTIONS} ARM_GPT_SUPPORT=1 PSA_FWU_SUPPORT=1 USE_ROMLIB=1 |
| 168 | |
Gary Morrison | d57f3d9 | 2021-09-15 15:33:21 -0500 | [diff] [blame] | 169 | # FVP-R platform |
| 170 | clean_build PLAT=fvp_r $(common_flags) all |
| 171 | |
Zelalem Aweke | 773e19b | 2021-08-20 17:41:00 -0500 | [diff] [blame^] | 172 | # FEAT_RME |
| 173 | clean_build $fvp_common_flags ENABLE_RME=1 |
| 174 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 175 | # |
| 176 | # Juno platform |
| 177 | # We'll use the following flags for all Juno builds. |
| 178 | # |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 179 | juno_common_flags="$(common_flags) PLAT=juno" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 180 | clean_build $juno_common_flags SPD=tspd ${ARM_TBB_OPTIONS} |
| 181 | clean_build $juno_common_flags EL3_PAYLOAD=0x80000000 |
Madhukar Pappireddy | dcb31f6 | 2021-05-06 11:36:36 -0500 | [diff] [blame] | 182 | clean_build $juno_common_flags ENABLE_STACK_PROTECTOR=strong ARM_ETHOSN_NPU_DRIVER=1 |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 183 | clean_build $juno_common_flags CSS_USE_SCMI_SDS_DRIVER=0 |
Leonardo Sandoval | eb1d3ce | 2020-08-06 16:04:29 -0500 | [diff] [blame] | 184 | |
Leonardo Sandoval | 5163b56 | 2020-11-20 17:17:59 -0600 | [diff] [blame] | 185 | clean_build $juno_common_flags SPD=tspd ${ARM_TBB_OPTIONS} ARM_CRYPTOCELL_INTEG=1 CCSBROM_LIB_PATH=${CRYPTOCELL_LIB_PATH} KEY_SIZE=2048 |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 186 | |
| 187 | # |
| 188 | # System Guidance for Infrastructure platform SGI575 |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 189 | # Enable build config with RAS_EXTENSION to cover more files |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 190 | make $(common_flags) PLAT=sgi575 ${ARM_TBB_OPTIONS} EL3_EXCEPTION_HANDLING=1 FAULT_INJECTION_SUPPORT=1 \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 191 | HANDLE_EA_EL3_FIRST=1 RAS_EXTENSION=1 SDEI_SUPPORT=1 SPM_MM=1 all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 192 | |
| 193 | # |
Vijayenthiran Subramaniam | 2a47a6d | 2020-07-22 14:16:58 +0530 | [diff] [blame] | 194 | # System Guidance for Infrastructure platform RD-N1-Edge-Dual |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 195 | # |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 196 | make $(common_flags) PLAT=rdn1edge CSS_SGI_CHIP_COUNT=2 ${ARM_TBB_OPTIONS} all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 197 | |
| 198 | # |
| 199 | # System Guidance for Infrastructure platform RD-E1Edge |
| 200 | # |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 201 | make $(common_flags) PLAT=rde1edge ${ARM_TBB_OPTIONS} CSS_SGI_CHIP_COUNT=1 all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 202 | |
| 203 | # |
Aditya Angadi | 634d61f | 2021-01-04 09:30:20 +0530 | [diff] [blame] | 204 | # Reference Design platform RD-V1 |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 205 | # |
Aditya Angadi | 634d61f | 2021-01-04 09:30:20 +0530 | [diff] [blame] | 206 | make $(common_flags) PLAT=rdv1 ${ARM_TBB_OPTIONS} all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 207 | |
| 208 | # |
Aditya Angadi | 61c5476 | 2021-01-04 09:30:52 +0530 | [diff] [blame] | 209 | # Reference Design platform RD-V1-MC |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 210 | # |
Aditya Angadi | 61c5476 | 2021-01-04 09:30:52 +0530 | [diff] [blame] | 211 | make $(common_flags) PLAT=rdv1mc ${ARM_TBB_OPTIONS} CSS_SGI_CHIP_COUNT=4 all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 212 | |
| 213 | # |
Vijayenthiran Subramaniam | a66de33 | 2020-11-23 14:20:14 +0530 | [diff] [blame] | 214 | # Reference Design Platform RD-N2 |
| 215 | # |
| 216 | make $(common_flags) PLAT=rdn2 ${ARM_TBB_OPTIONS} all |
| 217 | |
| 218 | # |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 219 | # Neoverse N1 SDP platform |
| 220 | # |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 221 | make $(common_flags) PLAT=n1sdp ${ARM_TBB_OPTIONS} all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 222 | |
| 223 | # |
| 224 | # FVP VE platform |
| 225 | # |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 226 | make $(common_flags) PLAT=fvp_ve AARCH32_SP=sp_min ARCH=aarch32 \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 227 | CROSS_COMPILE=arm-none-eabi- ARM_ARCH_MAJOR=7 \ |
| 228 | ARM_CORTEX_A5=yes ARM_XLAT_TABLES_LIB_V1=1 \ |
| 229 | FVP_HW_CONFIG_DTS=fdts/fvp-ve-Cortex-A5x1.dts all |
| 230 | |
| 231 | # |
| 232 | # A5 DesignStart Platform |
| 233 | # |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 234 | make $(common_flags) PLAT=a5ds AARCH32_SP=sp_min ARCH=aarch32 \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 235 | ARM_ARCH_MAJOR=7 ARM_CORTEX_A5=yes ARM_XLAT_TABLES_LIB_V1=1 \ |
| 236 | CROSS_COMPILE=arm-none-eabi- FVP_HW_CONFIG_DTS=fdts/a5ds.dts |
| 237 | |
| 238 | # |
| 239 | # Corstone700 Platform |
| 240 | # |
| 241 | |
| 242 | corstone700_common_flags="CROSS_COMPILE=arm-none-eabi- \ |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 243 | $(common_flags) \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 244 | PLAT=corstone700 \ |
| 245 | ARCH=aarch32 \ |
| 246 | RESET_TO_SP_MIN=1 \ |
| 247 | AARCH32_SP=sp_min \ |
| 248 | ARM_LINUX_KERNEL_AS_BL33=0 \ |
| 249 | ARM_PRELOADED_DTB_BASE=0x80400000 \ |
| 250 | ENABLE_PIE=1 \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 251 | ENABLE_STACK_PROTECTOR=all \ |
| 252 | all" |
| 253 | |
| 254 | echo "Info: Building Corstone700 FVP ..." |
| 255 | |
| 256 | make TARGET_PLATFORM=fvp ${corstone700_common_flags} |
| 257 | |
| 258 | echo "Info: Building Corstone700 FPGA ..." |
| 259 | |
| 260 | make TARGET_PLATFORM=fpga ${corstone700_common_flags} |
| 261 | |
| 262 | # |
| 263 | # Arm internal FPGA port |
| 264 | # |
Andre Przywara | 268c5c7 | 2021-09-03 14:56:56 +0100 | [diff] [blame] | 265 | make PLAT=arm_fpga $(common_flags) \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 266 | FPGA_PRELOADED_DTB_BASE=0x88000000 PRELOADED_BL33_BASE=0x82080000 all |
| 267 | |
| 268 | # |
Usama Arif | cba711d | 2021-08-04 15:53:42 +0100 | [diff] [blame] | 269 | # Total Compute platforms |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 270 | # |
Usama Arif | cba711d | 2021-08-04 15:53:42 +0100 | [diff] [blame] | 271 | make $(common_flags) PLAT=tc TARGET_PLATFORM=0 ${ARM_TBB_OPTIONS} all |
| 272 | make $(common_flags) PLAT=tc TARGET_PLATFORM=1 ${ARM_TBB_OPTIONS} all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 273 | |
Chandni Cherukuri | fb803e1 | 2020-10-01 17:49:08 +0530 | [diff] [blame] | 274 | # |
| 275 | # Morello platform |
| 276 | # |
| 277 | make $(common_flags) PLAT=morello all |
| 278 | |
Abdellatif El Khlifi | c16fe91 | 2021-08-03 12:35:16 +0100 | [diff] [blame] | 279 | # |
| 280 | # diphda Platform |
| 281 | # |
| 282 | |
| 283 | make $(common_flags) \ |
| 284 | PLAT=diphda \ |
| 285 | SPD=spmd \ |
| 286 | TARGET_PLATFORM=fpga \ |
| 287 | ENABLE_STACK_PROTECTOR=strong \ |
| 288 | ENABLE_PIE=1 \ |
| 289 | BL2_AT_EL3=1 \ |
| 290 | SPMD_SPM_AT_SEL2=0 \ |
| 291 | ${ARM_TBB_OPTIONS} \ |
| 292 | CREATE_KEYS=1 \ |
| 293 | COT=tbbr \ |
| 294 | ROT_KEY=plat/arm/board/common/rotpk/arm_rotprivk_rsa.pem \ |
| 295 | bl2 \ |
| 296 | bl31 |
| 297 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 298 | # Partners' platforms. |
| 299 | # Enable as many features as possible. |
| 300 | # We don't need to clean between each build here because we only do one build |
| 301 | # per platform so we don't hit the build flags dependency problem. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 302 | |
Manish Pandey | 9c0ee74 | 2021-07-08 09:55:59 +0100 | [diff] [blame] | 303 | # Platforms from Mediatek |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 304 | make PLAT=mt8173 $(common_flags) all |
| 305 | make PLAT=mt8183 $(common_flags) all |
Zelalem | d86e876 | 2020-08-21 18:24:28 -0500 | [diff] [blame] | 306 | make PLAT=mt8192 $(common_flags) COREBOOT=1 all |
Manish Pandey | 9c0ee74 | 2021-07-08 09:55:59 +0100 | [diff] [blame] | 307 | make PLAT=mt8195 $(common_flags) COREBOOT=1 all |
Zelalem | d86e876 | 2020-08-21 18:24:28 -0500 | [diff] [blame] | 308 | |
| 309 | # Platforms from Qualcomm |
| 310 | make PLAT=sc7180 $(common_flags) COREBOOT=1 all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 311 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 312 | make PLAT=rk3288 CROSS_COMPILE=arm-none-eabi- \ |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 313 | $(common_flags) ARCH=aarch32 AARCH32_SP=sp_min all |
Madhukar Pappireddy | d491ad0 | 2020-12-03 10:37:05 -0600 | [diff] [blame] | 314 | make PLAT=rk3368 $(common_flags) COREBOOT=1 \ |
| 315 | ENABLE_STACK_PROTECTOR=strong all |
| 316 | make PLAT=rk3399 $(common_flags) COREBOOT=1 PLAT_RK_DP_HDCP=1 \ |
| 317 | ENABLE_STACK_PROTECTOR=strong all |
| 318 | make PLAT=rk3328 $(common_flags) COREBOOT=1 PLAT_RK_SECURE_DDR_MINILOADER=1 \ |
| 319 | ENABLE_STACK_PROTECTOR=strong all |
| 320 | make PLAT=px30 $(common_flags) PLAT_RK_SECURE_DDR_MINILOADER=1 \ |
| 321 | ENABLE_STACK_PROTECTOR=strong all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 322 | |
| 323 | # Although we do several consecutive builds for the Tegra platform below, we |
| 324 | # don't need to clean between each one because the Tegra makefiles specify |
| 325 | # a different build directory per SoC. |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 326 | make PLAT=tegra TARGET_SOC=t210 $(common_flags) all |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 327 | make PLAT=tegra TARGET_SOC=t186 $(common_flags) all |
| 328 | make PLAT=tegra TARGET_SOC=t194 $(common_flags) all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 329 | |
| 330 | # For the Xilinx platform, artificially increase the extents of BL31 memory |
| 331 | # (using the platform-specific build options ZYNQMP_ATF_MEM_{BASE,SIZE}). |
| 332 | # If we keep the default values, BL31 doesn't fit when it is built with all |
| 333 | # these build flags. |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 334 | make PLAT=zynqmp $(common_flags) \ |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 335 | RESET_TO_BL31=1 SPD=tspd \ |
Zelalem | 4f3633e | 2021-06-18 11:53:47 -0500 | [diff] [blame] | 336 | SDEI_SUPPORT=1 \ |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 337 | ZYNQMP_ATF_MEM_BASE=0xFFFC0000 ZYNQMP_ATF_MEM_SIZE=0x00040000 \ |
| 338 | all |
| 339 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 340 | # Build both for silicon (default) and virtual QEMU platform. |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 341 | clean_build PLAT=versal $(common_flags) |
| 342 | clean_build PLAT=versal $(common_flags) VERSAL_PLATFORM=versal_virt |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 343 | |
| 344 | # Platforms from Allwinner |
Andre Przywara | cf78a51 | 2021-09-03 14:59:38 +0100 | [diff] [blame] | 345 | clean_build PLAT=sun50i_a64 $(common_flags) all |
| 346 | clean_build PLAT=sun50i_a64 $(common_flags) SUNXI_PSCI_USE_NATIVE=0 all |
| 347 | clean_build PLAT=sun50i_a64 $(common_flags) SUNXI_PSCI_USE_SCPI=0 all |
| 348 | clean_build PLAT=sun50i_h6 $(common_flags) all |
| 349 | clean_build PLAT=sun50i_h6 $(common_flags) SUNXI_PSCI_USE_NATIVE=0 all |
| 350 | clean_build PLAT=sun50i_h6 $(common_flags) SUNXI_PSCI_USE_SCPI=0 all |
| 351 | clean_build PLAT=sun50i_h616 $(common_flags) all |
| 352 | clean_build PLAT=sun50i_r329 $(common_flags) all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 353 | |
| 354 | # Platforms from i.MX |
| 355 | make AARCH32_SP=optee ARCH=aarch32 ARM_ARCH_MAJOR=7 ARM_CORTEX_A7=yes \ |
| 356 | CROSS_COMPILE=arm-none-eabi- PLAT=warp7 ${TBB_OPTIONS} \ |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 357 | $(common_flags) all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 358 | make AARCH32_SP=optee ARCH=aarch32 CROSS_COMPILE=arm-none-eabi- PLAT=picopi \ |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 359 | $(common_flags) all |
| 360 | make PLAT=imx8mm $(common_flags) all |
| 361 | make PLAT=imx8mn $(common_flags) all |
| 362 | make PLAT=imx8mp $(common_flags) all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 363 | |
Jacky Bai | b6cecc8 | 2021-06-07 09:49:46 +0800 | [diff] [blame] | 364 | # Due to the limited OCRAM space that can be used for TF-A, build test |
| 365 | # will report failure caused by too small RAM size, so comment out the |
| 366 | # build test for imx8mq in CI. It can also resolve the following ticket: |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 367 | # https://developer.trustedfirmware.org/T626 |
Jacky Bai | b6cecc8 | 2021-06-07 09:49:46 +0800 | [diff] [blame] | 368 | #make PLAT=imx8mq $(common_flags release) all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 369 | |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 370 | make PLAT=imx8qm $(common_flags) all |
| 371 | make PLAT=imx8qx $(common_flags) all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 372 | |
Olivier Deprez | bac7019 | 2021-04-02 08:55:36 +0200 | [diff] [blame] | 373 | # Platforms for NXP Layerscape |
| 374 | make PLAT=lx2160aqds $(common_flags) all |
| 375 | make PLAT=lx2160ardb $(common_flags) all |
Madhukar Pappireddy | f93a4d4 | 2021-06-01 17:44:51 -0500 | [diff] [blame] | 376 | |
| 377 | #CSF Based CoT: |
| 378 | clean_build PLAT=lx2162aqds $(common_flags) BOOT_MODE=flexspi_nor SPD=opteed \ |
| 379 | TRUSTED_BOARD_BOOT=1 CST_DIR=$(pwd) DDR_PHY_BIN_PATH=$(pwd) |
| 380 | |
| 381 | #X509 Based CoT |
| 382 | clean_build PLAT=lx2162aqds $(common_flags) BOOT_MODE=flexspi_nor SPD=opteed \ |
| 383 | TRUSTED_BOARD_BOOT=1 CST_DIR=$(pwd) GENERATE_COT=1 \ |
| 384 | MBEDTLS_DIR=$(pwd)/mbedtls |
| 385 | |
| 386 | #BOOT_MODE=emmc and Stack protector |
| 387 | clean_build PLAT=lx2162aqds $(common_flags) BOOT_MODE=emmc SPD=opteed \ |
| 388 | TRUSTED_BOARD_BOOT=1 CST_DIR=$(pwd) ENABLE_STACK_PROTECTOR=strong |
Olivier Deprez | bac7019 | 2021-04-02 08:55:36 +0200 | [diff] [blame] | 389 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 390 | # Platforms from Intel |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 391 | make PLAT=stratix10 $(common_flags) all |
| 392 | make PLAT=agilex $(common_flags) all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 393 | |
| 394 | # Platforms from Broadcom |
Olivier Deprez | 07cc98b | 2021-04-02 09:56:55 +0200 | [diff] [blame] | 395 | clean_build PLAT=stingray $(common_flags) BOARD_CFG=bcm958742t INCLUDE_EMMC_DRIVER_ERASE_CODE=1 DRIVER_I2C_ENABLE=1 |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 396 | clean_build PLAT=stingray $(common_flags) BOARD_CFG=bcm958742t-ns3 INCLUDE_EMMC_DRIVER_ERASE_CODE=1 |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 397 | |
| 398 | # Platforms from Marvell |
Madhukar Pappireddy | 4fce99e | 2021-09-15 14:33:35 -0500 | [diff] [blame] | 399 | make PLAT=a3700 $(common_flags) SCP_BL2=/dev/null CM3_SYSTEM_RESET=1 \ |
| 400 | A3720_DB_PM_WAKEUP_SRC=1 HANDLE_EA_EL3_FIRST=1 all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 401 | |
Leonardo Sandoval | c044377 | 2020-11-12 11:22:48 -0600 | [diff] [blame] | 402 | # Source files from mv-ddr-marvell repository are necessary |
| 403 | # to build below four platforms |
Pali Rohár | 6d8ddb4 | 2021-07-15 21:33:50 +0200 | [diff] [blame] | 404 | wget https://downloads.trustedfirmware.org/tf-a/mv-ddr-marvell/mv-ddr-marvell-02e23dbcf8dd22e038986052d99319a0eba8f25f.tar.gz 2> /dev/null |
| 405 | tar -xzf mv-ddr-marvell-02e23dbcf8dd22e038986052d99319a0eba8f25f.tar.gz 2> /dev/null |
Leonardo Sandoval | c044377 | 2020-11-12 11:22:48 -0600 | [diff] [blame] | 406 | mv mv-ddr-marvell drivers/marvell/mv_ddr |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 407 | |
Leonardo Sandoval | c044377 | 2020-11-12 11:22:48 -0600 | [diff] [blame] | 408 | # These platforms from Marvell have dependency on GCC-6.2.1 toolchain |
Pali Rohár | 8f89040 | 2021-07-19 13:48:05 +0200 | [diff] [blame] | 409 | make PLAT=a80x0 DEBUG=1 SCP_BL2=/dev/null BL33=/dev/null MV_DDR_PATH=$PWD/drivers/marvell/mv_ddr \ |
Pali Rohár | c344a62 | 2021-07-15 22:01:04 +0200 | [diff] [blame] | 410 | CROSS_COMPILE="$(set_cross_compile_gcc_linaro_toolchain)" all mrvl_flash |
Pali Rohár | 8f89040 | 2021-07-19 13:48:05 +0200 | [diff] [blame] | 411 | make PLAT=a80x0_mcbin DEBUG=1 SCP_BL2=/dev/null BL33=/dev/null MV_DDR_PATH=$PWD/drivers/marvell/mv_ddr \ |
Pali Rohár | c344a62 | 2021-07-15 22:01:04 +0200 | [diff] [blame] | 412 | CROSS_COMPILE="$(set_cross_compile_gcc_linaro_toolchain)" all mrvl_flash |
Pali Rohár | 8f89040 | 2021-07-19 13:48:05 +0200 | [diff] [blame] | 413 | make PLAT=a70x0 DEBUG=1 SCP_BL2=/dev/null BL33=/dev/null MV_DDR_PATH=$PWD/drivers/marvell/mv_ddr \ |
Pali Rohár | c344a62 | 2021-07-15 22:01:04 +0200 | [diff] [blame] | 414 | CROSS_COMPILE="$(set_cross_compile_gcc_linaro_toolchain)" all mrvl_flash |
Pali Rohár | 8f89040 | 2021-07-19 13:48:05 +0200 | [diff] [blame] | 415 | make PLAT=a70x0_amc DEBUG=1 SCP_BL2=/dev/null BL33=/dev/null MV_DDR_PATH=$PWD/drivers/marvell/mv_ddr \ |
Pali Rohár | c344a62 | 2021-07-15 22:01:04 +0200 | [diff] [blame] | 416 | CROSS_COMPILE="$(set_cross_compile_gcc_linaro_toolchain)" all mrvl_flash |
Pali Rohár | 8f89040 | 2021-07-19 13:48:05 +0200 | [diff] [blame] | 417 | make PLAT=a80x0_puzzle DEBUG=1 SCP_BL2=/dev/null BL33=/dev/null MV_DDR_PATH=$PWD/drivers/marvell/mv_ddr \ |
Pali Rohár | c344a62 | 2021-07-15 22:01:04 +0200 | [diff] [blame] | 418 | CROSS_COMPILE="$(set_cross_compile_gcc_linaro_toolchain)" all mrvl_flash |
Pali Rohár | 8f89040 | 2021-07-19 13:48:05 +0200 | [diff] [blame] | 419 | make PLAT=t9130 DEBUG=1 SCP_BL2=/dev/null BL33=/dev/null MV_DDR_PATH=$PWD/drivers/marvell/mv_ddr \ |
Pali Rohár | c344a62 | 2021-07-15 22:01:04 +0200 | [diff] [blame] | 420 | CROSS_COMPILE="$(set_cross_compile_gcc_linaro_toolchain)" all mrvl_flash |
Madhukar Pappireddy | 4fce99e | 2021-09-15 14:33:35 -0500 | [diff] [blame] | 421 | make PLAT=t9130_cex7_eval DEBUG=1 SCP_BL2=/dev/null BL33=/dev/null MV_DDR_PATH=$PWD/drivers/marvell/mv_ddr \ |
| 422 | CROSS_COMPILE="$(set_cross_compile_gcc_linaro_toolchain)" all mrvl_flash |
Leonardo Sandoval | eb1d3ce | 2020-08-06 16:04:29 -0500 | [diff] [blame] | 423 | |
Leonardo Sandoval | c044377 | 2020-11-12 11:22:48 -0600 | [diff] [blame] | 424 | # Removing the source files |
| 425 | rm -rf drivers/marvell/mv_ddr 2> /dev/null |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 426 | |
| 427 | # Platforms from Meson |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 428 | make PLAT=gxbb $(common_flags) all |
| 429 | make PLAT=gxl $(common_flags) all |
| 430 | make PLAT=g12a $(common_flags) all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 431 | |
| 432 | # Platforms from Renesas |
| 433 | # Renesas R-Car D3 Automotive SoC |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 434 | clean_build PLAT=rcar $(common_flags) BL32=Makefile \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 435 | BL33=Makefile LIFEC_DBSC_PROTECT_ENABLE=0 LSI=D3 \ |
| 436 | MBEDTLS_DIR=$(pwd)/mbedtls PMIC_ROHM_BD9571=0 \ |
| 437 | RCAR_AVS_SETTING_ENABLE=0 SPD=none RCAR_LOSSY_ENABLE=0 \ |
| 438 | RCAR_SA0_SIZE=0 RCAR_SYSTEM_SUSPEND=0 TRUSTED_BOARD_BOOT=1 |
| 439 | |
| 440 | # Renesas R-Car H3 Automotive SoC |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 441 | clean_build PLAT=rcar $(common_flags) BL32=Makefile \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 442 | BL33=Makefile MBEDTLS_DIR=$(pwd)/mbedtls LSI=H3 \ |
| 443 | MACHINE=ulcb PMIC_LEVEL_MODE=0 RCAR_DRAM_LPDDR4_MEMCONF=0 \ |
| 444 | RCAR_DRAM_SPLIT=1 RCAR_GEN3_ULCB=1 SPD=opteed \ |
| 445 | TRUSTED_BOARD_BOOT=1 |
| 446 | |
| 447 | # Renesas R-Car H3N Automotive SoC |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 448 | clean_build PLAT=rcar $(common_flags) BL32=Makefile \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 449 | BL33=Makefile MBEDTLS_DIR=$(pwd)/mbedtls LSI=H3N \ |
| 450 | SPD=opteed TRUSTED_BOARD_BOOT=1 |
| 451 | |
| 452 | # Renesas R-Car M3 Automotive SoC |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 453 | clean_build PLAT=rcar $(common_flags) BL32=Makefile \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 454 | BL33=Makefile MBEDTLS_DIR=$(pwd)/mbedtls LSI=M3 \ |
| 455 | MACHINE=ulcb PMIC_LEVEL_MODE=0 RCAR_DRAM_LPDDR4_MEMCONF=0 \ |
| 456 | RCAR_DRAM_SPLIT=2 RCAR_GEN3_ULCB=1 SPD=opteed \ |
| 457 | TRUSTED_BOARD_BOOT=1 |
| 458 | |
| 459 | # Renesas R-Car M3N Automotive SoC |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 460 | clean_build PLAT=rcar $(common_flags) BL32=Makefile \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 461 | BL33=Makefile MBEDTLS_DIR=$(pwd)/mbedtls LSI=M3N \ |
| 462 | MACHINE=ulcb PMIC_LEVEL_MODE=0 RCAR_DRAM_LPDDR4_MEMCONF=0 \ |
| 463 | RCAR_GEN3_ULCB=1 SPD=opteed TRUSTED_BOARD_BOOT=1 |
| 464 | |
| 465 | # Renesas R-Car E3 Automotive SoC |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 466 | clean_build PLAT=rcar $(common_flags) BL32=Makefile \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 467 | BL33=Makefile MBEDTLS_DIR=$(pwd)/mbedtls LSI=E3 \ |
| 468 | RCAR_AVS_SETTING_ENABLE=0 RCAR_DRAM_DDR3L_MEMCONF=0 \ |
| 469 | RCAR_SA0_SIZE=0 SPD=opteed TRUSTED_BOARD_BOOT=1 |
| 470 | |
| 471 | # Renesas R-Car V3M Automotive SoC |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 472 | clean_build PLAT=rcar $(common_flags) BL32=Makefile \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 473 | MBEDTLS_DIR=$(pwd)/mbedtls BL33=Makefile LSI=V3M MACHINE=eagle \ |
| 474 | PMIC_ROHM_BD9571=0 RCAR_DRAM_SPLIT=0 RCAR_SYSTEM_SUSPEND=0 \ |
| 475 | AVS_SETTING_ENABLE=0 SPD=none TRUSTED_BOARD_BOOT=1 |
| 476 | |
Zelalem | f429967 | 2021-01-29 12:52:59 -0600 | [diff] [blame] | 477 | # Renesas HiHope RZ/G2M development kit |
| 478 | clean_build PLAT=rzg $(common_flags) \ |
| 479 | MBEDTLS_DIR=$(pwd)/mbedtls LSI=G2M \ |
| 480 | RCAR_DRAM_SPLIT=2 RCAR_LOSSY_ENABLE=1 SPD=none |
| 481 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 482 | # Platforms from ST |
Yann Gautier | a69cf79 | 2021-09-01 11:19:01 +0200 | [diff] [blame] | 483 | # STM32MP1 SDMMC boot |
| 484 | make PLAT=stm32mp1 CROSS_COMPILE=arm-none-eabi- \ |
| 485 | $(common_flags) ARM_ARCH_MAJOR=7 STM32MP_SDMMC=1 \ |
| 486 | BUILD_PLAT=build/stm32mp1-sdmmc/debug \ |
| 487 | ARCH=aarch32 AARCH32_SP=sp_min ENABLE_STACK_PROTECTOR=strong bl2 bl32 |
| 488 | |
| 489 | # STM32MP1 eMMC boot |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 490 | make PLAT=stm32mp1 CROSS_COMPILE=arm-none-eabi- \ |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 491 | $(common_flags) ARM_ARCH_MAJOR=7 STM32MP_EMMC=1 \ |
Yann Gautier | a69cf79 | 2021-09-01 11:19:01 +0200 | [diff] [blame] | 492 | BUILD_PLAT=build/stm32mp1-emmc/debug \ |
| 493 | ARCH=aarch32 AARCH32_SP=sp_min ENABLE_STACK_PROTECTOR=strong bl2 bl32 |
| 494 | |
| 495 | # STM32MP1 Raw NAND boot |
| 496 | make PLAT=stm32mp1 CROSS_COMPILE=arm-none-eabi- \ |
| 497 | $(common_flags) ARM_ARCH_MAJOR=7 STM32MP_RAW_NAND=1 \ |
| 498 | BUILD_PLAT=build/stm32mp1-nand/debug \ |
| 499 | ARCH=aarch32 AARCH32_SP=sp_min ENABLE_STACK_PROTECTOR=strong bl2 bl32 |
| 500 | |
| 501 | # STM32MP1 SPI NAND boot |
| 502 | make PLAT=stm32mp1 CROSS_COMPILE=arm-none-eabi- \ |
| 503 | $(common_flags) ARM_ARCH_MAJOR=7 STM32MP_SPI_NAND=1 \ |
| 504 | BUILD_PLAT=build/stm32mp1-snand/debug \ |
| 505 | ARCH=aarch32 AARCH32_SP=sp_min ENABLE_STACK_PROTECTOR=strong bl2 bl32 |
| 506 | |
| 507 | # STM32MP1 SPI NOR boot |
| 508 | make PLAT=stm32mp1 CROSS_COMPILE=arm-none-eabi- \ |
| 509 | $(common_flags) ARM_ARCH_MAJOR=7 STM32MP_SPI_NOR=1 \ |
| 510 | BUILD_PLAT=build/stm32mp1-snor/debug \ |
| 511 | ARCH=aarch32 AARCH32_SP=sp_min ENABLE_STACK_PROTECTOR=strong bl2 bl32 |
| 512 | |
| 513 | # STM32MP1 SDMMC boot without FIP |
| 514 | make PLAT=stm32mp1 CROSS_COMPILE=arm-none-eabi- \ |
| 515 | $(common_flags) ARM_ARCH_MAJOR=7 STM32MP_SDMMC=1 \ |
| 516 | BUILD_PLAT=build/stm32mp1-sdmmc-stm32image/debug \ |
| 517 | STM32MP_USE_STM32IMAGE=1 \ |
| 518 | ARCH=aarch32 AARCH32_SP=sp_min ENABLE_STACK_PROTECTOR=strong bl2 bl32 |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 519 | |
| 520 | # Platforms from TI |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 521 | make PLAT=k3 $(common_flags) all |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 522 | |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 523 | clean_build PLAT=qemu $(common_flags) ${TBB_OPTIONS} |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 524 | # Use GICV3 driver |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 525 | clean_build PLAT=qemu $(common_flags) QEMU_USE_GIC_DRIVER=QEMU_GICV3 \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 526 | ENABLE_STACK_PROTECTOR=strong |
| 527 | # Use encrypted FIP feature. |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 528 | clean_build PLAT=qemu $(common_flags) ${TBB_OPTIONS} \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 529 | BL32_RAM_LOCATION=tdram DECRYPTION_SUPPORT=aes_gcm ENCRYPT_BL31=1 \ |
| 530 | ENCRYPT_BL32=1 FW_ENC_STATUS=0 SPD=opteed |
| 531 | |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 532 | clean_build PLAT=qemu_sbsa $(common_flags) |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 533 | |
Zelalem | d86e876 | 2020-08-21 18:24:28 -0500 | [diff] [blame] | 534 | # QEMU with SPM support |
| 535 | clean_build PLAT=qemu_sbsa $(common_flags) BL32=Makefile SPM_MM=1 \ |
| 536 | EL3_EXCEPTION_HANDLING=1 |
| 537 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 538 | # For hikey enable PMF to include all files in the platform port |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 539 | make PLAT=hikey $(common_flags) ${TBB_OPTIONS} ENABLE_PMF=1 all |
| 540 | make PLAT=hikey960 $(common_flags) ${TBB_OPTIONS} all |
| 541 | make PLAT=poplar $(common_flags) all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 542 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 543 | # Platforms from Socionext |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 544 | clean_build PLAT=uniphier $(common_flags) ${TBB_OPTIONS} SPD=tspd |
| 545 | clean_build PLAT=uniphier $(common_flags) FIP_GZIP=1 |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 546 | |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 547 | clean_build PLAT=synquacer $(common_flags) SPM_MM=1 \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 548 | EL3_EXCEPTION_HANDLING=1 PRELOADED_BL33_BASE=0x0 |
| 549 | |
| 550 | # Support for SCP Message Interface protocol with platform specific drivers |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 551 | clean_build PLAT=synquacer $(common_flags) \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 552 | PRELOADED_BL33_BASE=0x0 SQ_USE_SCMI_DRIVER=1 |
| 553 | |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 554 | make PLAT=poplar $(common_flags) all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 555 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 556 | # Raspberry Pi Platforms |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 557 | make PLAT=rpi3 $(common_flags) ${TBB_OPTIONS} \ |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 558 | ENABLE_STACK_PROTECTOR=strong PRELOADED_BL33_BASE=0xDEADBEEF all |
Andre Przywara | e917ec8 | 2021-09-03 15:01:30 +0100 | [diff] [blame] | 559 | clean_build PLAT=rpi4 $(common_flags) SMC_PCI_SUPPORT=1 all |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 560 | |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 561 | # Cannot use $(common_flags) for LS1043 platform, as then |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 562 | # the binaries do not fit in memory. |
| 563 | clean_build PLAT=ls1043 SPD=opteed ENABLE_STACK_PROTECTOR=strong |
| 564 | clean_build PLAT=ls1043 SPD=tspd |
| 565 | |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 566 | # A113D (AXG) platform. |
Leonardo Sandoval | 97e2ef0 | 2020-08-06 13:29:08 -0500 | [diff] [blame] | 567 | clean_build PLAT=axg $(common_flags) SPD=opteed |
| 568 | clean_build PLAT=axg $(common_flags) AML_USE_ATOS=1 |
Zelalem | c9531f8 | 2020-08-04 15:37:08 -0500 | [diff] [blame] | 569 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 570 | cd .. |