testing/ostest: set the default value to TESTING_OSTEST_FPUSIZE

.config:2053:warning: symbol value '' invalid for TESTING_OSTEST_FPUSIZE

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-01-07 15:29:13 +08:00 committed by Xiang Xiao
parent 61fe9c4fa2
commit cb988a8394
2 changed files with 4 additions and 1 deletions

View File

@ -88,6 +88,7 @@ if !TESTING_OSTEST_FPUTESTDISABLE
config TESTING_OSTEST_FPUSIZE
int "Size of floating point register save area"
default 0
config TESTING_OSTEST_FPULOOPS
int "Number of FPU test loops"

View File

@ -43,11 +43,13 @@
#undef HAVE_FPU
#ifdef CONFIG_ARCH_FPU
# if defined(CONFIG_TESTING_OSTEST_FPUSIZE) && \
(CONFIG_TESTING_OSTEST_FPUSIZE != 0) && \
defined(CONFIG_SCHED_WAITPID) && \
defined(CONFIG_BUILD_FLAT)
# define HAVE_FPU 1
# else
# ifndef CONFIG_TESTING_OSTEST_FPUSIZE
# if defined(CONFIG_TESTING_OSTEST_FPUSIZE) && \
(CONFIG_TESTING_OSTEST_FPUSIZE == 0)
# warning "FPU test not built; CONFIG_TESTING_OSTEST_FPUSIZE not defined"
# endif
# ifndef CONFIG_SCHED_WAITPID