Files
linux-nv-oot/drivers/net/can/mttcan/Makefile
Jon Hunter 8409b7c652 net: can: mttcan: Make LED support depend on CAN_LEDS
CONFIG_CAN_LEDS has been marked as BROKEN since Linux v4.19 and was
finally removed in Linux v5.19. Only compile support for LEDS if enabled
in the kernel. Long-term we need to move the MTTCAN driver to use
LEDS_TRIGGER_NETDEV.

This is a better solution for working with 3rd party Linux kernels that
may backport upstream changes to the kernel and hence are not compatible
with these existing version checks.

Bug 4228080
Bug 4283911

Change-Id: I70e800c4a3699af59742d30111bc3a3cbf80bcb5
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2982135
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-09-21 13:11:36 -07:00

16 lines
552 B
Makefile

# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: GPL-2.0-only
# CAN_LEDS has been marked as BROKEN since Linux v4.19 and
# was finally removed in Linux v5.19. Only compile support
# for LEDS if enabled in the kernel.
ifdef CONFIG_CAN_LEDS
subdir-ccflags-y += -DCONFIG_CAN_LEDS
endif
obj-m := mttcan.o
mttcan-y = native/m_ttcan_linux.o native/m_ttcan_sys.o hal/m_ttcan.o
mttcan-y += hal/m_ttcan_intr.o hal/m_ttcan_list.o hal/m_ttcan_ram.o
mttcan-y += hal/m_ttcan_tt.o