From 6ccce37d83c24026b38580d654765b2ff3191e96 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 7 Jun 2022 16:30:21 +0000 Subject: [PATCH] video/tegra: Build pva as OOT module Build PVA as OOT module. Add necessary files for PVA module to copy to the destination folder for build. Bug 3674466 Change-Id: Id7a327596fcea15ceb4e69f71ac707143b80a70d Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2726250 Reviewed-by: Krishna Yarlagadda Reviewed-by: Bitan Biswas GVS: Gerrit_Virtual_Submit --- drivers/video/tegra/Makefile | 1 + drivers/video/tegra/host/pva/Makefile | 9 +++++++++ kernel-src-files-copy-list.txt | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 drivers/video/tegra/host/pva/Makefile diff --git a/drivers/video/tegra/Makefile b/drivers/video/tegra/Makefile index 3bc12547..e3379966 100644 --- a/drivers/video/tegra/Makefile +++ b/drivers/video/tegra/Makefile @@ -3,3 +3,4 @@ obj-m += nvmap/ obj-m += host/nvdla/ +obj-m += host/pva/ diff --git a/drivers/video/tegra/host/pva/Makefile b/drivers/video/tegra/host/pva/Makefile new file mode 100644 index 00000000..3aab963e --- /dev/null +++ b/drivers/video/tegra/host/pva/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/pva. 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 863408d2..e712f6b8 100644 --- a/kernel-src-files-copy-list.txt +++ b/kernel-src-files-copy-list.txt @@ -43,3 +43,8 @@ copy_file nvidia/drivers/video/tegra/nvmap/include/linux/nvmap_exports.h include # Files/directories for PODGOV copy_dir nvidia/drivers/devfreq drivers/devfreq copy_file nvidia/include/trace/events/nvhost_podgov.h include/trace/events/nvhost_podgov.h + +# Files/directories for NVPVA +copy_dir nvidia/drivers/video/tegra/host/pva drivers/video/tegra/host/pva +copy_file nvidia/include/trace/events/nvhost_pva.h include/trace/events/nvhost_pva.h +copy_file nvidia/include/uapi/linux/nvpva_ioctl.h include/uapi/linux/nvpva_ioctl.h