summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-03-08 13:54:02 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:11 -0500
commiteada66b2a90d08e3323ec76dfd4ad78f3c9f0ee5 (patch)
tree013d6454db303cc88e35cbbeb169d419883789d2 /drivers
parent5244299cdf56047a28d5ba0944649ea0f8cd0928 (diff)
gpu: nvgpu: gp10b: Allow importing makefile via include
Refactor makefiles so that there is one makefile, and that file can be included in the main nvgpu build. Bug 1476801 Change-Id: I23ac451d695fc64064de2300e83b9d9487c52743 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1028353 Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/Makefile33
-rw-r--r--drivers/gpu/nvgpu/gp10b/Makefile31
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/Makefile16
3 files changed, 25 insertions, 55 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile
index 37cc15a5..c4873257 100644
--- a/drivers/gpu/nvgpu/Makefile
+++ b/drivers/gpu/nvgpu/Makefile
@@ -1,10 +1,27 @@
1GCOV_PROFILE := y 1nvgpu-t18x := ../../../../kernel-t18x/drivers/gpu/nvgpu
2 2
3ccflags-$(CONFIG_GK20A) += -I$(srctree)/drivers/gpu/nvgpu 3nvgpu-y += \
4ccflags-$(CONFIG_GK20A) += -I$(srctree)/include/linux 4 $(nvgpu-t18x)/gp10b/gr_gp10b.o \
5ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/include 5 $(nvgpu-t18x)/gp10b/gr_ctx_gp10b.o \
6ccflags-$(CONFIG_GK20A) += -Wno-multichar 6 $(nvgpu-t18x)/gp10b/ce2_gp10b.o \
7ccflags-$(CONFIG_GK20A) += -Werror 7 $(nvgpu-t18x)/gp10b/mc_gp10b.o \
8 $(nvgpu-t18x)/gp10b/fifo_gp10b.o \
9 $(nvgpu-t18x)/gp10b/ltc_gp10b.o \
10 $(nvgpu-t18x)/gp10b/mm_gp10b.o \
11 $(nvgpu-t18x)/gp10b/fb_gp10b.o \
12 $(nvgpu-t18x)/gp10b/pmu_gp10b.o \
13 $(nvgpu-t18x)/gp10b/hal_gp10b.o \
14 $(nvgpu-t18x)/gp10b/rpfb_gp10b.o \
15 $(nvgpu-t18x)/gp10b/gp10b_gating_reglist.o \
16 $(nvgpu-t18x)/gp10b/regops_gp10b.o \
17 $(nvgpu-t18x)/gp10b/cde_gp10b.o \
18 $(nvgpu-t18x)/gp10b/therm_gp10b.o \
19 $(nvgpu-t18x)/gp10b/gp10b_sysfs.o
8 20
9obj-$(CONFIG_GK20A) += gp10b/ 21nvgpu-$(CONFIG_TEGRA_GK20A) += $(nvgpu-t18x)/gp10b/platform_gp10b_tegra.o
10obj-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += vgpu/gp10b/ 22
23nvgpu-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += \
24 $(nvgpu-t18x)/vgpu/gp10b/vgpu_hal_gp10b.o \
25 $(nvgpu-t18x)/vgpu/gp10b/vgpu_gr_gp10b.o \
26 $(nvgpu-t18x)/vgpu/gp10b/vgpu_mm_gp10b.o \
27 $(nvgpu-t18x)/vgpu/gp10b/vgpu_fifo_gp10b.o
diff --git a/drivers/gpu/nvgpu/gp10b/Makefile b/drivers/gpu/nvgpu/gp10b/Makefile
deleted file mode 100644
index 8b930bca..00000000
--- a/drivers/gpu/nvgpu/gp10b/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
1GCOV_PROFILE := y
2
3ccflags-$(CONFIG_GK20A) += -I$(srctree)/drivers/gpu/nvgpu
4ccflags-$(CONFIG_GK20A) += -I$(srctree)/include
5ccflags-$(CONFIG_GK20A) += -I$(srctree)/drivers/devfreq
6ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/drivers/gpu/nvgpu
7ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/include
8ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/include/uapi
9
10ccflags-$(CONFIG_GK20A) += -Wno-multichar
11ccflags-y += -Werror
12
13obj-$(CONFIG_GK20A) += \
14 gr_gp10b.o \
15 gr_ctx_gp10b.o \
16 ce2_gp10b.o \
17 mc_gp10b.o \
18 fifo_gp10b.o \
19 ltc_gp10b.o \
20 mm_gp10b.o \
21 fb_gp10b.o \
22 pmu_gp10b.o \
23 hal_gp10b.o \
24 rpfb_gp10b.o \
25 gp10b_gating_reglist.o \
26 regops_gp10b.o \
27 cde_gp10b.o \
28 therm_gp10b.o \
29 gp10b_sysfs.o
30
31obj-$(CONFIG_TEGRA_GK20A) += platform_gp10b_tegra.o
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/Makefile b/drivers/gpu/nvgpu/vgpu/gp10b/Makefile
deleted file mode 100644
index fed8a08e..00000000
--- a/drivers/gpu/nvgpu/vgpu/gp10b/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
1GCOV_PROFILE := y
2
3ccflags-$(CONFIG_GK20A) += -I$(srctree)/drivers/gpu/nvgpu
4ccflags-$(CONFIG_GK20A) += -I$(srctree)/include
5ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/drivers/gpu/nvgpu
6ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/include
7ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/include/uapi
8
9ccflags-$(CONFIG_GK20A) += -Wno-multichar
10ccflags-y += -Werror
11
12obj-$(CONFIG_GK20A) += \
13 vgpu_hal_gp10b.o \
14 vgpu_gr_gp10b.o \
15 vgpu_mm_gp10b.o \
16 vgpu_fifo_gp10b.o