ANDROID: Use -Wall and more when building libfdt am: 170bf1d4ce
am: 350d496637
Original change: https://android-review.googlesource.com/c/platform/external/dtc/+/2784258 Change-Id: I2d07fa447fcd0ff3c77eaae93fb4bd53705279b3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
98f5673dc6
3 changed files with 20 additions and 22 deletions
11
Android.bp
11
Android.bp
|
@ -44,14 +44,21 @@ license {
|
|||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "dt_defaults",
|
||||
name: "dtc_cflags_defaults",
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wno-macro-redefined",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-missing-field-initializers",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-unused-parameter",
|
||||
],
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "dt_defaults",
|
||||
defaults: ["dtc_cflags_defaults"],
|
||||
cflags: [
|
||||
"-DNO_YAML"
|
||||
],
|
||||
|
||||
|
|
24
BUILD.bazel
24
BUILD.bazel
|
@ -1,26 +1,22 @@
|
|||
COPTS = [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wno-macro-redefined",
|
||||
"-Wno-missing-field-initializers",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-unused-parameter",
|
||||
]
|
||||
|
||||
cc_library(
|
||||
name = "libfdt",
|
||||
srcs = glob([
|
||||
"libfdt/*.h",
|
||||
"libfdt/*.c",
|
||||
]),
|
||||
copts = [
|
||||
"-Werror",
|
||||
"-Wno-macro-redefined",
|
||||
"-Wno-sign-compare",
|
||||
],
|
||||
copts = COPTS,
|
||||
includes = ["libfdt"],
|
||||
)
|
||||
|
||||
COPTS = [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wno-macro-redefined",
|
||||
"-Wno-sign-compare",
|
||||
"-Wno-missing-field-initializers",
|
||||
"-Wno-unused-parameter",
|
||||
]
|
||||
|
||||
genrule(
|
||||
name = "lexer",
|
||||
srcs = [
|
||||
|
|
|
@ -7,12 +7,7 @@ package {
|
|||
cc_library {
|
||||
name: "libfdt",
|
||||
host_supported: true,
|
||||
|
||||
cflags: [
|
||||
"-Werror",
|
||||
"-Wno-macro-redefined",
|
||||
"-Wno-sign-compare",
|
||||
],
|
||||
defaults: ["dtc_cflags_defaults"],
|
||||
srcs: [
|
||||
"fdt.c",
|
||||
"fdt_check.c",
|
||||
|
|
Loading…
Reference in a new issue