mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
device-tree: Makefile: Exclude DTS file from protected SOCs
For few kernel variant, it is not required to build DT for private SoCs. The list of protected SoCs is passed from parent makefile. Parse the list and exclude the DTS from that SOC's platform. Change-Id: If29cdc3e1279b929b5c8f90151dd86245c387075 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2863623 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
ef7772605e
commit
79cd1e31b1
@@ -55,7 +55,16 @@ dtbo-y :=
|
|||||||
DTB_LIST := $(dtb-y)
|
DTB_LIST := $(dtb-y)
|
||||||
DTBO_LIST := $(dtbo-y)
|
DTBO_LIST := $(dtbo-y)
|
||||||
dtb-y :=
|
dtb-y :=
|
||||||
kdts := $(shell find $(tegra-dtstree)/platform -name generic-dts)
|
fdts := $(shell find $(tegra-dtstree)/platform -name generic-dts)
|
||||||
|
|
||||||
|
# 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)))
|
||||||
|
kdts := $(filter-out $(space)$(space),$(kdts))
|
||||||
|
else
|
||||||
|
kdts := $(fdts)
|
||||||
|
endif
|
||||||
|
|
||||||
dts_makefile=$(foreach d,$(wildcard $1*), $(call dts_makefile,$(d)/,$(2)) $(if $(findstring Makefile,$(d)),$(d)))
|
dts_makefile=$(foreach d,$(wildcard $1*), $(call dts_makefile,$(d)/,$(2)) $(if $(findstring Makefile,$(d)),$(d)))
|
||||||
dts_mfiles = $(call dts_makefile, $(kdts), Makefile)
|
dts_mfiles = $(call dts_makefile, $(kdts), Makefile)
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,16 @@ dtbo-oot-y :=
|
|||||||
DTB_LIST := $(dtb-oot-y)
|
DTB_LIST := $(dtb-oot-y)
|
||||||
DTBO_LIST := $(dtbo-oot-y)
|
DTBO_LIST := $(dtbo-oot-y)
|
||||||
dtb-oot-y :=
|
dtb-oot-y :=
|
||||||
kdts := $(shell find $(tegra-dtstree)/platform -name kernel-dts)
|
fdts := $(shell find $(tegra-dtstree)/platform -name kernel-dts)
|
||||||
|
|
||||||
|
# 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)))
|
||||||
|
kdts := $(filter-out $(space)$(space),$(kdts))
|
||||||
|
else
|
||||||
|
kdts := $(fdts)
|
||||||
|
endif
|
||||||
|
|
||||||
dts_makefile=$(foreach d,$(wildcard $1*), $(call dts_makefile,$(d)/,$(2)) $(if $(findstring Makefile,$(d)),$(d)))
|
dts_makefile=$(foreach d,$(wildcard $1*), $(call dts_makefile,$(d)/,$(2)) $(if $(findstring Makefile,$(d)),$(d)))
|
||||||
dts_mfiles = $(call dts_makefile, $(kdts), Makefile)
|
dts_mfiles = $(call dts_makefile, $(kdts), Makefile)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user