From 86bb5dca4b65c51174fecdc87017309f0846cf0f Mon Sep 17 00:00:00 2001 From: Runmin Wang Date: Fri, 11 Aug 2017 14:29:02 -0700 Subject: [PATCH] scripts: Makefile: Remove flags which are not support by EXT_DTC DTBO relies on external DTC compiler and there are certain flags which are not supported by the external DTC compiler. Add a check to remove those flags for now. Change-Id: I318a1d110bd54a4a888ee8a5456d7c5a39bd9f6b Signed-off-by: Runmin Wang --- scripts/Makefile.lib | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index e4ddafd6d12d..e077c55c21ab 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -252,7 +252,10 @@ DTC ?= $(objtree)/scripts/dtc/dtc # Disable noisy checks by default ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),) -DTC_FLAGS += -Wno-unit_address_vs_reg \ +DTC_FLAGS += -Wno-unit_address_vs_reg +endif +ifeq ($(DTC_EXT),) +DTC_FLAGS += -Wno-simple_bus_reg \ -Wno-unit_address_format \ -Wno-avoid_unnecessary_addr_size \ -Wno-alias_paths \