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

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

Files get copied at build time.

Change-Id: Iecd491630b8296f1da8f543003b26c2be8f62db5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2715738
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Laxman Dewangan
2022-05-20 06:54:29 +00:00
committed by mobile promotions
parent 5197b374cb
commit f77fc4cdef
4 changed files with 18 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
LINUXINCLUDE += -I$(srctree.nvidia-oot)/include
obj-m += gpu/
obj-m += hwmon/
obj-m += i2c/busses/
obj-m += mfd/

4
drivers/gpu/Makefile Normal file
View File

@@ -0,0 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
obj-m += host1x/

View File

@@ -0,0 +1,10 @@
# 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/gpu/host1x. 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

@@ -15,3 +15,6 @@ copy_file nvidia/include/uapi/linux/nvmap.h include/uapi/linux/nvmap.h
copy_dir nvidia/drivers/platform/tegra/cvnas drivers/platform/tegra/cvnas
copy_file nvidia/include/linux/cvnas.h include/linux/cvnas.h
copy_file nvidia/include/soc/tegra/fuse-helper.h include/soc/tegra/fuse-helper.h
# Files/directories for host1x module
copy_dir nvidia/drivers/gpu/host1x drivers/gpu/host1x