Convert (further) to Android.bp
See build/soong/README.md for more information Test: cd external/dtc; mma Test: check for dtc in build artifacts Change-Id: I2bdd1a2fc41d3e5c61de3c05f1097a8ddb7e1ea9
This commit is contained in:
parent
f2bd35679f
commit
b9548b7074
2 changed files with 30 additions and 33 deletions
33
Android.bp
33
Android.bp
|
@ -1,3 +1,30 @@
|
|||
subdirs = [
|
||||
"libfdt"
|
||||
]
|
||||
// Copyright 2016 The Android Open Source Project
|
||||
|
||||
cc_binary_host {
|
||||
name: "dtc",
|
||||
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-missing-field-initializers",
|
||||
"-Wno-unused-parameter",
|
||||
],
|
||||
srcs: [
|
||||
"checks.c",
|
||||
"data.c",
|
||||
"dtc.c",
|
||||
"dtc-lexer.l",
|
||||
"dtc-parser.y",
|
||||
"flattree.c",
|
||||
"fstree.c",
|
||||
"livetree.c",
|
||||
"srcpos.c",
|
||||
"treesource.c",
|
||||
"util.c",
|
||||
],
|
||||
|
||||
static_libs: ["libfdt"],
|
||||
|
||||
stl: "none",
|
||||
}
|
||||
|
|
30
Android.mk
30
Android.mk
|
@ -1,33 +1,3 @@
|
|||
# Copyright 2016 The Android Open Source Project
|
||||
|
||||
LOCAL_PATH:= $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_CFLAGS := \
|
||||
-Wall \
|
||||
-Werror \
|
||||
-Wno-sign-compare \
|
||||
-Wno-missing-field-initializers \
|
||||
-Wno-unused-parameter
|
||||
LOCAL_SRC_FILES := \
|
||||
checks.c \
|
||||
data.c \
|
||||
dtc.c \
|
||||
dtc-lexer.l \
|
||||
dtc-parser.y \
|
||||
flattree.c \
|
||||
fstree.c \
|
||||
livetree.c \
|
||||
srcpos.c \
|
||||
treesource.c \
|
||||
util.c
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libfdt
|
||||
LOCAL_CXX_STL := none
|
||||
|
||||
LOCAL_MODULE := dtc
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
||||
|
||||
$(call dist-for-goals, dist_files, $(ALL_MODULES.dtc.BUILT):dtc/dtc)
|
||||
|
|
Loading…
Reference in a new issue