From 6b403012fb1b69c004b08a4495aaea4195bb8ba2 Mon Sep 17 00:00:00 2001 From: Ahmad Chaudhry Date: Fri, 2 Feb 2024 19:02:51 +0000 Subject: [PATCH] drivers: only build rtk bt driver for non-ack Realtek bluetooth driver is not used in ack and causes build issues in ack builds. Subsequently, only build realtek blutooth driver conditionally if build is not ack Bug 4476460 Signed-off-by: Ahmad Chaudhry Change-Id: I2d26cc04f466ce51179dff51f14ee1ce73084990 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3069246 Reviewed-by: svcacv Reviewed-by: Ankita Garg Reviewed-by: Bibhay Ranjan Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- drivers/bluetooth/realtek/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/bluetooth/realtek/Makefile b/drivers/bluetooth/realtek/Makefile index 8ab63f97..8634871d 100644 --- a/drivers/bluetooth/realtek/Makefile +++ b/drivers/bluetooth/realtek/Makefile @@ -16,7 +16,9 @@ ifeq ($(CONFIG_BTCOEX), y) EXTRA_CFLAGS += -DCONFIG_BTCOEX endif -obj-m := rtk_btusb.o -rtk_btusb-objs := rtk_coex.o \ - rtk_misc.o \ - rtk_bt.o +ifndef CONFIG_TEGRA_SYSTEM_TYPE_ACK + obj-m := rtk_btusb.o + rtk_btusb-objs := rtk_coex.o \ + rtk_misc.o \ + rtk_bt.o +endif