scripts: Allow QCOM devicetree overlays to be properly combined
Apply the same logic that Qualcomm uses on their 5.15 kernel_platform build scripts, as seen in commit e10f5dc. As a sidenote, passing DTC_FLAGS externally is not an option since it overrides any other flags set by the kernel makefile.
This commit is contained in:
parent
5780d3b53b
commit
976e70b34a
@ -365,8 +365,13 @@ endif
|
||||
|
||||
DTC_FLAGS += $(DTC_FLAGS_$(basetarget))
|
||||
|
||||
ifeq ($(CONFIG_ARCH_QCOM),y)
|
||||
# Forcibly set -@ for all DTB[O]s in case of QCOM targets
|
||||
DTC_FLAGS += -@
|
||||
else
|
||||
# Set -@ if the target is a base DTB that overlay is applied onto
|
||||
DTC_FLAGS += $(if $(filter $(patsubst $(obj)/%,%,$@), $(base-dtb-y)), -@)
|
||||
endif
|
||||
|
||||
# Generate an assembly file to wrap the output of the device tree compiler
|
||||
quiet_cmd_dt_S_dtb= DTB $@
|
||||
|
Loading…
Reference in New Issue
Block a user