1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2933c5044SSudeep Hollascmi-bus-y = bus.o
337b5be82SCristian Marussiscmi-core-objs := $(scmi-bus-y)
437b5be82SCristian Marussi
51fc2dd18SCristian Marussiscmi-driver-y = driver.o notify.o
6*3c3d818aSCristian Marussiscmi-driver-$(CONFIG_ARM_SCMI_RAW_MODE_SUPPORT) += raw_mode.o
7a7b1138bSIgor Skalkinscmi-transport-$(CONFIG_ARM_SCMI_HAVE_SHMEM) = shmem.o
8e8419c24SCristian Marussiscmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_MAILBOX) += mailbox.o
9e8419c24SCristian Marussiscmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_SMC) += smc.o
10f301bba0SPeter Hilberscmi-transport-$(CONFIG_ARM_SCMI_HAVE_MSG) += msg.o
1146abe13bSIgor Skalkinscmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_VIRTIO) += virtio.o
125f90f189SEtienne Carrierescmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_OPTEE) += optee.o
130316f99cSCristian Marussiscmi-protocols-y = base.o clock.o perf.o power.o reset.o sensors.o system.o voltage.o powercap.o
1437b5be82SCristian Marussiscmi-module-objs := $(scmi-driver-y) $(scmi-protocols-y) $(scmi-transport-y)
1537b5be82SCristian Marussi
1637b5be82SCristian Marussiobj-$(CONFIG_ARM_SCMI_PROTOCOL) += scmi-core.o
1766d90f6eSSudeep Hollaobj-$(CONFIG_ARM_SCMI_PROTOCOL) += scmi-module.o
1837b5be82SCristian Marussi
19898216c9SSudeep Hollaobj-$(CONFIG_ARM_SCMI_POWER_DOMAIN) += scmi_pm_domain.o
202c4b97feSCristian Marussiobj-$(CONFIG_ARM_SCMI_POWER_CONTROL) += scmi_power_control.o
21cdf157faSArd Biesheuvel
22cdf157faSArd Biesheuvelifeq ($(CONFIG_THUMB2_KERNEL)$(CONFIG_CC_IS_CLANG),yy)
23cdf157faSArd Biesheuvel# The use of R7 in the SMCCC conflicts with the compiler's use of R7 as a frame
24cdf157faSArd Biesheuvel# pointer in Thumb2 mode, which is forcibly enabled by Clang when profiling
25cdf157faSArd Biesheuvel# hooks are inserted via the -pg switch.
26cdf157faSArd BiesheuvelCFLAGS_REMOVE_smc.o += $(CC_FLAGS_FTRACE)
27cdf157faSArd Biesheuvelendif
28