diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-05-26 19:38:35 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-06-01 17:22:52 -0400 |
commit | 6fb4193559a371c6131005c71cdc5060c1d9e667 (patch) | |
tree | 2e336cdf0fb156a170a933435391b5b56f52158f /drivers/gpu | |
parent | 8b05c705fb1cfd3d4f9196f1eadedf0c0b4eff69 (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')
-rw-r--r-- | drivers/gpu/nvgpu/Makefile | 8 |
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 | ||
114 | ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) | 114 | ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) |
115 | include ../nvgpu-t18x/drivers/gpu/nvgpu/Makefile | 115 | ifneq ($(wildcard $(srctree)/../nvgpu-t18x/drivers/gpu/nvgpu/Makefile),) |
116 | include $(srctree)/../nvgpu-t18x/drivers/gpu/nvgpu/Makefile | ||
117 | endif | ||
116 | endif | 118 | endif |
117 | 119 | ||
118 | ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y) | 120 | ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y) |
119 | include ../nvgpu-t19x/drivers/gpu/nvgpu/Makefile | 121 | ifneq ($(wildcard $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile),) |
122 | include $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile | ||
123 | endif | ||
120 | endif | 124 | endif |