]> git.gag.com Git - fw/altos/commitdiff
altos: Switch to modern picolibc mechanism for printf selection
authorKeith Packard <keithp@keithp.com>
Tue, 6 May 2025 19:42:58 +0000 (12:42 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 6 May 2025 19:42:58 +0000 (12:42 -0700)
Use --printf=i instead of -DPICOLIBC_INTEGER_PRINTF_SCANF.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/Makefile-lpc.defs
src/stm32l0/Makefile-stm32l0.defs
src/stmf0/Makefile-stmf0.defs

index 48153da30d47f916410efb3b695559ba1692f5d7..5876d4d9f57cc3d6f9c2f19b49995096896f4a84 100644 (file)
@@ -4,7 +4,7 @@ endif
 
 # Disable floating-point support in printf to save space
 
-PICOLIBC_PRINTF_CFLAGS = -DPICOLIBC_INTEGER_PRINTF_SCANF
+PICOLIBC_PRINTF_CFLAGS = --printf=i
 
 include $(TOPDIR)/Makefile.defs
 
index 1eab283a7ef08923b4290bdb24e516bfeb454bf5..c2693ba37bebb99b03455e0e13e8f59a06657d05 100644 (file)
@@ -4,7 +4,7 @@ endif
 
 # Disable floating-point support in printf to save space
 
-PICOLIBC_PRINTF_CFLAGS = -DPICOLIBC_INTEGER_PRINTF_SCANF
+PICOLIBC_PRINTF_CFLAGS = --printf=i
 
 include $(TOPDIR)/Makefile.defs
 
index 536605603e2f403a131238ff54c51acba2c4f168..1dc221b0b10fc72b150e155859d53af7edc16a34 100644 (file)
@@ -4,7 +4,7 @@ endif
 
 # Disable floating-point support in printf to save space
 
-PICOLIBC_PRINTF_CFLAGS = -DPICOLIBC_INTEGER_PRINTF_SCANF
+PICOLIBC_PRINTF_CFLAGS = --printf=i
 
 include $(TOPDIR)/Makefile.defs