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 <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2788745
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Petlozu Pravareshwar
2022-10-07 19:29:12 +00:00
committed by mobile promotions
parent a765a2eed1
commit e2e75e1acc
3 changed files with 18 additions and 0 deletions

View File

@@ -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/

8
drivers/c2c/Makefile Normal file
View File

@@ -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.

8
drivers/clink/Makefile Normal file
View File

@@ -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.