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/image/image.gni")
8import("//test/hftest/args.gni")
9
10# Tests with no secondary VMs.
11vm_kernel("primary_only_test_vm") {
12  testonly = true
13
14  sources = [
15    "primary_only_ffa.c",
16  ]
17
18  deps = [
19    "//test/hftest:hftest_primary_vm",
20  ]
21}
22
23manifest("primary_only_ffa_partition_manifest") {
24  source = "partition-manifest.dts"
25  output = "partition-manifest.dtb"
26  overlay = hftest_manifest_overlay
27}
28
29partition_package("primary_only_ffa_test_package") {
30  testonly = true
31  pm_offset = "0x1000"
32  img_offset = "0x2000"
33  files = [ [
34        "partition-manifest.dtb",
35        "primary_only_test_vm.bin",
36        ":primary_only_ffa_partition_manifest",
37        ":primary_only_test_vm",
38      ] ]
39  output = "primary_only_ffa_test_package.img"
40}
41
42partitions_json("primary_only_ffa_test") {
43  testonly = true
44
45  sps = []
46  vms = [ [
47        "primary_only_ffa_test_package.img",
48        "manifest.dts",
49        ":primary_only_ffa_test_package",
50        ":primary_only_ffa_partition_manifest",
51      ] ]
52  json_file = "primary_only_ffa_test.json"
53}
54