From ac4912cb26978cefc0fc6272f7d528362e6f6c03 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Wed, 20 Sep 2023 16:08:30 +0000 Subject: [PATCH] device-tree: generic: Add support to scan DT of internal SoCs Add the support to build the DT of internal SoCs without adding direct name from the Makefile but passed from the make command. This will help to make the DT of all internal SoCs. Bug 4197981 Change-Id: I03c55cef5903a814a20d6f86d8ecfffe552daf29 Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2982406 GVS: Gerrit_Virtual_Submit --- device-tree/platform/generic-dts/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/device-tree/platform/generic-dts/Makefile b/device-tree/platform/generic-dts/Makefile index a2076f26..f8e07c4a 100644 --- a/device-tree/platform/generic-dts/Makefile +++ b/device-tree/platform/generic-dts/Makefile @@ -61,6 +61,11 @@ DTBO_LIST := $(dtbo-y) dtb-y := fdts := $(tegra-dtstree)/t23x +# Add internal SOCs to scan the DT makefiles +ifneq ($(internal_soc_list),) +fdts += $(addprefix $(tegra-dtstree)/,$(internal_soc_list)) +endif + # Remove the DTs from protected soc list ifneq ($(protected_soc_list),) kdts := $(foreach dt_path, $(fdts), $(if $(filter $(protected_soc_list),$(patsubst -,$(space),$(subst /, $(space),$(dt_path)))),,$(dt_path)))