Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc/stdio: Enable LIBC_FLOATINGPOINT by default if ARCH_FPU is enabled #6607

Merged
merged 1 commit into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBCXX=y
CONFIG_LIBCXXABI=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_LOCALTIME=y
CONFIG_LIBM=y
CONFIG_LPUART1_SERIAL_CONSOLE=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBCXX=y
CONFIG_LIBCXXABI=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_LOCALTIME=y
CONFIG_LIBM=y
CONFIG_LPUART1_SERIAL_CONSOLE=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBCXX=y
CONFIG_LIBCXXABI=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_LOCALTIME=y
CONFIG_LIBM=y
CONFIG_LPUART1_SERIAL_CONSOLE=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/imxrt/teensy-4.x/configs/lua-4.1/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ CONFIG_IMXRT_USDHC1_WIDTH_D1_D4=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_INTERPRETERS_LUA=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MMCSD=y
CONFIG_MMCSD_MULTIBLOCK_LIMIT=1
CONFIG_MMCSD_SDIO=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/imxrt/teensy-4.x/configs/pwm-4.1/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_IOB_NBUFFERS=24
CONFIG_IOB_NCHAINS=24
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LPUART1_SERIAL_CONSOLE=y
CONFIG_MM_IOB=y
CONFIG_NSH_ARCHINIT=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/sama5/sama5d4-ek/configs/nxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ CONFIG_INIT_STACKSIZE=1024
CONFIG_INPUT=y
CONFIG_INPUT_MXT=y
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_MAX_EXITFUNS=1
CONFIG_LIBM=y
CONFIG_MMCSD=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/samv7/samv71-xult/configs/nxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ CONFIG_INPUT=y
CONFIG_INPUT_MXT=y
CONFIG_LCD=y
CONFIG_LCD_NOGETRUN=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_MAX_EXITFUNS=1
CONFIG_LIBM=y
CONFIG_MMCSD_MULTIBLOCK_LIMIT=1
Expand Down
1 change: 0 additions & 1 deletion boards/arm/samv7/samv71-xult/configs/vnxwm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ CONFIG_INIT_ENTRYPOINT="nxwm_main"
CONFIG_INIT_STACKSIZE=1526
CONFIG_IOB_NBUFFERS=72
CONFIG_IOB_THROTTLE=32
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_HOSTNAME="SAMV71-XULT"
CONFIG_LIBC_MAX_EXITFUNS=1
CONFIG_LIBM=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32/b-g474e-dpow1/configs/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ CONFIG_ARMV7M_MEMCPY=y
CONFIG_DEBUG_FEATURES=y
CONFIG_DEBUG_SYMBOLS=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_FILEIOSIZE=512
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32/nucleo-f302r8/configs/highpri/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ CONFIG_FDCLONE_STDIO=y
CONFIG_INIT_ENTRYPOINT="highpri_main"
CONFIG_INIT_STACKSIZE=1024
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_NAME_MAX=16
CONFIG_NUCLEOF302R8_HIGHPRI=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32/nucleo-f334r8/configs/highpri/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ CONFIG_FDCLONE_STDIO=y
CONFIG_INIT_ENTRYPOINT="highpri_main"
CONFIG_INIT_STACKSIZE=1024
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_NAME_MAX=16
CONFIG_NUCLEOF334R8_HIGHPRI=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32/nucleo-f334r8/configs/spwm1/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ CONFIG_FDCLONE_STDIO=y
CONFIG_INIT_ENTRYPOINT="spwm_main"
CONFIG_INIT_STACKSIZE=1024
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_NAME_MAX=16
CONFIG_NUCLEOF334R8_SPWM=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32/nucleo-f334r8/configs/spwm2/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ CONFIG_FDCLONE_STDIO=y
CONFIG_INIT_ENTRYPOINT="spwm_main"
CONFIG_INIT_STACKSIZE=1024
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_NAME_MAX=16
CONFIG_NUCLEOF334R8_SPWM=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32/nucleo-g474re/configs/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ CONFIG_ARMV7M_MEMCPY=y
CONFIG_DEBUG_FEATURES=y
CONFIG_DEBUG_SYMBOLS=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_FILEIOSIZE=512
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32/nucleo-g474re/configs/usbserial/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ CONFIG_DEBUG_USB_ERROR=y
CONFIG_DEBUG_USB_WARN=y
CONFIG_DEBUG_WARN=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_FILEIOSIZE=512
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32/olimex-stm32-p407/configs/dhtxx/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ CONFIG_HAVE_CXX=y
CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_DISABLE_GET=y
CONFIG_NSH_DISABLE_IFUPDOWN=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ CONFIG_FDCLONE_STDIO=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=1024
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBDSP=y
CONFIG_LIBM=y
CONFIG_NAME_MAX=16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ CONFIG_HEAP2_BASE=0xD0000000
CONFIG_HEAP2_SIZE=8388608
CONFIG_INIT_ENTRYPOINT="highpri_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_MM_REGIONS=2
CONFIG_PREALLOC_TIMERS=4
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f7/nucleo-144/configs/f746-pysim/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_IOEXPANDER=y
CONFIG_IOEXPANDER_MULTIPIN=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBM=y
CONFIG_MM_REGIONS=2
CONFIG_MODULE=y
Expand Down
1 change: 0 additions & 1 deletion boards/risc-v/mpfs/icicle/configs/hwtest/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ CONFIG_IDLETHREAD_STACKSIZE=2048
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_PERROR_STDOUT=y
CONFIG_LIBC_STRERROR=y
CONFIG_MEMSET_64BIT=y
Expand Down
1 change: 0 additions & 1 deletion boards/risc-v/mpfs/icicle/configs/knsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ CONFIG_IDLETHREAD_STACKSIZE=2048
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_EXECFUNCS=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_HOSTNAME="icicle"
CONFIG_LIBC_MAX_EXITFUNS=2
CONFIG_LIBC_PERROR_STDOUT=y
Expand Down
1 change: 0 additions & 1 deletion boards/risc-v/mpfs/icicle/configs/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ CONFIG_IDLETHREAD_STACKSIZE=2048
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_HOSTNAME="icicle"
CONFIG_LIBC_PERROR_STDOUT=y
CONFIG_LIBC_STRERROR=y
Expand Down
1 change: 0 additions & 1 deletion boards/risc-v/mpfs/icicle/configs/pnsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CONFIG_IDLETHREAD_STACKSIZE=2048
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_HOSTNAME="icicle"
CONFIG_LIBC_PERROR_STDOUT=y
CONFIG_LIBC_STRERROR=y
Expand Down
1 change: 0 additions & 1 deletion boards/risc-v/mpfs/m100pfsevp/configs/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ CONFIG_IDLETHREAD_STACKSIZE=2048
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_LIBC_HOSTNAME="icicle"
CONFIG_LIBC_PERROR_STDOUT=y
CONFIG_LIBC_STRERROR=y
Expand Down
1 change: 0 additions & 1 deletion boards/xtensa/esp32/esp32-devkitc/configs/autopm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
1 change: 0 additions & 1 deletion boards/xtensa/esp32/esp32-devkitc/configs/bmp280/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_BUILTIN_APPS=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ CONFIG_HOST_MACOS=y
CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
1 change: 0 additions & 1 deletion boards/xtensa/esp32/esp32-devkitc/configs/mqttc/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_IOB_NBUFFERS=24
CONFIG_IOB_THROTTLE=0
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
1 change: 0 additions & 1 deletion boards/xtensa/esp32/esp32-devkitc/configs/ms5611/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CONFIG_I2CTOOL_DEFFREQ=100000
CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_MS5611_I2C_FREQUENCY=100000
CONFIG_NSH_ARCHINIT=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ CONFIG_IDLETHREAD_STACKSIZE=3072
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=3072
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_FLOATINGPOINT=y
CONFIG_MM_REGIONS=3
CONFIG_NAME_MAX=48
CONFIG_NETDB_DNSCLIENT=y
Expand Down
2 changes: 1 addition & 1 deletion libs/libc/stdio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ config NUNGET_CHARS

config LIBC_FLOATINGPOINT
bool "Enable floating point in printf"
default n
default !DEFAULT_SMALL && ARCH_FPU
xiaoxiang781216 marked this conversation as resolved.
Show resolved Hide resolved
---help---
By default, floating point support in printf, sscanf, etc. is
disabled. This option will enable floating point support.
Expand Down