Makefile.kernel defines the path to the dts files, so use that
definition if available instead of NV_SOURCE.
Bug
200217137
Bug
1802585
Change-Id: Ie164a918e31fbecad45d9c6f4d18755890bbb41c
Signed-off-by: Allen Martin <amartin@nvidia.com>
Reviewed-on: http://git-master/r/
1220299
Reviewed-by: Stefan Becker <stefanb@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
tegra-base-kernel-path = $(call _TEGRA_REL_PATH)/$(call _KERNEL_LAST)
tegra-path = $(if $(wildcard $(srctree)/../$(1)),$(call _TEGRA_REL_PATH)/$(1)/$(2),$(call tegra-base-kernel-path)/$(2))
-ifneq ($(NV_SOURCE),)
-tegra-dtstree = $(NV_SOURCE)/hardware/nvidia
+ifneq ($(NV_BUILD_KERNEL_DTS_ROOT),)
+tegra-dtstree = $(NV_BUILD_KERNEL_DTS_ROOT)
else
tegra-dtstree = $(srctree)/../../hardware/nvidia
endif