blob: 43eaf33efe86ecfbc62a7a6ad98b0fa5651de2f5 [file] [log] [blame]
Andrew Scullaf5e53e2018-07-23 19:19:46 +01001import("//build/image/image.gni")
Andrew Sculla158e912018-07-16 11:32:13 +01002
Andrew Sculla5e91632018-07-30 15:21:34 +01003group("arch_images") {
Andrew Scullaf5e53e2018-07-23 19:19:46 +01004 testonly = true
5
6 deps = [
7 ":hypervisor",
Andrew Scullf35a5c92018-08-07 18:09:46 +01008 "//test/vm/primary_only:primary_only_test($arch_toolchain)",
9 "//test/vm/primary_with_secondary:primary_with_secondary_test($arch_toolchain)",
Andrew Scullaf5e53e2018-07-23 19:19:46 +010010 ]
11}
12
13group("hypervisor") {
Andrew Sculla158e912018-07-16 11:32:13 +010014 deps = [
15 ":hafnium($arch_toolchain)",
16 ]
17}
18
19executable("test") {
Andrew Sculla5e91632018-07-30 15:21:34 +010020 testonly = true
Andrew Sculla158e912018-07-16 11:32:13 +010021 sources = [
22 "test.cpp",
23 ]
24}
25
26# Only build the image for the arch
27if (current_toolchain == arch_toolchain) {
28 hypervisor("hafnium") {
29 deps = [
30 "//src",
31 "//src/arch/${arch}",
32 ]
33 }
34}