Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 1 | # 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 | |
| 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)", |
| 33 | "//test/vm:gicv3_test(:qemu_aarch64_clang)", |
| 34 | "//test/vm:vm_tests(:qemu_aarch64_clang)", |
| 35 | ] |
| 36 | } |
| 37 | |
| 38 | # Describe each of the platforms used in this project. |
| 39 | |
| 40 | host_toolchain("host_fake") { |
| 41 | use_platform = true |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame^] | 42 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 43 | max_cpus = 4 |
| 44 | max_vms = 6 |
| 45 | } |
| 46 | |
| 47 | aarch64_toolchain("aem_v8a_fvp") { |
| 48 | cpu = "cortex-a57+nofp" |
| 49 | origin_address = "0x88000000" |
| 50 | use_pl011 = true |
| 51 | pl011_base_address = "0x1c090000" |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame^] | 52 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 53 | max_cpus = 8 |
| 54 | max_vms = 16 |
| 55 | } |
| 56 | |
| 57 | aarch64_toolchain("qemu_aarch64") { |
| 58 | cpu = "cortex-a57+nofp" |
| 59 | origin_address = "0x40001000" |
| 60 | use_pl011 = true |
| 61 | pl011_base_address = "0x09000000" |
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 |
| 65 | } |
| 66 | |
| 67 | aarch64_toolchain("hikey") { |
| 68 | cpu = "cortex-a53+nofp" |
| 69 | origin_address = "0x35000000" |
| 70 | use_pl011 = true |
| 71 | pl011_base_address = "0xf7113000" # UART3 |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame^] | 72 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 73 | max_cpus = 8 |
| 74 | max_vms = 16 |
| 75 | } |