Andrew Scull | a158e91 | 2018-07-16 11:32:13 +0100 | [diff] [blame] | 1 | import("//build/image/hypervisor.gni") |
| 2 | |
Andrew Scull | a5e9163 | 2018-07-30 15:21:34 +0100 | [diff] [blame^] | 3 | group("arch_images") { |
Andrew Scull | a158e91 | 2018-07-16 11:32:13 +0100 | [diff] [blame] | 4 | deps = [ |
| 5 | ":hafnium($arch_toolchain)", |
| 6 | ] |
| 7 | } |
| 8 | |
| 9 | executable("test") { |
Andrew Scull | a5e9163 | 2018-07-30 15:21:34 +0100 | [diff] [blame^] | 10 | testonly = true |
Andrew Scull | a158e91 | 2018-07-16 11:32:13 +0100 | [diff] [blame] | 11 | sources = [ |
| 12 | "test.cpp", |
| 13 | ] |
| 14 | } |
| 15 | |
| 16 | # Only build the image for the arch |
| 17 | if (current_toolchain == arch_toolchain) { |
| 18 | hypervisor("hafnium") { |
| 19 | deps = [ |
| 20 | "//src", |
| 21 | "//src/arch/${arch}", |
| 22 | ] |
| 23 | } |
| 24 | } |