nvgpu: Copy source file from kernel/nvgpu to build nvgpu module

Copy the sources of nvgpu module from kernel/nvgpu to
kernel/nvidia-oot to build nvgpu as OOT module.

Files get copied at build time.

Change-Id: I4053685edd5e3f8cec6e16aefb183a13c6210d0e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2718331
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Laxman Dewangan
2022-05-20 09:57:13 +00:00
committed by mobile promotions
parent 53115452ad
commit 32987b224a
3 changed files with 17 additions and 0 deletions

View File

@@ -4,3 +4,4 @@
obj-m += drm/tegra/
obj-m += host1x/
obj-m += host1x-nvhost/
obj-m += nvgpu/

View File

@@ -0,0 +1,10 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
# NOTE: Do not change or add anything in this makefile.
# The source code and makefile rules are copied from the
# kernel/nvgpu/drivers/gpu/nvgpu. This file is
# just place-holder for empty makefile to avoid any build
# issue when copy is not done from command line and building
# the tree independent of source copy.

View File

@@ -33,3 +33,9 @@ copy_file nvidia/include/uapi/linux/nvhost_ioctl.h include/uapi/linux/nvhost_ioc
# Files/directories for DRM
copy_dir nvidia/drivers/gpu/drm/tegra drivers/gpu/drm/tegra
# Files/directories for NVGPU
copy_dir nvgpu/drivers/gpu/nvgpu drivers/gpu/nvgpu
copy_dir nvgpu/include include
copy_dir nvgpu/nvsched nvsched
copy_file nvidia/drivers/video/tegra/nvmap/include/linux/nvmap_exports.h include/linux/nvmap_exports.h