From 6fb4193559a371c6131005c71cdc5060c1d9e667 Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Thu, 26 May 2016 16:38:35 -0700 Subject: 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 Reviewed-on: http://git-master/r/1154761 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/Makefile') 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) += \ gk20a/css_gr_gk20a.o ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) -include ../nvgpu-t18x/drivers/gpu/nvgpu/Makefile +ifneq ($(wildcard $(srctree)/../nvgpu-t18x/drivers/gpu/nvgpu/Makefile),) +include $(srctree)/../nvgpu-t18x/drivers/gpu/nvgpu/Makefile +endif endif ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y) -include ../nvgpu-t19x/drivers/gpu/nvgpu/Makefile +ifneq ($(wildcard $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile),) +include $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile +endif endif -- cgit v1.2.2