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 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | import("//build/toolchain/embedded.gni") |
| 16 | import("//build/toolchain/host.gni") |
| 17 | |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 18 | group("root") { |
| 19 | deps = [ |
| 20 | "//src:hafnium(:aem_v8a_fvp_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 21 | "//src:hafnium(:qemu_aarch64_clang)", |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 22 | "//src:hafnium(:rpi4_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 23 | ] |
| 24 | } |
| 25 | |
| 26 | group("test_root") { |
| 27 | testonly = true |
| 28 | |
| 29 | deps = [ |
| 30 | "//src:unit_tests(:host_fake_clang)", |
Andrew Walbran | fd37939 | 2019-03-14 17:45:04 +0000 | [diff] [blame] | 31 | "//test/arch(:aem_v8a_fvp_clang)", |
Andrew Scull | 75da2d1 | 2018-12-09 21:25:45 +0000 | [diff] [blame] | 32 | "//test/arch(:qemu_aarch64_clang)", |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 33 | "//test/arch(:rpi4_clang)", |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 34 | "//test/linux(:aem_v8a_fvp_vm_clang)", |
| 35 | "//test/linux(:qemu_aarch64_vm_clang)", |
Andrew Walbran | 3eeaa40 | 2019-11-01 14:48:29 +0000 | [diff] [blame^] | 36 | "//test/linux(:rpi4_vm_clang)", |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 37 | "//test/vmapi(:aem_v8a_fvp_vm_clang)", |
| 38 | "//test/vmapi(:qemu_aarch64_vm_clang)", |
Andrew Walbran | 3eeaa40 | 2019-11-01 14:48:29 +0000 | [diff] [blame^] | 39 | "//test/vmapi(:rpi4_vm_clang)", |
Andrew Scull | 3fe2408 | 2019-09-30 15:27:23 +0100 | [diff] [blame] | 40 | "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:aem_v8a_fvp_vm_clang)", |
| 41 | "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:qemu_aarch64_vm_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 42 | ] |
| 43 | } |
| 44 | |
| 45 | # Describe each of the platforms used in this project. |
| 46 | |
| 47 | host_toolchain("host_fake") { |
| 48 | use_platform = true |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame] | 49 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 50 | max_cpus = 4 |
| 51 | max_vms = 6 |
| 52 | } |
| 53 | |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 54 | aarch64_toolchains("aem_v8a_fvp") { |
| 55 | cpu = "cortex-a57" |
Andrew Walbran | 6582198 | 2019-04-16 14:34:03 +0100 | [diff] [blame] | 56 | origin_address = "0x80000000" |
David Brazdil | 653261a | 2019-09-09 18:04:33 +0100 | [diff] [blame] | 57 | boot_flow = "//src/boot_flow:linux" |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 58 | console = "//src/arch/aarch64/pl011" |
Andrew Walbran | f1aa19e | 2018-12-10 13:42:40 +0000 | [diff] [blame] | 59 | gic_version = 3 |
| 60 | gicd_base_address = "0x2f000000" |
| 61 | gicr_base_address = "0x2f100000" |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame] | 62 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 63 | max_cpus = 8 |
| 64 | max_vms = 16 |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 65 | toolchain_args = { |
| 66 | pl011_base_address = "0x1c090000" |
| 67 | } |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 68 | } |
| 69 | |
Andrew Walbran | b145760 | 2019-05-13 16:43:57 +0100 | [diff] [blame] | 70 | aarch64_toolchains("qemu_aarch64") { |
| 71 | cpu = "cortex-a57" |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 72 | origin_address = "0x40001000" |
David Brazdil | 653261a | 2019-09-09 18:04:33 +0100 | [diff] [blame] | 73 | boot_flow = "//src/boot_flow:linux" |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 74 | console = "//src/arch/aarch64/pl011" |
Andrew Walbran | f1aa19e | 2018-12-10 13:42:40 +0000 | [diff] [blame] | 75 | gic_version = 3 |
| 76 | gicd_base_address = "0x08000000" |
| 77 | gicr_base_address = "0x080A0000" |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame] | 78 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 79 | max_cpus = 8 |
| 80 | max_vms = 16 |
Andrew Walbran | 808531e | 2019-05-20 14:52:45 +0100 | [diff] [blame] | 81 | toolchain_args = { |
| 82 | pl011_base_address = "0x09000000" |
| 83 | } |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 84 | } |
| 85 | |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 86 | aarch64_toolchains("rpi4") { |
| 87 | cpu = "cortex-a72" |
| 88 | origin_address = "0x80000" |
| 89 | boot_flow = "//src/boot_flow:linux" |
| 90 | console = "//project/reference/rpi:mini_uart" |
| 91 | gic_version = 2 |
| 92 | heap_pages = 60 |
| 93 | max_cpus = 4 |
| 94 | max_vms = 16 |
| 95 | toolchain_args = { |
| 96 | gpio_base_address = "0xfe200000" |
| 97 | aux_base_address = "0xfe215000" |
| 98 | core_freq_mhz = 500 |
| 99 | } |
| 100 | } |