From 8e353eecd48900181a6b98c8c0e5be3760acf95b Mon Sep 17 00:00:00 2001 From: Paritosh Dixit Date: Tue, 25 Mar 2025 01:36:22 +0000 Subject: [PATCH] bluetooth: realtek: Add option to disable driver The RealTek drivers do not build against all Linux distributions because some Linux distributions have back-ported upstream changes and so the KERNEL_VERSION checks in the driver do not work for these distributions. Add compilation flags for these drivers so that we can skip the building of these drivers for certain Linux distributions. Bug 5180190 Change-Id: I48101b5b9e199c6887a2cbde916d7df5ae1c53a7 Signed-off-by: Paritosh Dixit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3325283 GVS: buildbot_gerritrpt Reviewed-by: svcacv Reviewed-by: Jon Hunter --- drivers/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index eb56971e..e02530be 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -# SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. LINUXINCLUDE += -I$(srctree.nvidia-oot)/include LINUXINCLUDE += -I$(srctree.nvidia-oot)/drivers/gpu/host1x/hw/ @@ -12,8 +12,10 @@ ifdef CONFIG_PSTORE obj-m += block/tegra_oops_virt_storage/ endif ifdef CONFIG_BT +ifneq ($(NV_OOT_BLUETOOTH_REALTEK_SKIP_BUILD),y) obj-m += bluetooth/realtek/ endif +endif obj-m += c2c/ obj-m += clink/ obj-m += cpuidle/