blob: e02a92205e7847a101642ef3e8b11d6e3c6c3dd6 [file] [log] [blame]
Sasha Smundake47cc642019-01-15 19:20:09 -08001// Copyright (C) 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//##################################################
16cc_binary_host {
17 name: "mkdtimg",
18 cflags: [
19 "-Wall",
20 "-Werror",
21 ],
22 target: {
23 darwin: {
24 cflags: ["-Wno-error=format"],
25 },
26 },
27 srcs: [
28 "mkdtimg.c",
29 "mkdtimg_cfg_create.c",
30 "mkdtimg_core.c",
31 "mkdtimg_create.c",
32 "mkdtimg_dump.c",
33 "dt_table.c",
34 ],
35 static_libs: [
36 "libfdt",
37 "libufdt_sysdeps",
38 ],
39 required: ["dtc"],
40 stl: "none",
41 dist: {
42 targets: ["dist_files"],
43 dir: "libufdt",
44 },
45}
46
47//##################################################
48python_binary_host {
49 name: "mkdtboimg.py",
50 main: "mkdtboimg.py",
51 srcs: ["mkdtboimg.py"],
52 version: {
53 py2: {
54 embedded_launcher: true,
55 enabled: true,
56 },
57 py3: {
58 enabled: false,
59 },
60 },
61}
yangbill59829542020-04-23 17:52:29 +000062
63//##################################################
64// TODO(b/153848038): Remove once we can use python binary as data for java_test_host
65filegroup {
66 name: "mkdtboimg",
67 srcs: ["mkdtboimg.py"],
68}