From c148ffe26dfe19db26222cca4320516f175b4db9 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Mon, 7 Nov 2022 08:17:51 +0000 Subject: [PATCH] device-tree: Make DTS from kernel-dts of hardware/nvidia The folders hardware/nvidia/platform/t23x contains the platform specific DTS and their makefiles are in kernel-dts. The DT binding used in these DTS are deviated from upstream DT binding. To add the DTS for platforms matching with the mainline DT binding, it is required to compile only the legacy DTS or new DTS. Modify the makefile to compile DTS from kernel-dts folder only which contains the legacy DTS. Bug 3860258 Change-Id: I51866d18e0cd17edaf576f6632579c9999022042 Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2804178 GVS: Gerrit_Virtual_Submit --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2d718ae..2521335 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,9 @@ dtbo-oot-y := DTB_LIST := $(dtb-oot-y) DTBO_LIST := $(dtbo-oot-y) dtb-oot-y := +kdts := $(shell find $(tegra-dtstree)/platform/t23x -name kernel-dts) dts_makefile=$(foreach d,$(wildcard $1*), $(call dts_makefile,$(d)/,$(2)) $(if $(findstring Makefile,$(d)),$(d))) -dts_mfiles = $(call dts_makefile, $(tegra-dtstree)/platform/t23x, Makefile) +dts_mfiles = $(call dts_makefile, $(kdts), Makefile) ifneq ($(dts_mfiles),) dts-include :=