pcie: T264: Skip build of T264 specific PCIE driver for few kernel

Skip T264 PCIE drivers for the few kernels like jammy-src, rhivos-1 and
stable.

Bug 4911768

Change-Id: I198fb279712594a69950b72d6b8f14a9ef151e5f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
Laxman Dewangan
2024-10-17 10:54:23 +00:00
committed by Jon Hunter
parent 1e0bef1f51
commit 17ef98bafa
4 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Kernel jammy-src specific environment variables to configure the OOT modules
export NV_OOT_PCIE_T264_SOC_SKIP_BUILD=y

View File

@@ -6,4 +6,4 @@
export NV_OOT_REALTEK_R8126_SKIP_BUILD=y
export NV_OOT_REALTEK_R8168_SKIP_BUILD=y
export NV_OOT_REALTEK_RTL8822CE_SKIP_BUILD=y
export NV_OOT_PCIE_T264_SOC_SKIP_BUILD=y

View File

@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Kernel stable specific environment variables to configure the OOT modules
export NV_OOT_PCIE_T264_SOC_SKIP_BUILD=y

View File

@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
# Set config when build as OOT module.
ifneq ($(NV_OOT_PCIE_T264_SOC_SKIP_BUILD),y)
ifeq ($(CONFIG_TEGRA_OOT_MODULE),m)
CONFIG_PCIE_TEGRA264 := m
CONFIG_PCIE_TEGRA264_EP := m
@@ -16,3 +17,7 @@ tegra-pcie-dma-lib-objs:= tegra-pcie-dma.o \
tegra234-pcie-edma.o \
tegra264-pcie-xdma.o
endif
else
obj-m += pcie-tegra264.o
pcie-tegra264-objs := pcie-tegra-soc-dummy.o
endif