blob: 5bc6bb9e2b97cae8ef109efd611110a98106e9ee [file] [log] [blame]
Xialin Liuda3b62f2024-06-28 11:33:41 -05001/*
2 * Copyright (c) 2024, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 * This file provide a malformed CoT DT file that there is
7 * unmatching ifdef macro
8 *
9 */
10
11#include <example/example.h>
12#include <example/example/example.h>
13
14cot {
15 manifests {
16 compatible = "arm, cert-descs";
17
18 example_cert: example_cert {
19 root-certificate;
20 image-id =<EXAMPLE_ID>;
21 antirollback-counter = <&example_ctr>;
22
23 example_hash: example_hash
24 {
25 oid = EXAMPLE_HASH_ID;
26 };
27
28 };
29 };
30
31#if defined(test)
32 images {
33 compatible = "arm, img-descs";
34
35 example {
36 image-id = <EXAMPLE_ID>;
37 parent = <&example_cert>;
38 hash = <&example_hash>;
39 };
40 };
41};
42
43non_volatile_counters: non_volatile_counters {
44 compatible = "arm, non-volatile-counter";
45
46 #address-cells = <1>;
47 #size-cells = <0>;
48
49 example_ctr: example_ctr {
50 id = <TRUSTED_NV_CTR_ID>;
51 oid = CCA_FW_NVCOUNTER_OID;
52 };
53};
54
55rot_keys {
56 example_pk: example_pk {
57 oid = EXAMPLE_PK_OID;
58 };
59};