1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2933c5044SSudeep Hollascmi-bus-y = bus.o
31fc2dd18SCristian Marussiscmi-driver-y = driver.o notify.o
4a7b1138bSIgor Skalkinscmi-transport-$(CONFIG_ARM_SCMI_HAVE_SHMEM) = shmem.o
5e8419c24SCristian Marussiscmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_MAILBOX) += mailbox.o
6e8419c24SCristian Marussiscmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_SMC) += smc.o
7f301bba0SPeter Hilberscmi-transport-$(CONFIG_ARM_SCMI_HAVE_MSG) += msg.o
846abe13bSIgor Skalkinscmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_VIRTIO) += virtio.o
95f90f189SEtienne Carrierescmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_OPTEE) += optee.o
102add5cacSCristian Marussiscmi-protocols-y = base.o clock.o perf.o power.o reset.o sensors.o system.o voltage.o
1166d90f6eSSudeep Hollascmi-module-objs := $(scmi-bus-y) $(scmi-driver-y) $(scmi-protocols-y) \
1266d90f6eSSudeep Holla		    $(scmi-transport-y)
1366d90f6eSSudeep Hollaobj-$(CONFIG_ARM_SCMI_PROTOCOL) += scmi-module.o
14898216c9SSudeep Hollaobj-$(CONFIG_ARM_SCMI_POWER_DOMAIN) += scmi_pm_domain.o
15*2c4b97feSCristian Marussiobj-$(CONFIG_ARM_SCMI_POWER_CONTROL) += scmi_power_control.o
16cdf157faSArd Biesheuvel
17cdf157faSArd Biesheuvelifeq ($(CONFIG_THUMB2_KERNEL)$(CONFIG_CC_IS_CLANG),yy)
18cdf157faSArd Biesheuvel# The use of R7 in the SMCCC conflicts with the compiler's use of R7 as a frame
19cdf157faSArd Biesheuvel# pointer in Thumb2 mode, which is forcibly enabled by Clang when profiling
20cdf157faSArd Biesheuvel# hooks are inserted via the -pg switch.
21cdf157faSArd BiesheuvelCFLAGS_REMOVE_smc.o += $(CC_FLAGS_FTRACE)
22cdf157faSArd Biesheuvelendif
23