X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=scripts%2FMakefile.extrawarn;h=1d3a5705946d53e6c5bc90bcb3c9c364a0c8a4ea;hb=477b16a7982eee080a142f08f2cf2d05ade99c31;hp=6547e573574b0a1a03b325ddf878a8ae1275614f;hpb=e6ac28b60be2d670948332197862e314b7977177;p=people%2Fms%2Fu-boot.git diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 6547e57357..1d3a570594 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -57,4 +57,24 @@ ifeq ("$(strip $(warning))","") endif KBUILD_CFLAGS += $(warning) + +dtc-warning-2 += -Wnode_name_chars_strict +dtc-warning-2 += -Wproperty_name_chars_strict + +dtc-warning := $(dtc-warning-$(findstring 1, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) +dtc-warning += $(dtc-warning-$(findstring 2, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) +dtc-warning += $(dtc-warning-$(findstring 3, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) + +DTC_FLAGS += $(dtc-warning) + +else + +# Disable noisy checks by default +DTC_FLAGS += -Wno-unit_address_vs_reg +DTC_FLAGS += -Wno-simple_bus_reg +DTC_FLAGS += -Wno-unit_address_format +DTC_FLAGS += -Wno-pci_bridge +DTC_FLAGS += -Wno-pci_device_bus_num +DTC_FLAGS += -Wno-pci_device_reg + endif