blob: afbfe67e64d11b72b30d3178a1c80b814f0b0681 [file] [log] [blame]
Andrew Scull2d527c22018-11-27 14:21:08 +00001# Copyright 2018 Google LLC
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
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 Scull75da2d12018-12-09 21:25:45 +000033 "//test/arch(:qemu_aarch64_clang)",
34 "//test/vmapi:gicv3_test(:qemu_aarch64_clang)",
35 "//test/vmapi(:qemu_aarch64_clang)",
Andrew Scull2d527c22018-11-27 14:21:08 +000036 ]
37}
38
39# Describe each of the platforms used in this project.
40
41host_toolchain("host_fake") {
42 use_platform = true
Andrew Walbranbc737c42018-12-07 14:24:16 +000043 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000044 max_cpus = 4
45 max_vms = 6
46}
47
48aarch64_toolchain("aem_v8a_fvp") {
49 cpu = "cortex-a57+nofp"
50 origin_address = "0x88000000"
51 use_pl011 = true
52 pl011_base_address = "0x1c090000"
Andrew Walbranbc737c42018-12-07 14:24:16 +000053 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000054 max_cpus = 8
55 max_vms = 16
56}
57
58aarch64_toolchain("qemu_aarch64") {
59 cpu = "cortex-a57+nofp"
60 origin_address = "0x40001000"
61 use_pl011 = true
62 pl011_base_address = "0x09000000"
Andrew Walbranbc737c42018-12-07 14:24:16 +000063 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000064 max_cpus = 8
65 max_vms = 16
66}
67
68aarch64_toolchain("hikey") {
69 cpu = "cortex-a53+nofp"
70 origin_address = "0x35000000"
71 use_pl011 = true
72 pl011_base_address = "0xf7113000" # UART3
Andrew Walbranbc737c42018-12-07 14:24:16 +000073 heap_pages = 60
Andrew Scull2d527c22018-11-27 14:21:08 +000074 max_cpus = 8
75 max_vms = 16
76}