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 | |
| 18 | # TODO: add a gcc-4.9 or above prebuilt to check the gcc build too? |
| 19 | |
| 20 | group("root") { |
| 21 | deps = [ |
| 22 | "//src:hafnium(:aem_v8a_fvp_clang)", |
| 23 | "//src:hafnium(:hikey_clang)", |
| 24 | "//src:hafnium(:qemu_aarch64_clang)", |
| 25 | ] |
| 26 | } |
| 27 | |
| 28 | group("test_root") { |
| 29 | testonly = true |
| 30 | |
| 31 | deps = [ |
| 32 | "//src:unit_tests(:host_fake_clang)", |
Andrew Walbran | fd37939 | 2019-03-14 17:45:04 +0000 | [diff] [blame] | 33 | "//test/arch(:aem_v8a_fvp_clang)", |
Andrew Scull | 75da2d1 | 2018-12-09 21:25:45 +0000 | [diff] [blame] | 34 | "//test/arch(:qemu_aarch64_clang)", |
Andrew Walbran | fd37939 | 2019-03-14 17:45:04 +0000 | [diff] [blame] | 35 | "//test/linux(:aem_v8a_fvp_clang)", |
Andrew Walbran | bf3991c | 2019-02-15 14:55:36 +0000 | [diff] [blame] | 36 | "//test/linux(:qemu_aarch64_clang)", |
Andrew Walbran | fd37939 | 2019-03-14 17:45:04 +0000 | [diff] [blame] | 37 | "//test/vmapi(:aem_v8a_fvp_clang)", |
Andrew Scull | 75da2d1 | 2018-12-09 21:25:45 +0000 | [diff] [blame] | 38 | "//test/vmapi(:qemu_aarch64_clang)", |
Andrew Walbran | fd37939 | 2019-03-14 17:45:04 +0000 | [diff] [blame] | 39 | "//test/vmapi/gicv3:gicv3_test(:aem_v8a_fvp_clang)", |
Andrew Scull | ad27769 | 2018-12-19 11:15:11 +0000 | [diff] [blame] | 40 | "//test/vmapi/gicv3:gicv3_test(:qemu_aarch64_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 41 | ] |
| 42 | } |
| 43 | |
| 44 | # Describe each of the platforms used in this project. |
| 45 | |
| 46 | host_toolchain("host_fake") { |
| 47 | use_platform = true |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame] | 48 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 49 | max_cpus = 4 |
| 50 | max_vms = 6 |
| 51 | } |
| 52 | |
Conrad Grobler | 9264cb7 | 2019-03-26 16:43:00 +0000 | [diff] [blame^] | 53 | # TODO: Change cpu back to +nofp with more granular control. |
| 54 | |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 55 | aarch64_toolchain("aem_v8a_fvp") { |
Conrad Grobler | 9264cb7 | 2019-03-26 16:43:00 +0000 | [diff] [blame^] | 56 | cpu = "cortex-a57+fp" |
Andrew Walbran | 6582198 | 2019-04-16 14:34:03 +0100 | [diff] [blame] | 57 | origin_address = "0x80000000" |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 58 | use_pl011 = true |
| 59 | pl011_base_address = "0x1c090000" |
Andrew Walbran | f1aa19e | 2018-12-10 13:42:40 +0000 | [diff] [blame] | 60 | gic_version = 3 |
| 61 | gicd_base_address = "0x2f000000" |
| 62 | gicr_base_address = "0x2f100000" |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame] | 63 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 64 | max_cpus = 8 |
| 65 | max_vms = 16 |
| 66 | } |
| 67 | |
Conrad Grobler | 9264cb7 | 2019-03-26 16:43:00 +0000 | [diff] [blame^] | 68 | # TODO: Change cpu back to +nofp with more granular control. |
| 69 | |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 70 | aarch64_toolchain("qemu_aarch64") { |
Conrad Grobler | 9264cb7 | 2019-03-26 16:43:00 +0000 | [diff] [blame^] | 71 | cpu = "cortex-a57+fp" |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 72 | origin_address = "0x40001000" |
| 73 | use_pl011 = true |
| 74 | pl011_base_address = "0x09000000" |
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 |
| 81 | } |
| 82 | |
| 83 | aarch64_toolchain("hikey") { |
| 84 | cpu = "cortex-a53+nofp" |
| 85 | origin_address = "0x35000000" |
| 86 | use_pl011 = true |
| 87 | pl011_base_address = "0xf7113000" # UART3 |
Andrew Walbran | f1aa19e | 2018-12-10 13:42:40 +0000 | [diff] [blame] | 88 | gic_version = 2 |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame] | 89 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 90 | max_cpus = 8 |
| 91 | max_vms = 16 |
| 92 | } |