From 4295256967f4edf68f1a148494b320d6cb0e22a1 Mon Sep 17 00:00:00 2001 From: Lauri Peltonen Date: Wed, 12 Mar 2014 18:44:55 +0200 Subject: gpu: nvgpu: Allow module build This patch makes the necessary modifications to the gk20a driver to allow building it as a module. Bug 1476801 Change-Id: I88c4e1c1867baa1c2d010ac6e0c30bdb5fd63b91 Signed-off-by: Lauri Peltonen Reviewed-on: http://git-master/r/380970 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/Makefile b/drivers/gpu/nvgpu/gk20a/Makefile index f9b06b72..cba31681 100644 --- a/drivers/gpu/nvgpu/gk20a/Makefile +++ b/drivers/gpu/nvgpu/gk20a/Makefile @@ -4,7 +4,7 @@ ccflags-y += -Idrivers/devfreq ccflags-y += -Wno-multichar ccflags-y += -Werror -obj-$(CONFIG_GK20A) += \ +nvgpu-y := \ gk20a.o \ as_gk20a.o \ ctrl_gk20a.o \ @@ -30,7 +30,8 @@ obj-$(CONFIG_GK20A) += \ fb_gk20a.o \ hal.o \ hal_gk20a.o \ - gk20a_allocator.o + gk20a_allocator.o \ + platform_gk20a_generic.o +nvgpu-$(CONFIG_TEGRA_GK20A) += platform_gk20a_tegra.o -obj-$(CONFIG_GK20A) += platform_gk20a_generic.o -obj-$(CONFIG_TEGRA_GK20A) += platform_gk20a_tegra.o +obj-$(CONFIG_GK20A) := nvgpu.o -- cgit v1.2.2