diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-03-08 13:54:02 -0500 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:11 -0500 |
commit | eada66b2a90d08e3323ec76dfd4ad78f3c9f0ee5 (patch) | |
tree | 013d6454db303cc88e35cbbeb169d419883789d2 /drivers/gpu/nvgpu/Makefile | |
parent | 5244299cdf56047a28d5ba0944649ea0f8cd0928 (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/gpu/nvgpu/Makefile')
-rw-r--r-- | drivers/gpu/nvgpu/Makefile | 33 |
1 files changed, 25 insertions, 8 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 @@ | |||
1 | GCOV_PROFILE := y | 1 | nvgpu-t18x := ../../../../kernel-t18x/drivers/gpu/nvgpu |
2 | 2 | ||
3 | ccflags-$(CONFIG_GK20A) += -I$(srctree)/drivers/gpu/nvgpu | 3 | nvgpu-y += \ |
4 | ccflags-$(CONFIG_GK20A) += -I$(srctree)/include/linux | 4 | $(nvgpu-t18x)/gp10b/gr_gp10b.o \ |
5 | ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/include | 5 | $(nvgpu-t18x)/gp10b/gr_ctx_gp10b.o \ |
6 | ccflags-$(CONFIG_GK20A) += -Wno-multichar | 6 | $(nvgpu-t18x)/gp10b/ce2_gp10b.o \ |
7 | ccflags-$(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 | ||
9 | obj-$(CONFIG_GK20A) += gp10b/ | 21 | nvgpu-$(CONFIG_TEGRA_GK20A) += $(nvgpu-t18x)/gp10b/platform_gp10b_tegra.o |
10 | obj-$(CONFIG_TEGRA_GR_VIRTUALIZATION) += vgpu/gp10b/ | 22 | |
23 | nvgpu-$(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 | ||