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

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

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

parents 9d2c3982 c6fc2db0
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -257,7 +257,10 @@ DTC ?= $(objtree)/scripts/dtc/dtc

# Disable noisy checks by default
ifeq ($(findstring 1,$(KBUILD_ENABLE_EXTRA_GCC_CHECKS)),)
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 \
@@ -292,6 +295,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}) ; \
	$(CPP) $(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-y	:= 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