blob: f18517e4ffb9b9ff519ba72f9387cb9793e675f8 [file] [log] [blame]
Andrew Walbrandc8ad202019-03-07 15:49:28 +00001# Copyright 2018 The Hafnium Authors.
Andrew Scull2d527c22018-11-27 14:21:08 +00002#
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
15import("//build/toolchain/embedded.gni")
16import("//build/toolchain/host.gni")
17
Andrew Scull2d527c22018-11-27 14:21:08 +000018group("root") {
19 deps = [
20 "//src:hafnium(:aem_v8a_fvp_clang)",
21 "//src:hafnium(:hikey_clang)",
22 "//src:hafnium(:qemu_aarch64_clang)",
23 ]
24}
25
26group("test_root") {
27 testonly = true
28
29 deps = [
30 "//src:unit_tests(:host_fake_clang)",
Andrew Walbranfd379392019-03-14 17:45:04 +000031 "//test/arch(:aem_v8a_fvp_clang)",
Andrew Scull75da2d12018-12-09 21:25:45 +000032 "//test/arch(:qemu_aarch64_clang)",
Andrew Walbranb1457602019-05-13 16:43:57 +010033 "//test/linux(:aem_v8a_fvp_vm_clang)",
34 "//test/linux(:qemu_aarch64_vm_clang)",
35 "//test/vmapi(:aem_v8a_fvp_vm_clang)",
36 "//test/vmapi(:qemu_aarch64_vm_clang)",
Andrew Scull3fe24082019-09-30 15:27:23 +010037 "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:aem_v8a_fvp_vm_clang)",
38 "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:qemu_aarch64_vm_clang)",
Andrew Scull2d527c22018-11-27 14:21:08 +000039 ]
40}
41
42# Describe each of the platforms used in this project.
43
44host_toolchain("host_fake") {
45 use_platform = true
Andrew Walbranbc737c42018-12-07 14:24:16 +000046 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000047 max_cpus = 4
48 max_vms = 6
49}
50
Andrew Walbranb1457602019-05-13 16:43:57 +010051aarch64_toolchains("aem_v8a_fvp") {
52 cpu = "cortex-a57"
Andrew Walbran65821982019-04-16 14:34:03 +010053 origin_address = "0x80000000"
David Brazdil653261a2019-09-09 18:04:33 +010054 boot_flow = "//src/boot_flow:linux"
Andrew Walbran808531e2019-05-20 14:52:45 +010055 console = "//src/arch/aarch64/pl011"
Andrew Walbranf1aa19e2018-12-10 13:42:40 +000056 gic_version = 3
57 gicd_base_address = "0x2f000000"
58 gicr_base_address = "0x2f100000"
Andrew Walbranbc737c42018-12-07 14:24:16 +000059 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000060 max_cpus = 8
61 max_vms = 16
Andrew Walbran808531e2019-05-20 14:52:45 +010062 toolchain_args = {
63 pl011_base_address = "0x1c090000"
64 }
Andrew Scull2d527c22018-11-27 14:21:08 +000065}
66
Andrew Walbranb1457602019-05-13 16:43:57 +010067aarch64_toolchains("qemu_aarch64") {
68 cpu = "cortex-a57"
Andrew Scull2d527c22018-11-27 14:21:08 +000069 origin_address = "0x40001000"
David Brazdil653261a2019-09-09 18:04:33 +010070 boot_flow = "//src/boot_flow:linux"
Andrew Walbran808531e2019-05-20 14:52:45 +010071 console = "//src/arch/aarch64/pl011"
Andrew Walbranf1aa19e2018-12-10 13:42:40 +000072 gic_version = 3
73 gicd_base_address = "0x08000000"
74 gicr_base_address = "0x080A0000"
Andrew Walbranbc737c42018-12-07 14:24:16 +000075 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000076 max_cpus = 8
77 max_vms = 16
Andrew Walbran808531e2019-05-20 14:52:45 +010078 toolchain_args = {
79 pl011_base_address = "0x09000000"
80 }
Andrew Scull2d527c22018-11-27 14:21:08 +000081}
82
Andrew Walbranb1457602019-05-13 16:43:57 +010083aarch64_toolchains("hikey") {
84 cpu = "cortex-a53"
Andrew Scull2d527c22018-11-27 14:21:08 +000085 origin_address = "0x35000000"
David Brazdil653261a2019-09-09 18:04:33 +010086 boot_flow = "//src/boot_flow:android"
Andrew Walbran808531e2019-05-20 14:52:45 +010087 console = "//src/arch/aarch64/pl011"
Andrew Walbranf1aa19e2018-12-10 13:42:40 +000088 gic_version = 2
Andrew Walbranbc737c42018-12-07 14:24:16 +000089 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000090 max_cpus = 8
91 max_vms = 16
Andrew Walbran808531e2019-05-20 14:52:45 +010092 toolchain_args = {
93 pl011_base_address = "0xf7113000" # UART3
94 }
Andrew Scull2d527c22018-11-27 14:21:08 +000095}