From e2e75e1acc36cf8729a50c5efffaa241ea84b390 Mon Sep 17 00:00:00 2001 From: Petlozu Pravareshwar Date: Fri, 7 Oct 2022 19:29:12 +0000 Subject: [PATCH] nvidia: oot: add Clink/C2C module build support The source files of Clink and C2C modules would be copied to kernel/nvidia-oot folder during build time. Add support to build these modules as OOT modules. Change-Id: I14c733f3bf8a54268a54d9110dacec17b9e17939 Signed-off-by: Petlozu Pravareshwar Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2788745 Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- drivers/Makefile | 2 ++ drivers/c2c/Makefile | 8 ++++++++ drivers/clink/Makefile | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 drivers/c2c/Makefile create mode 100644 drivers/clink/Makefile diff --git a/drivers/Makefile b/drivers/Makefile index cd0c38a0..6610e4b0 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -4,6 +4,8 @@ LINUXINCLUDE += -I$(srctree.nvidia-oot)/include obj-m += block/tegra_virt_storage/ +obj-m += c2c/ +obj-m += clink/ obj-m += crypto/ obj-m += devfreq/ obj-m += dma/ diff --git a/drivers/c2c/Makefile b/drivers/c2c/Makefile new file mode 100644 index 00000000..697b11cc --- /dev/null +++ b/drivers/c2c/Makefile @@ -0,0 +1,8 @@ +# 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 subdirectory +# drivers/c2c of nvidia-grace folder. 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/drivers/clink/Makefile b/drivers/clink/Makefile new file mode 100644 index 00000000..e46b30a4 --- /dev/null +++ b/drivers/clink/Makefile @@ -0,0 +1,8 @@ +# 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 subdirectory +# drivers/clink of nvidia-grace folder. 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.