| 1 |
# SPDX-License-Identifier: GPL-2.0-only |
| 2 |
# Keep before scmi_transport_mailbox.o to allow precedence |
| 3 |
# while matching the compatible. |
| 4 |
scmi_transport_smc-objs := smc.o |
| 5 |
obj-$(CONFIG_ARM_SCMI_TRANSPORT_SMC) += scmi_transport_smc.o |
| 6 |
scmi_transport_mailbox-objs := mailbox.o |
| 7 |
obj-$(CONFIG_ARM_SCMI_TRANSPORT_MAILBOX) += scmi_transport_mailbox.o |
| 8 |
scmi_transport_optee-objs := optee.o |
| 9 |
obj-$(CONFIG_ARM_SCMI_TRANSPORT_OPTEE) += scmi_transport_optee.o |
| 10 |
scmi_transport_virtio-objs := virtio.o |
| 11 |
obj-$(CONFIG_ARM_SCMI_TRANSPORT_VIRTIO) += scmi_transport_virtio.o |
| 12 |
|
| 13 |
ifeq ($(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. |
| 17 |
CFLAGS_REMOVE_smc.o += $(CC_FLAGS_FTRACE) |
| 18 |
endif |