mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "scripts: Makefile: Remove flags which are not support by EXT_DTC"
This commit is contained in:
commit
f5f00f4ff2
2 changed files with 12 additions and 1 deletions
|
|
@ -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 \
|
||||
|
|
@ -287,6 +290,12 @@ cmd_dt_S_dtb= \
|
|||
$(obj)/%.dtb.S: $(obj)/%.dtb FORCE
|
||||
$(call if_changed,dt_S_dtb)
|
||||
|
||||
ifneq ($(DTC_EXT),)
|
||||
DTC = $(DTC_EXT)
|
||||
else
|
||||
DTC = $(objtree)/scripts/dtc/dtc
|
||||
endif
|
||||
|
||||
quiet_cmd_dtc = DTC $@
|
||||
cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
|
||||
$(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
# scripts/dtc makefile
|
||||
|
||||
hostprogs-$(CONFIG_DTC) := dtc
|
||||
ifeq ($(DTC_EXT),)
|
||||
always := $(hostprogs-y)
|
||||
endif
|
||||
|
||||
dtc-objs := dtc.o flattree.o fstree.o data.o livetree.o treesource.o \
|
||||
srcpos.o checks.o util.o
|
||||
|
|
|
|||
Loading…
Reference in a new issue