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