From 225b50c423bcb60e6b4c39f938832585347dbc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Mon, 22 Jul 2019 16:52:18 +0200 Subject: [PATCH 1/2] sys/Makefile.include: check for newlib_nano instead of USE_NANO_SPECS Check for the usage of `newlib_nano` module instead of the `USE_NANO_SPECS` variable. This allows also benefiting from the `printf_float` and `scanf_float` behaviour on `arm7` and `riscv` cpus. --- sys/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/Makefile.include b/sys/Makefile.include index a9ab8095ef..bdc8147ff8 100644 --- a/sys/Makefile.include +++ b/sys/Makefile.include @@ -72,13 +72,13 @@ ifneq (,$(filter arduino,$(USEMODULE))) endif ifneq (,$(filter printf_float,$(USEMODULE))) - ifeq (1,$(USE_NANO_SPECS)) + ifneq (,$(filter newlib_nano,$(USEMODULE))) export LINKFLAGS += -u _printf_float endif endif ifneq (,$(filter scanf_float,$(USEMODULE))) - ifeq (1,$(USE_NANO_SPECS)) + ifneq (,$(filter newlib_nano,$(USEMODULE))) export LINKFLAGS += -u _scanf_float endif endif From 2d5ed4f8498870b799a0cf5d2827f0eed6d68520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Mon, 22 Jul 2019 16:54:06 +0200 Subject: [PATCH 2/2] cortexm.inc.mk: remove deprecated USE_NANO_SPECS It was replaced by using directly the `newlib_nano` module. --- makefiles/arch/cortexm.inc.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/makefiles/arch/cortexm.inc.mk b/makefiles/arch/cortexm.inc.mk index dc1794822a..da254390f4 100644 --- a/makefiles/arch/cortexm.inc.mk +++ b/makefiles/arch/cortexm.inc.mk @@ -144,8 +144,6 @@ include $(RIOTCPU)/cortexm_common/Makefile.include # use the nano-specs of Newlib when available USEMODULE += newlib_nano -export USE_NANO_SPECS = 1 - # Avoid overriding the default rule: all: