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>
OPT=-Os -Wl,-Map=$(PROGNAME)-$(VERSION).map
-PICOLIBC_PRINTF_CFLAGS = -DPICOLIBC_INTEGER_PRINTF_SCANF
-
PICOLIBC_CFLAGS= \
-specs=picolibc.specs \
$(PICOLIBC_PRINTF_CFLAGS)
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)
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)
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
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