1// Copyright 2016 The Android Open Source Project
2cc_defaults {
3    name: "dt_defaults",
4    cflags: [
5        "-Wall",
6        "-Werror",
7        "-Wno-sign-compare",
8        "-Wno-missing-field-initializers",
9        "-Wno-unused-parameter",
10    ],
11
12    static_libs: ["libfdt"],
13
14    stl: "none",
15    dist: {
16        targets: [
17            "dist_files",
18        ],
19        dir: "dtc",
20    },
21}
22
23cc_binary_host {
24    name: "dtc",
25    defaults: ["dt_defaults"],
26    srcs: [
27        "checks.c",
28        "data.c",
29        "dtc.c",
30        "dtc-lexer.l",
31        "dtc-parser.y",
32        "flattree.c",
33        "fstree.c",
34        "livetree.c",
35        "srcpos.c",
36        "treesource.c",
37        "util.c",
38    ],
39}
40
41cc_binary_host {
42    name: "fdtget",
43    defaults: ["dt_defaults"],
44    srcs: [
45        "fdtget.c",
46        "util.c",
47    ],
48}
49