From bc774190f291f0fbae16c7e7ecc37f3cea421279 Mon Sep 17 00:00:00 2001 From: xiao-mang <53597406+xiao-mang@users.noreply.github.com> Date: Fri, 26 Apr 2024 22:25:04 +0800 Subject: [PATCH] enable poll (#8867) config poll --- bsp/nxp/imx/imx6ull-smart/.config | 14 +++++++++----- bsp/nxp/imx/imx6ull-smart/rtconfig.h | 6 +++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/bsp/nxp/imx/imx6ull-smart/.config b/bsp/nxp/imx/imx6ull-smart/.config index cac0ccfedf..717b7bf9f0 100644 --- a/bsp/nxp/imx/imx6ull-smart/.config +++ b/bsp/nxp/imx/imx6ull-smart/.config @@ -29,13 +29,17 @@ CONFIG_RT_TIMER_THREAD_STACK_SIZE=4096 # # kservice optimization # -CONFIG_RT_KSERVICE_USING_STDLIB=y -# CONFIG_RT_KSERVICE_USING_STDLIB_MEMORY is not set -# CONFIG_RT_KSERVICE_USING_TINY_SIZE is not set # CONFIG_RT_USING_TINY_FFS is not set -# CONFIG_RT_KPRINTF_USING_LONGLONG is not set # end of kservice optimization +# +# klibc optimization +# +# CONFIG_RT_KLIBC_USING_STDLIB is not set +# CONFIG_RT_KLIBC_USING_TINY_SIZE is not set +# CONFIG_RT_KLIBC_USING_PRINTF_LONGLONG is not set +# end of klibc optimization + CONFIG_RT_USING_DEBUG=y CONFIG_RT_DEBUGING_COLOR=y CONFIG_RT_DEBUGING_CONTEXT=y @@ -322,7 +326,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0 CONFIG_RT_USING_POSIX_FS=y CONFIG_RT_USING_POSIX_DEVIO=y CONFIG_RT_USING_POSIX_STDIO=y -# CONFIG_RT_USING_POSIX_POLL is not set +CONFIG_RT_USING_POSIX_POLL=y # CONFIG_RT_USING_POSIX_SELECT is not set # CONFIG_RT_USING_POSIX_EVENTFD is not set # CONFIG_RT_USING_POSIX_EPOLL is not set diff --git a/bsp/nxp/imx/imx6ull-smart/rtconfig.h b/bsp/nxp/imx/imx6ull-smart/rtconfig.h index 99518311b8..109213dff1 100644 --- a/bsp/nxp/imx/imx6ull-smart/rtconfig.h +++ b/bsp/nxp/imx/imx6ull-smart/rtconfig.h @@ -22,8 +22,11 @@ /* kservice optimization */ -#define RT_KSERVICE_USING_STDLIB /* end of kservice optimization */ + +/* klibc optimization */ + +/* end of klibc optimization */ #define RT_USING_DEBUG #define RT_DEBUGING_COLOR #define RT_DEBUGING_CONTEXT @@ -223,6 +226,7 @@ #define RT_USING_POSIX_FS #define RT_USING_POSIX_DEVIO #define RT_USING_POSIX_STDIO +#define RT_USING_POSIX_POLL #define RT_USING_POSIX_TERMIOS #define RT_USING_POSIX_DELAY #define RT_USING_POSIX_CLOCK