]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
kbuild: use NV_BUILD_KERNEL_DTS_ROOT if available
authorAllen Martin <amartin@nvidia.com>
Tue, 13 Sep 2016 22:05:44 +0000 (15:05 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 15 Sep 2016 19:24:48 +0000 (12:24 -0700)
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>
scripts/Kbuild.include

index 93d177d3cd0a16e0fa3752e75882057149e03fce..d6b3c13980bdd0f1327648b99ffa7888980cd82a 100644 (file)
@@ -385,8 +385,8 @@ _KERNEL_LAST = $(lastword $(subst /, ,$(realpath $(srctree))))
 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