net: Disable realtek driver to compile for K5.14

Disabling build of ethernet and wireless realtek driver
for building with k5.14 kernel due to build issue.

Drivers are r8126 and rtl8822ce.

Bug 4729493

Change-Id: I016484a81c9a28a460a8592e80e123a7ca11222e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3166764
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
Laxman Dewangan
2024-07-02 10:28:05 +00:00
committed by mobile promotions
parent 1707f60f8b
commit b02764ce1c
2 changed files with 11 additions and 0 deletions

View File

@@ -32,11 +32,15 @@
LINUX_VERSION := $(shell expr $(VERSION) \* 256 + $(PATCHLEVEL)) LINUX_VERSION := $(shell expr $(VERSION) \* 256 + $(PATCHLEVEL))
LINUX_VERSION_6_9 := $(shell expr 6 \* 256 + 9) LINUX_VERSION_6_9 := $(shell expr 6 \* 256 + 9)
LINUX_VERSION_5_14 := $(shell expr 5 \* 256 + 14)
# Use dummy R8126 driver for Kernel versions greater that K69 # Use dummy R8126 driver for Kernel versions greater that K69
ifeq ($(shell test $(LINUX_VERSION) -gt $(LINUX_VERSION_6_9); echo $$?),0) ifeq ($(shell test $(LINUX_VERSION) -gt $(LINUX_VERSION_6_9); echo $$?),0)
obj-m := r8126.o obj-m := r8126.o
r8126-objs := r8126_dummy.o r8126-objs := r8126_dummy.o
else ifeq ($(shell test $(LINUX_VERSION) -eq $(LINUX_VERSION_5_14); echo $$?),0)
obj-m := r8126.o
r8126-objs := r8126_dummy.o
else else
CONFIG_SOC_LAN = n CONFIG_SOC_LAN = n

View File

@@ -1,8 +1,15 @@
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved. # Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved.
LINUX_VERSION := $(shell expr $(VERSION) \* 256 + $(PATCHLEVEL))
LINUX_VERSION_5_14 := $(shell expr 5 \* 256 + 14)
# Do not build driver for K5.14
ifneq ($(shell test $(LINUX_VERSION) -eq $(LINUX_VERSION_5_14); echo $$?),0)
ifndef CONFIG_TEGRA_SYSTEM_TYPE_ACK ifndef CONFIG_TEGRA_SYSTEM_TYPE_ACK
ifeq ($(shell expr \( $(VERSION) \) \* 10000 + \( $(PATCHLEVEL) \) \* 100 + \( $(SUBLEVEL) \) \<= 60500), 1) ifeq ($(shell expr \( $(VERSION) \) \* 10000 + \( $(PATCHLEVEL) \) \* 100 + \( $(SUBLEVEL) \) \<= 60500), 1)
obj-m += rtl8822ce/ obj-m += rtl8822ce/
endif endif
endif endif
endif