From: Keith Packard Date: Tue, 6 May 2025 19:42:58 +0000 (-0700) Subject: altos: Switch to modern picolibc mechanism for printf selection X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a6cd0fbd524207b1067d8d93261b680c786ce6a3;p=fw%2Faltos altos: Switch to modern picolibc mechanism for printf selection Use --printf=i instead of -DPICOLIBC_INTEGER_PRINTF_SCANF. Signed-off-by: Keith Packard --- diff --git a/src/lpc/Makefile-lpc.defs b/src/lpc/Makefile-lpc.defs index 48153da3..5876d4d9 100644 --- a/src/lpc/Makefile-lpc.defs +++ b/src/lpc/Makefile-lpc.defs @@ -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 diff --git a/src/stm32l0/Makefile-stm32l0.defs b/src/stm32l0/Makefile-stm32l0.defs index 1eab283a..c2693ba3 100644 --- a/src/stm32l0/Makefile-stm32l0.defs +++ b/src/stm32l0/Makefile-stm32l0.defs @@ -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 diff --git a/src/stmf0/Makefile-stmf0.defs b/src/stmf0/Makefile-stmf0.defs index 53660560..1dc221b0 100644 --- a/src/stmf0/Makefile-stmf0.defs +++ b/src/stmf0/Makefile-stmf0.defs @@ -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