Files
openloongarch-linux-6.12/drivers/net/can/ls_canfd/Makefile
T
maoxiaochuan ff60a514ff update to 9f12731260
1.dts:ls2k300:Correct label of spi
2.ls2k300:Add a defconfig for rt
3.fix SD-card CMD48 stuck
4.fix i2c hang  when touch for a long time
2025-03-26 13:04:16 +08:00

34 lines
1.2 KiB
Makefile

# LS CAN FD ip core Linux driver Makefile
# Invoked make without parameters for native build for current running kernel
# Set KERNEL_VERSION variable to compile for specific installed kernel version
# Exact location of Linux kernel build tree can be chosen by KDIR variable
# If you build for different CPU architecture than native and you do not
# use GNUmakefile trick to set CROSS_COMPILE and ARCH then set these to
# matching values else you do not screw only LS CAN FD build but even
# base kernel build
ifeq ($(CONFIG_PREEMPT_RT), y)
quiet_cmd_build_lscanfd_dma = GEN $@
cmd_build_lscanfd_dma = cp $(obj)/lscanfd_dma.o_shipped_rt $@
quiet_cmd_build_lscanfd_platform = GEN $@
cmd_build_lscanfd_platform = cp $(obj)/lscanfd_platform.o_shipped_rt $@
else
quiet_cmd_build_lscanfd_dma = GEN $@
cmd_build_lscanfd_dma = cp $(obj)/lscanfd_dma.o_shipped $@
quiet_cmd_build_lscanfd_platform = GEN $@
cmd_build_lscanfd_platform = cp $(obj)/lscanfd_platform.o_shipped $@
endif
$(obj)/lscanfd_dma.o: FORCE
$(call if_changed,build_lscanfd_dma)
$(obj)/lscanfd_platform.o: FORCE
$(call if_changed,build_lscanfd_platform)
obj-$(CONFIG_CAN_LSCANFD) := lscanfd_dma.o
obj-$(CONFIG_CAN_LSCANFD_PLATFORM) += lscanfd_platform.o