altos: Leave floating printf enabled on m3 devices
authorKeith Packard <keithp@keithp.com>
Sun, 14 Jun 2020 07:04:31 +0000 (00:04 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 14 Jun 2020 07:39:00 +0000 (00:39 -0700)
These devices all use floating point computations, so leave the
floating point printf included in case they print one of those
values. If we run short on flash space, we can switch back.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/Makefile.defs
src/lpc/Makefile-lpc.defs
src/stmf0/Makefile-stmf0.defs
src/telefireone-v2.0/Makefile
src/telestatic-v3.0/Makefile

index a14b8042f9516708113b25a12bbf446d13185f09..897f7ac1b35ade9d2574b45c6e1f1208f6923a6a 100644 (file)
@@ -20,8 +20,6 @@ WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align \
 
 OPT=-Os -Wl,-Map=$(PROGNAME)-$(VERSION).map
 
-PICOLIBC_PRINTF_CFLAGS = -DPICOLIBC_INTEGER_PRINTF_SCANF
-
 PICOLIBC_CFLAGS= \
        -specs=picolibc.specs \
        $(PICOLIBC_PRINTF_CFLAGS)
index fb3747dd5941e91196596c020a54962b57805aef..48153da30d47f916410efb3b695559ba1692f5d7 100644 (file)
@@ -2,6 +2,10 @@ ifndef TOPDIR
 TOPDIR=..
 endif
 
+# Disable floating-point support in printf to save space
+
+PICOLIBC_PRINTF_CFLAGS = -DPICOLIBC_INTEGER_PRINTF_SCANF
+
 include $(TOPDIR)/Makefile.defs
 
 vpath % $(TOPDIR)/lpc:$(AO_VPATH)
index f3add106902fc6dca051d79da3663c30f149f7cd..536605603e2f403a131238ff54c51acba2c4f168 100644 (file)
@@ -2,6 +2,10 @@ ifndef TOPDIR
 TOPDIR=..
 endif
 
+# Disable floating-point support in printf to save space
+
+PICOLIBC_PRINTF_CFLAGS = -DPICOLIBC_INTEGER_PRINTF_SCANF
+
 include $(TOPDIR)/Makefile.defs
 
 vpath % $(TOPDIR)/stmf0:$(AO_VPATH)
index af273a5d8046907e05219b9a4a355b200bec2fdc..85f06de46a92ca8ad638b91ad8701b54f67e6b78 100644 (file)
@@ -65,10 +65,6 @@ PRODUCT=TeleFireOne-v2.0
 PRODUCT_DEF=-DTELEFIREONE_V_2_0
 IDPRODUCT=0x000f
 
-# Include floating-point enabled printf
-
-NEWLIB_PRINTF_CFLAGS = 
-
 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF)
 
 PROGNAME = telefireone-v2.0
index 124b47fb87dccab2416c84c9de132af88ed3ff36..5bc8d56a3a79896e354650c8265e4218d867c55c 100644 (file)
@@ -64,10 +64,6 @@ PRODUCT=TeleStatic-v3.0
 PRODUCT_DEF=-DTELESTATIC_V_3_0
 IDPRODUCT=0x000f
 
-# Include floating-point enabled printf
-
-NEWLIB_PRINTF_CFLAGS = 
-
 CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) $(PROFILE_DEF)
 
 PROGNAME = telestatic-v3.0