1# SPDX-License-Identifier: GPL-2.0-only 2# Keep before scmi_transport_mailbox.o to allow precedence 3# while matching the compatible. 4scmi_transport_smc-objs := smc.o 5obj-$(CONFIG_ARM_SCMI_TRANSPORT_SMC) += scmi_transport_smc.o 6scmi_transport_mailbox-objs := mailbox.o 7obj-$(CONFIG_ARM_SCMI_TRANSPORT_MAILBOX) += scmi_transport_mailbox.o 8scmi_transport_optee-objs := optee.o 9obj-$(CONFIG_ARM_SCMI_TRANSPORT_OPTEE) += scmi_transport_optee.o 10scmi_transport_virtio-objs := virtio.o 11obj-$(CONFIG_ARM_SCMI_TRANSPORT_VIRTIO) += scmi_transport_virtio.o 12 13ifeq ($(CONFIG_THUMB2_KERNEL)$(CONFIG_CC_IS_CLANG),yy) 14# The use of R7 in the SMCCC conflicts with the compiler's use of R7 as a frame 15# pointer in Thumb2 mode, which is forcibly enabled by Clang when profiling 16# hooks are inserted via the -pg switch. 17CFLAGS_REMOVE_smc.o += $(CC_FLAGS_FTRACE) 18endif 19