From 0dad104f6c6fe7233fbeafcb144adc1f0e951a25 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Thu, 23 Jan 2025 14:35:23 +0800 Subject: [PATCH] qcom: devicetree: Enable building qcom dtbo Change-Id: I7b1f13ce7189f5b784564f6670fcdbc6dc9c9550 --- Makefile | 2 +- qcom/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d3be19ad..d900a77e 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ vendor := $(srctree)/$(src) ifneq "$(wildcard $(vendor)/qcom)" "" #OPLUS_DTS_OVERLAY start - #subdir-y += qcom + subdir-y += qcom #OPLUS_DTS_OVERLAY end endif #OPLUS_DTS_OVERLAY start diff --git a/qcom/Makefile b/qcom/Makefile index 8332fa17..abc0765a 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -6,6 +6,8 @@ # Combined dtb target is also generated using the fdt_overlay tool. # dtb-y += -.dtb +ifneq (,) + add-overlays = $(foreach o,$1,$(foreach b,$2,$(eval $(basename $b)-$(basename $o)-dtbs = $b $o) $(basename $b)-$(basename $o).dtb)) # sun-dtb-y is list of DTBs to install when doing non-overlay build @@ -369,6 +371,8 @@ dtb-y += $(parrot_tuivm-dtb-y) endif endif +endif + always-y := $(dtb-y) subdir-y := $(dts-dirs) subdir-y += audio bt camera data display dsp eSE eva fingerprint graphics mm mmrm nfc synx video wlan