xref: /optee_os/lib/libutils/isoc/arch/arm/sub.mk (revision 1bb929836182ecb96d2d9d268daa807c67596396)
1# These files implements the__aeabi functions we need instead of
2# relying on libgcc or equivalent as we need implementations suitable
3# for bare metal.
4srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_divmod_a32.S
5srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_divmod.c
6srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_ldivmod_a32.S
7srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_ldivmod.c
8srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_shift.c
9
10srcs-$(CFG_ARM32_$(sm)) += setjmp_a32.S
11srcs-$(CFG_ARM64_$(sm)) += setjmp_a64.S
12
13ifeq ($(CFG_TA_FLOAT_SUPPORT),y)
14# Floating point is only supported for user TAs
15ifneq ($(sm),core)
16srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_softfloat.c
17cflags-arm32_aeabi_softfloat.c-y += -Wno-aggregate-return
18cflags-arm32_aeabi_softfloat.c-y += -Wno-missing-prototypes
19cflags-arm32_aeabi_softfloat.c-y += -Wno-missing-declarations
20subdirs-$(CFG_ARM32_$(sm)) += softfloat
21endif
22endif
23