1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 2018 The Hafnium Authors.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/BSD-3-Clause.
import("//build/image/image.gni")
import("//build/toolchain/platform.gni")
import("//test/hftest/args.gni")
config("config") {
include_dirs = [ "inc" ]
}
# Tests specific to GICv3.
vm_kernel("gicv3_test_vm") {
testonly = true
public_configs = [ ":config" ]
sources = [
"busy_secondary.c",
"gicv3.c",
"interrupts.c",
"timer_secondary.c",
]
deps = [
"//src/arch/aarch64:arch",
"//src/arch/aarch64/hftest:interrupts",
"//src/arch/aarch64/hftest:interrupts_gicv3",
"//test/hftest:hftest_primary_vm",
]
}
manifest("gicv3_test_manifest") {
source = "manifest.dts"
overlay = hftest_manifest_overlay
}
initrd("gicv3_test") {
testonly = true
files = [
[
"manifest.dtb",
":gicv3_test_manifest",
"manifest.dtb",
],
[
"gicv3_test",
":gicv3_test_vm",
"gicv3_test_vm.bin",
],
[
"services1",
"services:gicv3_service_vm1",
"gicv3_service_vm1.bin",
],
]
}
|