summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Makefile
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2016-05-26 19:38:35 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-06-01 17:22:52 -0400
commit6fb4193559a371c6131005c71cdc5060c1d9e667 (patch)
tree2e336cdf0fb156a170a933435391b5b56f52158f /drivers/gpu/nvgpu/Makefile
parent8b05c705fb1cfd3d4f9196f1eadedf0c0b4eff69 (diff)
gpu: nvgpu: include makefiles conditionally
Include chip specific makefiles, only if they are present in current source tree. Bug 1757988 Change-Id: I60a468bce6e0d20459aa643ccbce9bacbcd163bf Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1154761 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile')
-rw-r--r--drivers/gpu/nvgpu/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile
index f7bbd744..13a35f76 100644
--- a/drivers/gpu/nvgpu/Makefile
+++ b/drivers/gpu/nvgpu/Makefile
@@ -112,9 +112,13 @@ nvgpu-$(CONFIG_GK20A_CYCLE_STATS) += \
112 gk20a/css_gr_gk20a.o 112 gk20a/css_gr_gk20a.o
113 113
114ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) 114ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
115include ../nvgpu-t18x/drivers/gpu/nvgpu/Makefile 115ifneq ($(wildcard $(srctree)/../nvgpu-t18x/drivers/gpu/nvgpu/Makefile),)
116include $(srctree)/../nvgpu-t18x/drivers/gpu/nvgpu/Makefile
117endif
116endif 118endif
117 119
118ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y) 120ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y)
119include ../nvgpu-t19x/drivers/gpu/nvgpu/Makefile 121ifneq ($(wildcard $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile),)
122include $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile
123endif
120endif 124endif