From bde39f44e5726b3ddbe2e7cc076def2a9de943ba Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Fri, 20 May 2022 07:50:50 +0000 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2715741 Reviewed-by: Bitan Biswas GVS: Gerrit_Virtual_Submit --- drivers/video/tegra/Makefile | 1 + drivers/video/tegra/host/nvdla/Makefile | 9 +++++++++ kernel-src-files-copy-list.txt | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 drivers/video/tegra/host/nvdla/Makefile diff --git a/drivers/video/tegra/Makefile b/drivers/video/tegra/Makefile index 173995af..3bc12547 100644 --- a/drivers/video/tegra/Makefile +++ b/drivers/video/tegra/Makefile @@ -2,3 +2,4 @@ # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. obj-m += nvmap/ +obj-m += host/nvdla/ diff --git a/drivers/video/tegra/host/nvdla/Makefile b/drivers/video/tegra/host/nvdla/Makefile new file mode 100644 index 00000000..3bb8205e --- /dev/null +++ b/drivers/video/tegra/host/nvdla/Makefile @@ -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. diff --git a/kernel-src-files-copy-list.txt b/kernel-src-files-copy-list.txt index c01a7f86..4455b030 100644 --- a/kernel-src-files-copy-list.txt +++ b/kernel-src-files-copy-list.txt @@ -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/include/linux/nvhost.h include/linux/nvhost.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