mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
nvidia-oot: ivc_ext: add dummy driver support
For some of the kernel ivc_ext is part of core kernel and hence it is nto required to use the OOT ivc_ext driver. However, some packaging still expect the ivc_ext.ko from the OOT path. To trick the packaging file, add dummy ivc_ext driver which does not have anything other than module_init/module_exit. Bug 4551265 Change-Id: I315c9f302e65b4cdc1376815a7bc23e4b7ca3e00 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3214053 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
4a4aaf586f
commit
65d85c5c16
6
configs/Makefile.config.oot
Normal file
6
configs/Makefile.config.oot
Normal file
@@ -0,0 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
# Kernel OOT specific environment variables to configure the OOT modules
|
||||
|
||||
export NV_OOT_IVC_EXT_SKIP_BUILD=y
|
||||
@@ -5,7 +5,12 @@
|
||||
# Makefile for Extended IVC Driver and BPMP driver
|
||||
#
|
||||
|
||||
ifneq ($(NV_OOT_IVC_EXT_SKIP_BUILD),y)
|
||||
obj-m += ivc_ext.o
|
||||
else
|
||||
obj-m += ivc_ext.o
|
||||
ivc_ext-objs := ivc_ext_dummy.o
|
||||
endif
|
||||
tegra_bpmp-y += ../../clk/tegra/clk-bpmp.o
|
||||
tegra_bpmp-y += ../../reset/tegra/reset-bpmp.o
|
||||
tegra_bpmp-y += ../../soc/tegra/powergate-bpmp.o
|
||||
|
||||
21
drivers/firmware/tegra/ivc_ext_dummy.c
Normal file
21
drivers/firmware/tegra/ivc_ext_dummy.c
Normal file
@@ -0,0 +1,21 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
#include <linux/module.h>
|
||||
|
||||
static int __init ivc_driver_dummy_init(void)
|
||||
{
|
||||
pr_info("Inserting dummy ivc_ext.ko module");
|
||||
return 0;
|
||||
}
|
||||
module_init(ivc_driver_dummy_init);
|
||||
|
||||
static void __exit ivc_driver_dummy_exit(void)
|
||||
{
|
||||
pr_info("Removing dummy ivc_ext.ko module");
|
||||
}
|
||||
module_exit(ivc_driver_dummy_exit);
|
||||
|
||||
MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
|
||||
MODULE_DESCRIPTION("Extended IVC Dummy Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
Reference in New Issue
Block a user