nvdla: Copy source file from kernel/nvidia to build nvdla module

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

Files get copied at build time.

Bug 3583604

Change-Id: Ieb7169ada0f18e42cdb0883fdef92bba12e161d2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2715741
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Laxman Dewangan
2022-05-20 07:50:50 +00:00
committed by mobile promotions
parent b2bf35ce6d
commit bde39f44e5
3 changed files with 16 additions and 0 deletions

View File

@@ -2,3 +2,4 @@
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
obj-m += nvmap/ obj-m += nvmap/
obj-m += host/nvdla/

View File

@@ -0,0 +1,9 @@
# 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/nvidia/drivers/video/tegra/host/nvdla. 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

@@ -24,3 +24,9 @@ copy_dir nvidia/drivers/gpu/host1x-nvhost drivers/gpu/host1x-nvhost
copy_file nvidia/drivers/gpu/host1x/include/linux/host1x-next.h include/linux/host1x-next.h copy_file nvidia/drivers/gpu/host1x/include/linux/host1x-next.h include/linux/host1x-next.h
copy_file nvidia/include/linux/nvhost.h include/linux/nvhost.h copy_file nvidia/include/linux/nvhost.h include/linux/nvhost.h
copy_file nvidia/include/uapi/linux/nvdev_fence.h include/uapi/linux/nvdev_fence.h copy_file nvidia/include/uapi/linux/nvdev_fence.h include/uapi/linux/nvdev_fence.h
# Files/directories for NVDLA
copy_dir nvidia/drivers/video/tegra/host/nvdla drivers/video/tegra/host/nvdla
copy_file nvidia/include/linux/arm64-barrier.h include/linux/arm64-barrier.h
copy_file nvidia/include/uapi/linux/nvhost_nvdla_ioctl.h include/uapi/linux/nvhost_nvdla_ioctl.h
copy_file nvidia/include/uapi/linux/nvhost_ioctl.h include/uapi/linux/nvhost_ioctl.h