diff --git a/drivers/Makefile b/drivers/Makefile index 184ee685..b3ed00a8 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -6,6 +6,7 @@ LINUXINCLUDE += -I$(srctree.nvidia-oot)/include obj-m += hwmon/ obj-m += i2c/busses/ obj-m += mfd/ +obj-m += misc/ obj-m += pinctrl/ obj-m += platform/tegra/ obj-m += pwm/ diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile new file mode 100644 index 00000000..05b0b917 --- /dev/null +++ b/drivers/misc/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. + +obj-m += nvsciipc/ diff --git a/drivers/misc/nvsciipc/Makefile b/drivers/misc/nvsciipc/Makefile new file mode 100644 index 00000000..8b2eae28 --- /dev/null +++ b/drivers/misc/nvsciipc/Makefile @@ -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/misc/nvsciipc. 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 new file mode 100644 index 00000000..3559d327 --- /dev/null +++ b/kernel-src-files-copy-list.txt @@ -0,0 +1,5 @@ +#files/directory for the nvsciipc module +copy_dir nvidia/drivers/misc/nvsciipc drivers/misc/nvsciipc +copy_file nvidia/include/linux/nvscierror.h include/linux/nvscierror.h +copy_file nvidia/include/linux/nvsciipc_interface.h include/linux/nvsciipc_interface.h +copy_file nvidia/include/uapi/linux/nvsciipc_ioctl.h include/uapi/linux/nvsciipc_ioctl.h