diff options
| author | Zoltán Vörös | 2020-03-24 08:11:36 +0100 |
|---|---|---|
| committer | Damien George | 2020-03-25 01:22:00 +1100 |
| commit | c5cc64175be32cb1e4f3f1a249667bc9f5a12613 (patch) | |
| tree | 717edaf9a362860f4f3131014b2e938ca97edafd | |
| parent | bf4fb162500fd92937f81d028d7604b3fcaac750 (diff) | |
ports: Add lib/libm/roundf.c to bare-metal Makefile's.
This function is not used by the core but having it as part of the build
allows it to be used by user C modules, or board extensions. The linker
won't include it in the final firmware if it remains unused.
| -rw-r--r-- | ports/esp8266/Makefile | 1 | ||||
| -rw-r--r-- | ports/nrf/Makefile | 1 | ||||
| -rw-r--r-- | ports/qemu-arm/Makefile | 1 | ||||
| -rw-r--r-- | ports/stm32/Makefile | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile index 9a7476c10..989e8a62f 100644 --- a/ports/esp8266/Makefile +++ b/ports/esp8266/Makefile @@ -138,6 +138,7 @@ LIB_SRC_C = $(addprefix lib/,\ libm/asinfacosf.c \ libm/atanf.c \ libm/atan2f.c \ + libm/roundf.c \ mp-readline/readline.c \ netutils/netutils.c \ timeutils/timeutils.c \ diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index 04e3b7fee..d898559a1 100644 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -150,6 +150,7 @@ SRC_LIB += $(addprefix lib/,\ libm/asinfacosf.c \ libm/atanf.c \ libm/atan2f.c \ + libm/roundf.c \ ) endif diff --git a/ports/qemu-arm/Makefile b/ports/qemu-arm/Makefile index cb7dcb021..b31284c59 100644 --- a/ports/qemu-arm/Makefile +++ b/ports/qemu-arm/Makefile @@ -90,6 +90,7 @@ LIB_SRC_C += $(addprefix lib/,\ libm/asinfacosf.c \ libm/atanf.c \ libm/atan2f.c \ + libm/roundf.c \ utils/sys_stdio_mphal.c \ ) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 2dc740561..31d75f3fb 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -214,6 +214,7 @@ SRC_LIBM = $(addprefix lib/libm/,\ kf_tan.c \ log1pf.c \ nearbyintf.c \ + roundf.c \ sf_cos.c \ sf_erf.c \ sf_frexp.c \ |
