From ccfbeb3f8178a397c99c2f6c4c531ed0b768bca3 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 --- generic-dts/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generic-dts/Makefile b/generic-dts/Makefile index a2076f2..f8e07c4 100644 --- a/generic-dts/Makefile +++ b/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)))