blob: 4340c5d8bcc212a24ddab4c96ee4670a0df24778 [file] [log] [blame]
Andrew Walbrandc8ad202019-03-07 15:49:28 +00001# Copyright 2018 The Hafnium Authors.
Andrew Scull2d527c22018-11-27 14:21:08 +00002#
Andrew Walbran23417d82020-06-17 14:44:22 +01003# 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 Scull2d527c22018-11-27 14:21:08 +00006
7import("//build/toolchain/embedded.gni")
8import("//build/toolchain/host.gni")
9
Olivier Deprez7e645932023-11-06 09:49:05 +010010group("aem_v8a_fvp_vhe") {
11 deps = [ "//src:hafnium(:aem_v8a_fvp_vhe_clang)" ]
12}
13
14group("qemu_aarch64_vhe") {
15 deps = [ "//src:hafnium(:qemu_aarch64_vhe_clang)" ]
16}
17
18group("rpi4") {
19 deps = [ "//src:hafnium(:rpi4_clang)" ]
20}
21
22group("secure_aem_v8a_fvp_vhe") {
23 deps = [ "//src:hafnium(:secure_aem_v8a_fvp_vhe_clang)" ]
24}
25
26group("secure_qemu_aarch64") {
27 deps = [ "//src:hafnium(:secure_qemu_aarch64_clang)" ]
28}
29
30group("secure_tc") {
31 deps = [ "//src:hafnium(:secure_tc_clang)" ]
32}
33
34group("secure_rd_fremont") {
35 deps = [ "//src:hafnium(:secure_rd_fremont_clang)" ]
36}
37
Andrew Scull2d527c22018-11-27 14:21:08 +000038group("root") {
39 deps = [
Olivier Deprez7e645932023-11-06 09:49:05 +010040 ":aem_v8a_fvp_vhe",
41 ":qemu_aarch64_vhe",
42 ":rpi4",
43 ":secure_aem_v8a_fvp_vhe",
44 ":secure_qemu_aarch64",
45 ":secure_rd_fremont",
46 ":secure_tc",
Raghu Krishnamurthye0ede852021-12-04 14:29:57 -080047 "//src/arch/aarch64/qemuloader:bl(:qemu_aarch64_vhe_clang)",
Andrew Scull2d527c22018-11-27 14:21:08 +000048 ]
49}
50
51group("test_root") {
52 testonly = true
53
54 deps = [
55 "//src:unit_tests(:host_fake_clang)",
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -070056 "//test/arch(:aem_v8a_fvp_vhe_clang)",
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -070057 "//test/arch(:qemu_aarch64_vhe_clang)",
David Brazdil3d7b88b2019-07-22 17:19:35 +010058 "//test/arch(:rpi4_clang)",
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -070059 "//test/linux(:aem_v8a_fvp_vhe_vm_clang)",
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -070060 "//test/linux(:qemu_aarch64_vhe_vm_clang)",
Andrew Walbran3eeaa402019-11-01 14:48:29 +000061 "//test/linux(:rpi4_vm_clang)",
Olivier Deprezacd0a4e2022-02-23 09:31:21 +010062 "//test/vmapi:partitions(:secure_aem_v8a_fvp_vhe_vm_clang)",
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -070063 "//test/vmapi(:aem_v8a_fvp_vhe_vm_clang)",
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -070064 "//test/vmapi(:qemu_aarch64_vhe_vm_clang)",
Andrew Walbran3eeaa402019-11-01 14:48:29 +000065 "//test/vmapi(:rpi4_vm_clang)",
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -070066 "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:aem_v8a_fvp_vhe_vm_clang)",
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -070067 "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:qemu_aarch64_vhe_vm_clang)",
Andrew Scull2d527c22018-11-27 14:21:08 +000068 ]
69}
70
71# Describe each of the platforms used in this project.
72
73host_toolchain("host_fake") {
74 use_platform = true
Andrew Walbranbc737c42018-12-07 14:24:16 +000075 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000076 max_cpus = 4
77 max_vms = 6
78}
79
Nishant Sharma74e645a2023-08-10 18:37:51 +010080# RD (Reference Design) is a collection of resources to provide a representative
81# view of typical compute subsystems that can be designed and implemented using
82# specific generations of Arm IP. RD-Fremont is the first RD platform with Realm
83# Management Extension (RME) support.
84# For more information please refer:
85# https://neoverse-reference-design.docs.arm.com/en/latest/platforms/rdfremont/readme.html
86aarch64_toolchains("secure_rd_fremont") {
87 cpu = "cortex-a57"
88 origin_address = "0xF9000000"
89 boot_flow = "//src/boot_flow:spmc"
90 console = "//src/arch/aarch64/pl011"
91 iommu = "//src/iommu:absent"
92 gic_version = 4
93 gicd_base_address = "0x30000000"
94 gicr_base_address = "0x301C0000"
95 gicr_frames = 16
96 heap_pages = 180
97 max_cpus = 16
98 max_vms = 16
99 toolchain_args = {
100 plat_ffa = "//src/arch/aarch64/plat/ffa:spmc"
101 plat_psci = "//src/arch/aarch64/plat/psci:spmc"
102 plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3"
103 secure_world = "1"
104 pl011_base_address = "0x2A410000"
105 enable_mte = "1"
106 plat_log_level = "LOG_LEVEL_INFO"
107 plat_num_virtual_interrupts_ids = 1024
108 }
109}
110
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700111aarch64_toolchains("secure_aem_v8a_fvp_vhe") {
112 cpu = "cortex-a57"
113 origin_address = "0x06000000"
114 boot_flow = "//src/boot_flow:spmc"
115 console = "//src/arch/aarch64/pl011"
116 iommu = "//src/arch/aarch64/arm_smmuv3"
117 gic_version = 3
Madhukar Pappireddy48050f52023-08-29 13:52:33 -0500118 gic_enable_espi = 1
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700119 gicd_base_address = "0x2f000000"
120 gicr_base_address = "0x2f100000"
Varun Wadekarfa4b3ac2022-02-14 17:19:18 +0000121 gicr_frames = 8
Raghu Krishnamurthyf8956392022-09-20 09:51:05 -0700122 heap_pages = 180
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700123 max_cpus = 8
124 max_vms = 16
Raghu Krishnamurthy510aa3e2021-11-28 07:20:45 -0800125 branch_protection = "standard"
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700126 toolchain_args = {
127 plat_ffa = "//src/arch/aarch64/plat/ffa:spmc"
128 plat_psci = "//src/arch/aarch64/plat/psci:spmc"
129 plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3"
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700130 secure_world = "1"
131 pl011_base_address = "0x1c090000"
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700132 smmu_base_address = "0x2b400000"
133 smmu_memory_size = "0x100000"
Maksims Svecovsc3cda252021-09-30 12:20:11 +0100134 enable_mte = "1"
Varun Wadekar4cba5e42022-09-29 17:39:14 +0100135 plat_log_level = "LOG_LEVEL_INFO"
Madhukar Pappireddy48050f52023-08-29 13:52:33 -0500136 plat_num_virtual_interrupts_ids = 5120
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700137 }
138}
139
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700140aarch64_toolchains("aem_v8a_fvp_vhe") {
141 cpu = "cortex-a57"
142 origin_address = "0x80000000"
143 boot_flow = "//src/boot_flow:linux"
144 console = "//src/arch/aarch64/pl011"
145 iommu = "//src/arch/aarch64/arm_smmuv3"
146 gic_version = 3
147 gicd_base_address = "0x2f000000"
148 gicr_base_address = "0x2f100000"
Varun Wadekarfa4b3ac2022-02-14 17:19:18 +0000149 gicr_frames = 8
Raghu Krishnamurthyf8956392022-09-20 09:51:05 -0700150 heap_pages = 180
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700151 max_cpus = 8
152 max_vms = 16
Raghu Krishnamurthy510aa3e2021-11-28 07:20:45 -0800153 branch_protection = "standard"
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700154 toolchain_args = {
155 plat_ffa = "//src/arch/aarch64/plat/ffa:hypervisor"
156 pl011_base_address = "0x1c090000"
157 smmu_base_address = "0x2b400000"
158 smmu_memory_size = "0x100000"
Varun Wadekar4cba5e42022-09-29 17:39:14 +0100159 plat_log_level = "LOG_LEVEL_INFO"
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700160 }
161}
162
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700163aarch64_toolchains("qemu_aarch64_vhe") {
164 cpu = "cortex-a57"
165 origin_address = "0x40001000"
166 boot_flow = "//src/boot_flow:linux"
167 console = "//src/arch/aarch64/pl011"
168 iommu = "//src/iommu:absent"
169 gic_version = 3
170 gicd_base_address = "0x08000000"
171 gicr_base_address = "0x080A0000"
Varun Wadekarfa4b3ac2022-02-14 17:19:18 +0000172 gicr_frames = 8
Raghu Krishnamurthyf8956392022-09-20 09:51:05 -0700173 heap_pages = 180
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700174 max_cpus = 8
175 max_vms = 16
176 toolchain_args = {
Olivier Deprezd82b5e02021-07-05 11:16:16 +0200177 plat_ffa = "//src/arch/aarch64/plat/ffa:hypervisor"
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700178 pl011_base_address = "0x09000000"
Varun Wadekar4cba5e42022-09-29 17:39:14 +0100179 plat_log_level = "LOG_LEVEL_INFO"
Raghu Krishnamurthy8e680992021-06-15 20:19:47 -0700180 }
181}
182
Olivier Deprezf17c61e2023-01-30 13:50:25 +0100183aarch64_toolchains("secure_qemu_aarch64") {
184 cpu = "cortex-a57"
185 origin_address = "0xe100000"
186 boot_flow = "//src/boot_flow:spmc"
187 console = "//src/arch/aarch64/pl011"
188 iommu = "//src/iommu:absent"
189 gic_version = 3
190 gicd_base_address = "0x08000000"
191 gicr_base_address = "0x080A0000"
192 gicr_frames = 8
193 heap_pages = 180
194 max_cpus = 8
195 max_vms = 16
196 branch_protection = "standard"
197 toolchain_args = {
198 plat_ffa = "//src/arch/aarch64/plat/ffa:spmc"
199 plat_psci = "//src/arch/aarch64/plat/psci:spmc"
200 plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3"
201 secure_world = "1"
202 pl011_base_address = "0x09000000"
203 hftest_ctrl = "//test/hftest:ctrl_uart"
Olivier Deprezf17c61e2023-01-30 13:50:25 +0100204 enable_mte = "1"
205 plat_log_level = "LOG_LEVEL_INFO"
Madhukar Pappireddyffbe2e22023-02-02 17:45:30 -0600206 plat_num_virtual_interrupts_ids = 1024
Olivier Deprezf17c61e2023-01-30 13:50:25 +0100207 }
208}
209
David Brazdil3d7b88b2019-07-22 17:19:35 +0100210aarch64_toolchains("rpi4") {
211 cpu = "cortex-a72"
212 origin_address = "0x80000"
213 boot_flow = "//src/boot_flow:linux"
Olivier Depreza7015472023-10-16 20:17:50 +0200214 console = "//project/reference/rpi4:mini_uart"
Andrew Sculle2a525d2019-12-02 12:56:06 +0000215 iommu = "//src/iommu:absent"
David Brazdil3d7b88b2019-07-22 17:19:35 +0100216 gic_version = 2
Raghu Krishnamurthyf8956392022-09-20 09:51:05 -0700217 heap_pages = 180
David Brazdil3d7b88b2019-07-22 17:19:35 +0100218 max_cpus = 4
219 max_vms = 16
220 toolchain_args = {
Daniel Boulby0029f482021-03-25 14:19:21 +0000221 plat_ffa = "//src/arch/aarch64/plat/ffa:hypervisor"
David Brazdil3d7b88b2019-07-22 17:19:35 +0100222 gpio_base_address = "0xfe200000"
223 aux_base_address = "0xfe215000"
224 core_freq_mhz = 500
David Brazdilb38816f2020-01-31 16:31:10 +0000225 hftest_ctrl = "//test/hftest:ctrl_uart"
Varun Wadekar4cba5e42022-09-29 17:39:14 +0100226 plat_log_level = "LOG_LEVEL_INFO"
David Brazdil3d7b88b2019-07-22 17:19:35 +0100227 }
228}
David Brazdilc702a032020-01-31 15:44:11 +0000229
Olivier Deprezb5ebdd72023-11-08 12:48:20 +0100230# The Total Compute platform provides an envelope for Arm's latest client IPs.
231# Release notes and user manual for the open source software stack targeting
232# the Total Compute Fixed Virtual Platform (FVP) are found here:
233# https://totalcompute.docs.arm.com/en/latest/
Usama Ariff0996a52021-08-09 14:28:30 +0100234aarch64_toolchains("secure_tc") {
Arunachalam Ganapathyf20727f2020-04-28 20:23:13 +0100235 cpu = "cortex-a57"
236 origin_address = "0xfd000000"
Olivier Deprez59e35f72020-11-10 17:15:18 +0100237 boot_flow = "//src/boot_flow:spmc"
Arunachalam Ganapathyf20727f2020-04-28 20:23:13 +0100238 console = "//src/arch/aarch64/pl011"
239 iommu = "//src/iommu:absent"
Madhukar Pappireddy89ee8cc2021-10-29 10:03:18 -0500240 gic_version = 4
Arunachalam Ganapathyf20727f2020-04-28 20:23:13 +0100241 gicd_base_address = "0x30000000"
Usama Arif2c636ff2021-04-01 11:09:25 +0100242 gicr_base_address = "0x30080000"
Varun Wadekarfa4b3ac2022-02-14 17:19:18 +0000243 gicr_frames = 8
Raghu Krishnamurthyf8956392022-09-20 09:51:05 -0700244 heap_pages = 180
Arunachalam Ganapathy51e81572021-01-20 14:57:41 +0000245 max_cpus = 8
Arunachalam Ganapathyf20727f2020-04-28 20:23:13 +0100246 max_vms = 16
247 toolchain_args = {
Daniel Boulby0029f482021-03-25 14:19:21 +0000248 plat_ffa = "//src/arch/aarch64/plat/ffa:spmc"
Olivier Deprezcf039902021-01-25 15:32:39 +0100249 plat_psci = "//src/arch/aarch64/plat/psci:spmc"
Olivier Deprezcc0eb842021-04-07 14:03:59 +0200250 plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3"
Arunachalam Ganapathyf20727f2020-04-28 20:23:13 +0100251 secure_world = "1"
252 pl011_base_address = "0x7ff80000"
Maksims Svecovsc3cda252021-09-30 12:20:11 +0100253 enable_mte = "1"
Varun Wadekar4cba5e42022-09-29 17:39:14 +0100254 plat_log_level = "LOG_LEVEL_INFO"
Madhukar Pappireddyffbe2e22023-02-02 17:45:30 -0600255 plat_num_virtual_interrupts_ids = 1024
Arunachalam Ganapathyf20727f2020-04-28 20:23:13 +0100256 }
257}