|
@@ -274,6 +274,22 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \
|
|
# DTC
|
|
# DTC
|
|
# ---------------------------------------------------------------------------
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
+# Disable noisy checks by default
|
|
|
|
+ifeq ($(findstring 1,$(KBUILD_ENABLE_EXTRA_GCC_CHECKS)),)
|
|
|
|
+DTC_FLAGS += -Wno-unit_address_vs_reg \
|
|
|
|
+ -Wno-unit_address_format \
|
|
|
|
+ -Wno-avoid_unnecessary_addr_size \
|
|
|
|
+ -Wno-alias_paths \
|
|
|
|
+ -Wno-pci_device_reg
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifneq ($(findstring 2,$(KBUILD_ENABLE_EXTRA_GCC_CHECKS)),)
|
|
|
|
+DTC_FLAGS += -Wnode_name_chars_strict \
|
|
|
|
+ -Wproperty_name_chars_strict
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+DTC_FLAGS += $(DTC_FLAGS_$(basetarget))
|
|
|
|
+
|
|
# Generate an assembly file to wrap the output of the device tree compiler
|
|
# Generate an assembly file to wrap the output of the device tree compiler
|
|
quiet_cmd_dt_S_dtb= DTB $@
|
|
quiet_cmd_dt_S_dtb= DTB $@
|
|
# Modified for U-Boot
|
|
# Modified for U-Boot
|