From f00b8b2cd437f76b858303ed6173b6d0a04308ce Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Wed, 16 Oct 2024 17:39:26 +0100 Subject: [PATCH] net: rtl8852ce: Add option to skip driver build 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 a compilation flag for the rtl8852ce driver so that we can skip building of this driver for certain Linux distributions. Bug 4667769 Change-Id: Ie4ec2308b458e4d5e6a3fa29d5e247c5a709172d Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3231107 Reviewed-by: svcacv Reviewed-by: Brad Griffis GVS: buildbot_gerritrpt --- drivers/net/wireless/realtek/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/realtek/Makefile b/drivers/net/wireless/realtek/Makefile index cc8a9e60..15429558 100644 --- a/drivers/net/wireless/realtek/Makefile +++ b/drivers/net/wireless/realtek/Makefile @@ -10,7 +10,9 @@ ifneq ($(NV_OOT_REALTEK_RTL8822CE_SKIP_BUILD),y) obj-m += rtl8822ce/ endif endif +ifneq ($(NV_OOT_REALTEK_RTL8852CE_SKIP_BUILD),y) ifeq ($(shell test $(LINUX_VERSION) -lt $(LINUX_VERSION_6_6); echo $$?),0) obj-m += rtl8852ce/ endif endif +endif