Files
linux-nv-oot/drivers/net/wireless/realtek/Makefile
Jon Hunter a6898e3968 net: rtl8852ce: Don't build driver for Linux v6.10+
The rtl8852ce driver now builds fine for Linux v6.6 to v6.9 and so
update the Makefile to only disable building the driver for Linux v6.10+
kernels.

Bug 4667769

Change-Id: I0ff0e7a58e27d7252c3d3ae1a7e2878227a51644
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3243757
Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2025-07-24 10:19:10 +00:00

20 lines
651 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
# SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
LINUX_VERSION := $(shell expr $(VERSION) \* 256 + $(PATCHLEVEL))
LINUX_VERSION_6_10 := $(shell expr 6 \* 256 + 10)
ifndef CONFIG_TEGRA_SYSTEM_TYPE_ACK
ifeq ($(shell expr \( $(VERSION) \) \* 10000 + \( $(PATCHLEVEL) \) \* 100 + \( $(SUBLEVEL) \) \<= 60500), 1)
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_10); echo $$?),0)
obj-m += rtl8852ce/
endif
endif
endif