mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
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 <paritoshd@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3323464 Reviewed-by: Jon Hunter <jonathanh@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com>
22 lines
705 B
Makefile
22 lines
705 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
#
|
|
# Makefile for Virtual Storage Driver
|
|
#
|
|
|
|
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
|
|
tegra_vblk-y += tegra_hv_ioctl.o
|
|
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
|
|
endif
|