mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
When CONFIG_DEBUG_FS is disabled, build errors are seen in the following 2 drivers: 1. bpmpfw - The build error was seen because bpmp-debugfs.c was getting compiled even when CONFIG_DEBUG_FS was disabled. 2. ufs - The build error was seen due to a couple of reasons: - Function debugfs_provision_init is defined in a file that is protected with CONFIG_DEBUG_FS, but is called from another file unconditionally. - In ufs-tegra-common.c, there are calls to debugfs_* functions, but inclusion of the standard header debugfs.h is protected under CONFIG_DEBUG_FS. Fix these issues with this change. Bug 4164776 Change-Id: Iae6384fd2352e55aed2a0ea85e778be6c26a4d54 Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2926891 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
22 lines
708 B
Makefile
22 lines
708 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
#
|
|
# Makefile for Extended IVC Driver and BPMP driver
|
|
#
|
|
|
|
LINUX_VERSION := $(shell expr $(VERSION) \* 256 + $(PATCHLEVEL))
|
|
LINUX_VERSION_6_2 := $(shell expr 6 \* 256 + 2)
|
|
|
|
# ivc_ext is currently broken for Linux v6.2 and so skip for Linux v6.2+
|
|
ifeq ($(shell test $(LINUX_VERSION) -lt $(LINUX_VERSION_6_2); echo $$?),0)
|
|
obj-m += ivc_ext.o
|
|
tegra_bpmp-y += ../../clk/tegra/clk-bpmp.o
|
|
tegra_bpmp-y += ../../reset/tegra/reset-bpmp.o
|
|
tegra_bpmp-y += ../../soc/tegra/powergate-bpmp.o
|
|
tegra_bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o
|
|
tegra_bpmp-y += bpmp-tegra186-hv.o
|
|
obj-m += tegra_bpmp.o
|
|
endif
|
|
|