Andrew Walbran | dc8ad20 | 2019-03-07 15:49:28 +0000 | [diff] [blame] | 1 | # Copyright 2018 The Hafnium Authors. |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 2 | # |
Andrew Walbran | 23417d8 | 2020-06-17 14:44:22 +0100 | [diff] [blame] | 3 | # Use of this source code is governed by a BSD-style |
| 4 | # license that can be found in the LICENSE file or at |
| 5 | # https://opensource.org/licenses/BSD-3-Clause. |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 6 | |
| 7 | import("//build/toolchain/embedded.gni") |
| 8 | import("//build/toolchain/host.gni") |
| 9 | |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 10 | group("root") { |
| 11 | deps = [ |
| 12 | "//src:hafnium(:aem_v8a_fvp_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 13 | "//src:hafnium(:aem_v8a_fvp_vhe_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 14 | "//src:hafnium(:qemu_aarch64_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 15 | "//src:hafnium(:qemu_aarch64_vhe_clang)", |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 16 | "//src:hafnium(:rpi4_clang)", |
Jose Marinho | 69cd27d | 2019-10-17 15:51:31 +0100 | [diff] [blame] | 17 | "//src:hafnium(:secure_aem_v8a_fvp_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 18 | "//src:hafnium(:secure_aem_v8a_fvp_vhe_clang)", |
Usama Arif | f0996a5 | 2021-08-09 14:28:30 +0100 | [diff] [blame] | 19 | "//src:hafnium(:secure_tc_clang)", |
Andrew Walbran | 92627a8 | 2020-01-17 10:52:44 +0000 | [diff] [blame] | 20 | "//src/arch/aarch64/qemuloader:bl(:qemu_aarch64_clang)", |
Raghu Krishnamurthy | e0ede85 | 2021-12-04 14:29:57 -0800 | [diff] [blame] | 21 | "//src/arch/aarch64/qemuloader:bl(:qemu_aarch64_vhe_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 22 | ] |
| 23 | } |
| 24 | |
| 25 | group("test_root") { |
| 26 | testonly = true |
| 27 | |
| 28 | deps = [ |
| 29 | "//src:unit_tests(:host_fake_clang)", |
Andrew Walbran | fd37939 | 2019-03-14 17:45:04 +0000 | [diff] [blame] | 30 | "//test/arch(:aem_v8a_fvp_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 31 | "//test/arch(:aem_v8a_fvp_vhe_clang)", |
Andrew Scull | 75da2d1 | 2018-12-09 21:25:45 +0000 | [diff] [blame] | 32 | "//test/arch(:qemu_aarch64_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 33 | "//test/arch(:qemu_aarch64_vhe_clang)", |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 34 | "//test/arch(:rpi4_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 35 | "//test/linux(:aem_v8a_fvp_vhe_vm_clang)", |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 36 | "//test/linux(:aem_v8a_fvp_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 37 | "//test/linux(:qemu_aarch64_vhe_vm_clang)", |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 38 | "//test/linux(:qemu_aarch64_vm_clang)", |
Andrew Walbran | 3eeaa40 | 2019-11-01 14:48:29 +0000 | [diff] [blame] | 39 | "//test/linux(:rpi4_vm_clang)", |
Olivier Deprez | acd0a4e | 2022-02-23 09:31:21 +0100 | [diff] [blame] | 40 | "//test/vmapi:partitions(:secure_aem_v8a_fvp_vhe_vm_clang)", |
| 41 | "//test/vmapi:partitions(:secure_aem_v8a_fvp_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 42 | "//test/vmapi(:aem_v8a_fvp_vhe_vm_clang)", |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 43 | "//test/vmapi(:aem_v8a_fvp_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 44 | "//test/vmapi(:qemu_aarch64_vhe_vm_clang)", |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 45 | "//test/vmapi(:qemu_aarch64_vm_clang)", |
Andrew Walbran | 3eeaa40 | 2019-11-01 14:48:29 +0000 | [diff] [blame] | 46 | "//test/vmapi(:rpi4_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 47 | "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:aem_v8a_fvp_vhe_vm_clang)", |
Andrew Scull | 3fe2408 | 2019-09-30 15:27:23 +0100 | [diff] [blame] | 48 | "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:aem_v8a_fvp_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 49 | "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:qemu_aarch64_vhe_vm_clang)", |
Andrew Scull | 3fe2408 | 2019-09-30 15:27:23 +0100 | [diff] [blame] | 50 | "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:qemu_aarch64_vm_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 51 | ] |
| 52 | } |
| 53 | |
| 54 | # Describe each of the platforms used in this project. |
| 55 | |
| 56 | host_toolchain("host_fake") { |
| 57 | use_platform = true |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame] | 58 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 59 | max_cpus = 4 |
| 60 | max_vms = 6 |
| 61 | } |
| 62 | |
Jose Marinho | 69cd27d | 2019-10-17 15:51:31 +0100 | [diff] [blame] | 63 | aarch64_toolchains("secure_aem_v8a_fvp") { |
| 64 | cpu = "cortex-a57" |
| 65 | origin_address = "0x06000000" |
Olivier Deprez | 59e35f7 | 2020-11-10 17:15:18 +0100 | [diff] [blame] | 66 | boot_flow = "//src/boot_flow:spmc" |
Jose Marinho | 69cd27d | 2019-10-17 15:51:31 +0100 | [diff] [blame] | 67 | console = "//src/arch/aarch64/pl011" |
Madhukar Pappireddy | f2a1e5c | 2020-11-16 13:06:33 -0600 | [diff] [blame] | 68 | iommu = "//src/arch/aarch64/arm_smmuv3" |
Jose Marinho | 69cd27d | 2019-10-17 15:51:31 +0100 | [diff] [blame] | 69 | gic_version = 3 |
| 70 | gicd_base_address = "0x2f000000" |
| 71 | gicr_base_address = "0x2f100000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 72 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame^] | 73 | heap_pages = 180 |
Jose Marinho | 69cd27d | 2019-10-17 15:51:31 +0100 | [diff] [blame] | 74 | max_cpus = 8 |
| 75 | max_vms = 16 |
Olivier Deprez | 16fc50e | 2021-02-16 08:59:07 +0100 | [diff] [blame] | 76 | branch_protection = "standard" |
Jose Marinho | 69cd27d | 2019-10-17 15:51:31 +0100 | [diff] [blame] | 77 | toolchain_args = { |
Daniel Boulby | 0029f48 | 2021-03-25 14:19:21 +0000 | [diff] [blame] | 78 | plat_ffa = "//src/arch/aarch64/plat/ffa:spmc" |
Olivier Deprez | cf03990 | 2021-01-25 15:32:39 +0100 | [diff] [blame] | 79 | plat_psci = "//src/arch/aarch64/plat/psci:spmc" |
Olivier Deprez | cc0eb84 | 2021-04-07 14:03:59 +0200 | [diff] [blame] | 80 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3" |
Olivier Deprez | 16fc50e | 2021-02-16 08:59:07 +0100 | [diff] [blame] | 81 | plat_prng = "//src/arch/aarch64/plat/prng:prng" |
Jose Marinho | 69cd27d | 2019-10-17 15:51:31 +0100 | [diff] [blame] | 82 | secure_world = "1" |
| 83 | pl011_base_address = "0x1c090000" |
Madhukar Pappireddy | f2a1e5c | 2020-11-16 13:06:33 -0600 | [diff] [blame] | 84 | smmu_base_address = "0x2b400000" |
| 85 | smmu_memory_size = "0x100000" |
Maksims Svecovs | c3cda25 | 2021-09-30 12:20:11 +0100 | [diff] [blame] | 86 | enable_mte = "1" |
Jose Marinho | 69cd27d | 2019-10-17 15:51:31 +0100 | [diff] [blame] | 87 | } |
| 88 | } |
| 89 | |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 90 | aarch64_toolchains("secure_aem_v8a_fvp_vhe") { |
| 91 | cpu = "cortex-a57" |
| 92 | origin_address = "0x06000000" |
| 93 | boot_flow = "//src/boot_flow:spmc" |
| 94 | console = "//src/arch/aarch64/pl011" |
| 95 | iommu = "//src/arch/aarch64/arm_smmuv3" |
| 96 | gic_version = 3 |
| 97 | gicd_base_address = "0x2f000000" |
| 98 | gicr_base_address = "0x2f100000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 99 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame^] | 100 | heap_pages = 180 |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 101 | max_cpus = 8 |
| 102 | max_vms = 16 |
Raghu Krishnamurthy | 510aa3e | 2021-11-28 07:20:45 -0800 | [diff] [blame] | 103 | branch_protection = "standard" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 104 | toolchain_args = { |
| 105 | plat_ffa = "//src/arch/aarch64/plat/ffa:spmc" |
| 106 | plat_psci = "//src/arch/aarch64/plat/psci:spmc" |
| 107 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3" |
| 108 | plat_prng = "//src/arch/aarch64/plat/prng:prng" |
| 109 | secure_world = "1" |
| 110 | pl011_base_address = "0x1c090000" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 111 | smmu_base_address = "0x2b400000" |
| 112 | smmu_memory_size = "0x100000" |
| 113 | enable_vhe = "1" |
Maksims Svecovs | c3cda25 | 2021-09-30 12:20:11 +0100 | [diff] [blame] | 114 | enable_mte = "1" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 115 | } |
| 116 | } |
| 117 | |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 118 | aarch64_toolchains("aem_v8a_fvp") { |
| 119 | cpu = "cortex-a57" |
Andrew Walbran | 6582198 | 2019-04-16 14:34:03 +0100 | [diff] [blame] | 120 | origin_address = "0x80000000" |
David Brazdil | 653261a | 2019-09-09 18:04:33 +0100 | [diff] [blame] | 121 | boot_flow = "//src/boot_flow:linux" |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 122 | console = "//src/arch/aarch64/pl011" |
Madhukar Pappireddy | f2a1e5c | 2020-11-16 13:06:33 -0600 | [diff] [blame] | 123 | iommu = "//src/arch/aarch64/arm_smmuv3" |
Andrew Walbran | f1aa19e | 2018-12-10 13:42:40 +0000 | [diff] [blame] | 124 | gic_version = 3 |
| 125 | gicd_base_address = "0x2f000000" |
| 126 | gicr_base_address = "0x2f100000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 127 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame^] | 128 | heap_pages = 180 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 129 | max_cpus = 8 |
| 130 | max_vms = 16 |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 131 | toolchain_args = { |
Daniel Boulby | 0029f48 | 2021-03-25 14:19:21 +0000 | [diff] [blame] | 132 | plat_ffa = "//src/arch/aarch64/plat/ffa:hypervisor" |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 133 | pl011_base_address = "0x1c090000" |
Madhukar Pappireddy | f2a1e5c | 2020-11-16 13:06:33 -0600 | [diff] [blame] | 134 | smmu_base_address = "0x2b400000" |
| 135 | smmu_memory_size = "0x100000" |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 136 | } |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 137 | } |
| 138 | |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 139 | aarch64_toolchains("aem_v8a_fvp_vhe") { |
| 140 | cpu = "cortex-a57" |
| 141 | origin_address = "0x80000000" |
| 142 | boot_flow = "//src/boot_flow:linux" |
| 143 | console = "//src/arch/aarch64/pl011" |
| 144 | iommu = "//src/arch/aarch64/arm_smmuv3" |
| 145 | gic_version = 3 |
| 146 | gicd_base_address = "0x2f000000" |
| 147 | gicr_base_address = "0x2f100000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 148 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame^] | 149 | heap_pages = 180 |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 150 | max_cpus = 8 |
| 151 | max_vms = 16 |
Raghu Krishnamurthy | 510aa3e | 2021-11-28 07:20:45 -0800 | [diff] [blame] | 152 | branch_protection = "standard" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 153 | toolchain_args = { |
| 154 | plat_ffa = "//src/arch/aarch64/plat/ffa:hypervisor" |
| 155 | pl011_base_address = "0x1c090000" |
| 156 | smmu_base_address = "0x2b400000" |
| 157 | smmu_memory_size = "0x100000" |
| 158 | enable_vhe = "1" |
| 159 | } |
| 160 | } |
| 161 | |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 162 | aarch64_toolchains("qemu_aarch64") { |
| 163 | cpu = "cortex-a57" |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 164 | origin_address = "0x40001000" |
David Brazdil | 653261a | 2019-09-09 18:04:33 +0100 | [diff] [blame] | 165 | boot_flow = "//src/boot_flow:linux" |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 166 | console = "//src/arch/aarch64/pl011" |
Andrew Scull | e2a525d | 2019-12-02 12:56:06 +0000 | [diff] [blame] | 167 | iommu = "//src/iommu:absent" |
Andrew Walbran | f1aa19e | 2018-12-10 13:42:40 +0000 | [diff] [blame] | 168 | gic_version = 3 |
| 169 | gicd_base_address = "0x08000000" |
| 170 | gicr_base_address = "0x080A0000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 171 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame^] | 172 | heap_pages = 180 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 173 | max_cpus = 8 |
| 174 | max_vms = 16 |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 175 | toolchain_args = { |
Olivier Deprez | d82b5e0 | 2021-07-05 11:16:16 +0200 | [diff] [blame] | 176 | plat_ffa = "//src/arch/aarch64/plat/ffa:hypervisor" |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 177 | pl011_base_address = "0x09000000" |
| 178 | } |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 179 | } |
| 180 | |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 181 | aarch64_toolchains("qemu_aarch64_vhe") { |
| 182 | cpu = "cortex-a57" |
| 183 | origin_address = "0x40001000" |
| 184 | boot_flow = "//src/boot_flow:linux" |
| 185 | console = "//src/arch/aarch64/pl011" |
| 186 | iommu = "//src/iommu:absent" |
| 187 | gic_version = 3 |
| 188 | gicd_base_address = "0x08000000" |
| 189 | gicr_base_address = "0x080A0000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 190 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame^] | 191 | heap_pages = 180 |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 192 | max_cpus = 8 |
| 193 | max_vms = 16 |
| 194 | toolchain_args = { |
Olivier Deprez | d82b5e0 | 2021-07-05 11:16:16 +0200 | [diff] [blame] | 195 | plat_ffa = "//src/arch/aarch64/plat/ffa:hypervisor" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 196 | pl011_base_address = "0x09000000" |
| 197 | enable_vhe = "1" |
| 198 | } |
| 199 | } |
| 200 | |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 201 | aarch64_toolchains("rpi4") { |
| 202 | cpu = "cortex-a72" |
| 203 | origin_address = "0x80000" |
| 204 | boot_flow = "//src/boot_flow:linux" |
| 205 | console = "//project/reference/rpi:mini_uart" |
Andrew Scull | e2a525d | 2019-12-02 12:56:06 +0000 | [diff] [blame] | 206 | iommu = "//src/iommu:absent" |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 207 | gic_version = 2 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame^] | 208 | heap_pages = 180 |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 209 | max_cpus = 4 |
| 210 | max_vms = 16 |
| 211 | toolchain_args = { |
Daniel Boulby | 0029f48 | 2021-03-25 14:19:21 +0000 | [diff] [blame] | 212 | plat_ffa = "//src/arch/aarch64/plat/ffa:hypervisor" |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 213 | gpio_base_address = "0xfe200000" |
| 214 | aux_base_address = "0xfe215000" |
| 215 | core_freq_mhz = 500 |
David Brazdil | b38816f | 2020-01-31 16:31:10 +0000 | [diff] [blame] | 216 | hftest_ctrl = "//test/hftest:ctrl_uart" |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 217 | } |
| 218 | } |
David Brazdil | c702a03 | 2020-01-31 15:44:11 +0000 | [diff] [blame] | 219 | |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 220 | # The Total Compute platform provides an envelope for all of Arm's latest IP. |
Usama Arif | f0996a5 | 2021-08-09 14:28:30 +0100 | [diff] [blame] | 221 | # TC0 and TC1 are reference open source software stack for the |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 222 | # Total Compute Fixed Virtual Platform (FVP). More info at: |
| 223 | # https://community.arm.com/developer/tools-software/oss-platforms/w/docs/606/total-compute |
Usama Arif | 50a4b89 | 2021-04-15 10:48:30 +0100 | [diff] [blame] | 224 | # https://gitlab.arm.com/arm-reference-solutions/arm-reference-solutions-docs/-/blob/master/docs/totalcompute/tc0/user-guide.rst |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 225 | # |
Usama Arif | f0996a5 | 2021-08-09 14:28:30 +0100 | [diff] [blame] | 226 | # Secure hafnium build for tc0 and tc1 platforms. This builds reference Secure Partition |
| 227 | # Manager (SPM) for tc0 and tc1 with Armv8.4-A Secure-EL2 extension. |
| 228 | aarch64_toolchains("secure_tc") { |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 229 | cpu = "cortex-a57" |
| 230 | origin_address = "0xfd000000" |
Olivier Deprez | 59e35f7 | 2020-11-10 17:15:18 +0100 | [diff] [blame] | 231 | boot_flow = "//src/boot_flow:spmc" |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 232 | console = "//src/arch/aarch64/pl011" |
| 233 | iommu = "//src/iommu:absent" |
Madhukar Pappireddy | 89ee8cc | 2021-10-29 10:03:18 -0500 | [diff] [blame] | 234 | gic_version = 4 |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 235 | gicd_base_address = "0x30000000" |
Usama Arif | 2c636ff | 2021-04-01 11:09:25 +0100 | [diff] [blame] | 236 | gicr_base_address = "0x30080000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 237 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame^] | 238 | heap_pages = 180 |
Arunachalam Ganapathy | 51e8157 | 2021-01-20 14:57:41 +0000 | [diff] [blame] | 239 | max_cpus = 8 |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 240 | max_vms = 16 |
Olivier Deprez | 16fc50e | 2021-02-16 08:59:07 +0100 | [diff] [blame] | 241 | branch_protection = "standard" |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 242 | toolchain_args = { |
Daniel Boulby | 0029f48 | 2021-03-25 14:19:21 +0000 | [diff] [blame] | 243 | plat_ffa = "//src/arch/aarch64/plat/ffa:spmc" |
Olivier Deprez | cf03990 | 2021-01-25 15:32:39 +0100 | [diff] [blame] | 244 | plat_psci = "//src/arch/aarch64/plat/psci:spmc" |
Olivier Deprez | cc0eb84 | 2021-04-07 14:03:59 +0200 | [diff] [blame] | 245 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3" |
Olivier Deprez | 16fc50e | 2021-02-16 08:59:07 +0100 | [diff] [blame] | 246 | plat_prng = "//src/arch/aarch64/plat/prng:prng" |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 247 | secure_world = "1" |
| 248 | pl011_base_address = "0x7ff80000" |
Maksims Svecovs | c3cda25 | 2021-09-30 12:20:11 +0100 | [diff] [blame] | 249 | enable_mte = "1" |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 250 | } |
| 251 | } |