From f2f943a0d33bb48ee61647eba2bff71d64c9551d Mon Sep 17 00:00:00 2001 From: Paritosh Dixit Date: Thu, 20 Mar 2025 18:06:40 +0000 Subject: [PATCH] block: virt-storage: Add option to disable drivers The tegra-virt-storage driver is currently not used for the L4T in the rel-36 codeline. Add an option to disable building the driver. It provides flexibility to disable the driver in case there are build issues with 3rd-party distro kernels. Bug 5180190 Change-Id: If58d8e782c564aa7b5229dc96093050c19882011 Signed-off-by: Paritosh Dixit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3323464 Reviewed-by: Jon Hunter GVS: buildbot_gerritrpt Reviewed-by: svcacv --- drivers/block/tegra_virt_storage/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/block/tegra_virt_storage/Makefile b/drivers/block/tegra_virt_storage/Makefile index 505c4e88..2043216b 100644 --- a/drivers/block/tegra_virt_storage/Makefile +++ b/drivers/block/tegra_virt_storage/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -# SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Makefile for Virtual Storage Driver @@ -8,6 +8,7 @@ LINUX_VERSION := $(shell expr $(VERSION) \* 256 + $(PATCHLEVEL)) LINUX_VERSION_6_11 := $(shell expr 6 \* 256 + 11) +ifneq ($(NV_OOT_BLOCK_TEGRA_VIRT_STORAGE_SKIP_BUILD),y) # Use dummy driver for Kernel versions greater than or equal to Linux v6.11 ifeq ($(shell test $(LINUX_VERSION) -lt $(LINUX_VERSION_6_11); echo $$?),0) tegra_vblk-y += tegra_hv_vblk.o @@ -16,4 +17,5 @@ tegra_vblk-y += tegra_hv_mmc.o tegra_vblk-y += tegra_hv_scsi.o tegra_vblk-y += tegra_hv_ufs.o obj-m += tegra_vblk.o -endif \ No newline at end of file +endif +endif