Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5f00f4f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scripts: Makefile: Remove flags which are not support by EXT_DTC"

parents 916dbcdb 86bb5dca
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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