blob: fb9bc296d01355dde1ca28997e8cad5950586b56 [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
18# TODO: add a gcc-4.9 or above prebuilt to check the gcc build too?
19
20group("root") {
21 deps = [
22 "//src:hafnium(:aem_v8a_fvp_clang)",
23 "//src:hafnium(:hikey_clang)",
24 "//src:hafnium(:qemu_aarch64_clang)",
25 ]
26}
27
28group("test_root") {
29 testonly = true
30
31 deps = [
32 "//src:unit_tests(:host_fake_clang)",
Andrew Walbranfd379392019-03-14 17:45:04 +000033 "//test/arch(:aem_v8a_fvp_clang)",
Andrew Scull75da2d12018-12-09 21:25:45 +000034 "//test/arch(:qemu_aarch64_clang)",
Andrew Walbranb1457602019-05-13 16:43:57 +010035 "//test/linux(:aem_v8a_fvp_vm_clang)",
36 "//test/linux(:qemu_aarch64_vm_clang)",
37 "//test/vmapi(:aem_v8a_fvp_vm_clang)",
38 "//test/vmapi(:qemu_aarch64_vm_clang)",
39 "//test/vmapi/gicv3:gicv3_test(:aem_v8a_fvp_vm_clang)",
40 "//test/vmapi/gicv3:gicv3_test(:qemu_aarch64_vm_clang)",
Andrew Scull2d527c22018-11-27 14:21:08 +000041 ]
42}
43
44# Describe each of the platforms used in this project.
45
46host_toolchain("host_fake") {
47 use_platform = true
Andrew Walbranbc737c42018-12-07 14:24:16 +000048 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000049 max_cpus = 4
50 max_vms = 6
51}
52
Andrew Walbranb1457602019-05-13 16:43:57 +010053aarch64_toolchains("aem_v8a_fvp") {
54 cpu = "cortex-a57"
Andrew Walbran65821982019-04-16 14:34:03 +010055 origin_address = "0x80000000"
Andrew Scull2d527c22018-11-27 14:21:08 +000056 use_pl011 = true
57 pl011_base_address = "0x1c090000"
Andrew Walbranf1aa19e2018-12-10 13:42:40 +000058 gic_version = 3
59 gicd_base_address = "0x2f000000"
60 gicr_base_address = "0x2f100000"
Andrew Walbranbc737c42018-12-07 14:24:16 +000061 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000062 max_cpus = 8
63 max_vms = 16
64}
65
Andrew Walbranb1457602019-05-13 16:43:57 +010066aarch64_toolchains("qemu_aarch64") {
67 cpu = "cortex-a57"
Andrew Scull2d527c22018-11-27 14:21:08 +000068 origin_address = "0x40001000"
69 use_pl011 = true
70 pl011_base_address = "0x09000000"
Andrew Walbranf1aa19e2018-12-10 13:42:40 +000071 gic_version = 3
72 gicd_base_address = "0x08000000"
73 gicr_base_address = "0x080A0000"
Andrew Walbranbc737c42018-12-07 14:24:16 +000074 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000075 max_cpus = 8
76 max_vms = 16
77}
78
Andrew Walbranb1457602019-05-13 16:43:57 +010079aarch64_toolchains("hikey") {
80 cpu = "cortex-a53"
Andrew Scull2d527c22018-11-27 14:21:08 +000081 origin_address = "0x35000000"
82 use_pl011 = true
83 pl011_base_address = "0xf7113000" # UART3
Andrew Walbranf1aa19e2018-12-10 13:42:40 +000084 gic_version = 2
Andrew Walbranbc737c42018-12-07 14:24:16 +000085 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000086 max_cpus = 8
87 max_vms = 16
88}