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