xref: /optee_os/lib/libutils/isoc/arch/arm/sub.mk (revision fce4cfa1b70b1da9e730b00810a4cf4be13eb97a)
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
10ifeq ($(CFG_TA_FLOAT_SUPPORT),y)
11# Floating point is only supported for user TAs
12ifneq ($(sm),core)
13srcs-$(CFG_ARM32_$(sm)) += arm32_aeabi_softfloat.c
14cflags-arm32_aeabi_softfloat.c-y += -Wno-aggregate-return
15cflags-arm32_aeabi_softfloat.c-y += -Wno-missing-prototypes
16cflags-arm32_aeabi_softfloat.c-y += -Wno-missing-declarations
17subdirs-$(CFG_ARM32_$(sm)) += softfloat
18endif
19endif
20