summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/Makefile
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-01-24 15:42:57 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-02-15 17:11:46 -0500
commit662c441467c4f251d65840f2097ac4e58ec234ff (patch)
tree6d28a87ee4805bd51ab41fbdb158ee596f9e9fe8 /drivers/gpu/nvgpu/Makefile
parentb6ab47d39683f607de166fef1111b20d8eda097e (diff)
gpu: nvgpu: Allow disabling CDE functionality
CDE is a Tegra SoC specific feature. Add new config option CONFIG_NVGPU_SUPPORT_CDE and #ifdef all CDE specific code with it. JIRA NVGPU-4 Change-Id: I6f0b0047d6ba2b5c36c2eb9b8a1514776741f5b5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1648002 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Makefile')
-rw-r--r--drivers/gpu/nvgpu/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile
index c99a48dc..4169bc9b 100644
--- a/drivers/gpu/nvgpu/Makefile
+++ b/drivers/gpu/nvgpu/Makefile
@@ -38,12 +38,9 @@ nvgpu-y := \
38 common/linux/vm.o \ 38 common/linux/vm.o \
39 common/linux/intr.o \ 39 common/linux/intr.o \
40 common/linux/sysfs.o \ 40 common/linux/sysfs.o \
41 common/linux/cde.o \
42 common/linux/io.o \ 41 common/linux/io.o \
43 common/linux/io_usermode.o \ 42 common/linux/io_usermode.o \
44 common/linux/rwsem.o \ 43 common/linux/rwsem.o \
45 common/linux/cde_gm20b.o \
46 common/linux/cde_gp10b.o \
47 common/linux/comptags.o \ 44 common/linux/comptags.o \
48 common/linux/dmabuf.o \ 45 common/linux/dmabuf.o \
49 common/linux/sched.o \ 46 common/linux/sched.o \
@@ -132,7 +129,6 @@ nvgpu-$(CONFIG_DEBUG_FS) += \
132 common/linux/debug.o \ 129 common/linux/debug.o \
133 common/linux/debug_gr.o \ 130 common/linux/debug_gr.o \
134 common/linux/debug_fifo.o \ 131 common/linux/debug_fifo.o \
135 common/linux/debug_cde.o \
136 common/linux/debug_ce.o \ 132 common/linux/debug_ce.o \
137 common/linux/debug_pmu.o \ 133 common/linux/debug_pmu.o \
138 common/linux/debug_sched.o \ 134 common/linux/debug_sched.o \
@@ -301,3 +297,13 @@ nvgpu-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += \
301 common/linux/vgpu/gv11b/vgpu_fifo_gv11b.o \ 297 common/linux/vgpu/gv11b/vgpu_fifo_gv11b.o \
302 common/linux/vgpu/gv11b/vgpu_subctx_gv11b.o \ 298 common/linux/vgpu/gv11b/vgpu_subctx_gv11b.o \
303 common/linux/vgpu/gv11b/vgpu_tsg_gv11b.o 299 common/linux/vgpu/gv11b/vgpu_tsg_gv11b.o
300
301nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \
302 common/linux/cde.o \
303 common/linux/cde_gm20b.o \
304 common/linux/cde_gp10b.o
305
306ifeq ($(CONFIG_DEBUG_FS),y)
307nvgpu-$(CONFIG_NVGPU_SUPPORT_CDE) += \
308 common/linux/debug_cde.o
309endif