summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2017-09-22 16:31:26 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-29 14:00:55 -0400
commitf01fe2bb3954712935a5dd0ab1d2d02a779d2a2a (patch)
treef0394e41411bd9d0be7fc231ee26a91941e636ee
parent0a93373364f8520e552f96b7e8fc22a5917f83ea (diff)
nvgpu: use kernel overlay features
Update all Kconfig files and Makefiles to rely on the kernel overlay feature. In particular, don't include any Kconfig files or Makefiles from other overlays. -I directives in CFLAGS are not yet cleaned up. Bug 1978395 Change-Id: I449ed2f07949785f2dd90a6833f4d8cd1711519a Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1566641 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/Kconfig5
-rw-r--r--drivers/gpu/Makefile1
-rw-r--r--drivers/gpu/nvgpu/Kconfig (renamed from drivers/gpu/nvgpu/Kconfig.nvgpu)2
-rw-r--r--drivers/gpu/nvgpu/Makefile (renamed from drivers/gpu/nvgpu/Makefile.nvgpu)9
4 files changed, 6 insertions, 11 deletions
diff --git a/drivers/Kconfig b/drivers/Kconfig
new file mode 100644
index 00000000..d9c76e76
--- /dev/null
+++ b/drivers/Kconfig
@@ -0,0 +1,5 @@
1append_menu "Device Drivers"
2
3source "drivers/gpu/nvgpu/Kconfig"
4
5endmenu
diff --git a/drivers/gpu/Makefile b/drivers/gpu/Makefile
new file mode 100644
index 00000000..af71a62a
--- /dev/null
+++ b/drivers/gpu/Makefile
@@ -0,0 +1 @@
obj-$(CONFIG_GK20A) += nvgpu/
diff --git a/drivers/gpu/nvgpu/Kconfig.nvgpu b/drivers/gpu/nvgpu/Kconfig
index 2a922ba2..4f90a35c 100644
--- a/drivers/gpu/nvgpu/Kconfig.nvgpu
+++ b/drivers/gpu/nvgpu/Kconfig
@@ -136,5 +136,3 @@ config GK20A_VIDMEM
136 Enable support for using and allocating buffers in a distinct video 136 Enable support for using and allocating buffers in a distinct video
137 memory aperture (in contrast to general system memory), available on 137 memory aperture (in contrast to general system memory), available on
138 GPUs that have their own banks. PCIe GPUs have this, for example. 138 GPUs that have their own banks. PCIe GPUs have this, for example.
139
140trysource "../nvgpu-t19x/drivers/gpu/nvgpu/Kconfig"
diff --git a/drivers/gpu/nvgpu/Makefile.nvgpu b/drivers/gpu/nvgpu/Makefile
index 1217fead..af7a8af5 100644
--- a/drivers/gpu/nvgpu/Makefile.nvgpu
+++ b/drivers/gpu/nvgpu/Makefile
@@ -256,12 +256,3 @@ nvgpu-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += \
256 vgpu/gp10b/vgpu_gr_gp10b.o \ 256 vgpu/gp10b/vgpu_gr_gp10b.o \
257 vgpu/gp10b/vgpu_mm_gp10b.o 257 vgpu/gp10b/vgpu_mm_gp10b.o
258endif 258endif
259
260ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y)
261ifneq ($(wildcard $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile),)
262include $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile
263endif
264ifneq ($(wildcard $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile.nvgpu-t19x),)
265include $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile.nvgpu-t19x
266endif
267endif