1# Copyright 2021 The Hafnium Authors.
2#
3# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file or at
5# https://opensource.org/licenses/BSD-3-Clause.
6
7import("//build/toolchain/platform.gni")
8
9source_set("absent") {
10  public_configs = [ "//src/arch/${plat_arch}:config" ]
11  sources = [ "absent.c" ]
12}
13
14source_set("hypervisor") {
15  public_configs = [
16    "//src/arch/${plat_arch}:config",
17    "//src/arch/${plat_arch}:arch_config",
18  ]
19  deps = [ "//vmlib/${plat_arch}:smc_call" ]
20  sources = [ "hypervisor.c" ]
21}
22
23source_set("spmc") {
24  public_configs = [
25    "//src/arch/${plat_arch}:config",
26    "//src/arch/${plat_arch}:arch_config",
27  ]
28
29  deps = [ "//vmlib/${plat_arch}:smc_call" ]
30
31  sources = [
32    "//src/arch/aarch64/hypervisor/simd.c",
33    "spmc.c",
34  ]
35}
36