Skip to content

Commit

Permalink
samd/Makefile: Move the math lib files from mpconfigmcu.mk to Makefile.
Browse files Browse the repository at this point in the history
They are used by both SAMD21 and SAMD51.

Signed-off-by: robert-hh <robert@hammelrath.com>
  • Loading branch information
robert-hh authored and dpgeorge committed Jun 27, 2023
1 parent 909fe30 commit cfaa9a4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 58 deletions.
23 changes: 23 additions & 0 deletions ports/samd/Makefile
Expand Up @@ -139,10 +139,33 @@ ASF4_SRC_C += $(addprefix lib/asf4/$(MCU_SERIES_LOWER)/,\
)

LIBM_SRC_C += $(addprefix lib/libm/,\
acoshf.c \
asinfacosf.c \
asinhf.c \
atan2f.c \
atanf.c \
atanhf.c \
ef_rem_pio2.c \
ef_sqrt.c \
erf_lgamma.c \
fmodf.c \
kf_cos.c \
kf_rem_pio2.c \
kf_sin.c \
kf_tan.c \
log1pf.c \
math.c \
nearbyintf.c \
roundf.c \
sf_cos.c \
sf_erf.c \
sf_frexp.c \
sf_ldexp.c \
sf_modf.c \
sf_sin.c \
sf_tan.c \
wf_lgamma.c \
wf_tgamma.c \
)

TINYUSB_SRC_C += $(addprefix lib/tinyusb/src/,\
Expand Down
29 changes: 0 additions & 29 deletions ports/samd/mcu/samd21/mpconfigmcu.mk
Expand Up @@ -7,32 +7,3 @@ MICROPY_HW_CODESIZE ?= 184K
MICROPY_VFS_LFS1 ?= 1

SRC_S += shared/runtime/gchelper_thumb1.s

LIBM_SRC_C += $(addprefix lib/libm/,\
acoshf.c \
asinfacosf.c \
asinhf.c \
atan2f.c \
atanf.c \
atanhf.c \
ef_rem_pio2.c \
erf_lgamma.c \
fmodf.c \
kf_cos.c \
kf_rem_pio2.c \
kf_sin.c \
kf_tan.c \
log1pf.c \
math.c \
nearbyintf.c \
roundf.c \
sf_cos.c \
sf_erf.c \
sf_frexp.c \
sf_ldexp.c \
sf_modf.c \
sf_sin.c \
sf_tan.c \
wf_lgamma.c \
wf_tgamma.c \
)
29 changes: 0 additions & 29 deletions ports/samd/mcu/samd51/mpconfigmcu.mk
Expand Up @@ -13,32 +13,3 @@ SRC_S += shared/runtime/gchelper_thumb2.s
SRC_C += \
fatfs_port.c \
drivers/dht/dht.c \

LIBM_SRC_C += $(addprefix lib/libm/,\
acoshf.c \
asinfacosf.c \
asinhf.c \
atan2f.c \
atanf.c \
atanhf.c \
ef_rem_pio2.c \
erf_lgamma.c \
fmodf.c \
kf_cos.c \
kf_rem_pio2.c \
kf_sin.c \
kf_tan.c \
log1pf.c \
math.c \
nearbyintf.c \
roundf.c \
sf_cos.c \
sf_erf.c \
sf_frexp.c \
sf_ldexp.c \
sf_modf.c \
sf_sin.c \
sf_tan.c \
wf_lgamma.c \
wf_tgamma.c \
)

0 comments on commit cfaa9a4

Please sign in to comment.