blob: 4b216966a7727bf1fd06c943033213736cb33b7c [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 Scull2c242332018-08-08 13:30:32 +01008 "//test/vm:test_vm_initrd($arch_toolchain)",
Andrew Scullaf5e53e2018-07-23 19:19:46 +01009 ]
10}
11
12group("hypervisor") {
Andrew Sculla158e912018-07-16 11:32:13 +010013 deps = [
14 ":hafnium($arch_toolchain)",
15 ]
16}
17
18executable("test") {
Andrew Sculla5e91632018-07-30 15:21:34 +010019 testonly = true
Andrew Sculla158e912018-07-16 11:32:13 +010020 sources = [
21 "test.cpp",
22 ]
23}
24
25# Only build the image for the arch
26if (current_toolchain == arch_toolchain) {
27 hypervisor("hafnium") {
28 deps = [
29 "//src",
30 "//src/arch/${arch}",
31 ]
32 }
33}