diff options
author | Rob Herring <robh@kernel.org> | 2016-03-24 11:52:42 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2016-03-31 12:44:16 -0400 |
commit | bc553986a2f7c56d0de811485d5312ea29692d5d (patch) | |
tree | 6297dfb2a986e759dcfc32f215162b0ff7576b88 | |
parent | b993734718c0106418e068f21c7be01afc12306c (diff) |
dtc: turn off dtc unit address warnings by default
The newly added dtc warning to check DT unit-address without reg
property and vice-versa generates lots of warnings. Turn off the check
unless building with W=1 or W=2.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Michal Marek <mmarek@suse.com>
Cc: linux-kbuild@vger.kernel.org
-rw-r--r-- | scripts/Makefile.lib | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index ddf83d0181e7..ed1b7c4fb674 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -277,6 +277,11 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \ | |||
277 | # --------------------------------------------------------------------------- | 277 | # --------------------------------------------------------------------------- |
278 | DTC ?= $(objtree)/scripts/dtc/dtc | 278 | DTC ?= $(objtree)/scripts/dtc/dtc |
279 | 279 | ||
280 | # Disable noisy checks by default | ||
281 | ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),) | ||
282 | DTC_FLAGS += -Wno-unit_address_vs_reg | ||
283 | endif | ||
284 | |||
280 | # Generate an assembly file to wrap the output of the device tree compiler | 285 | # Generate an assembly file to wrap the output of the device tree compiler |
281 | quiet_cmd_dt_S_dtb= DTB $@ | 286 | quiet_cmd_dt_S_dtb= DTB $@ |
282 | cmd_dt_S_dtb= \ | 287 | cmd_dt_S_dtb= \ |