mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 12:49:00 +00:00
posix_test: fix the ltp project link error
Add CONFIG_NET, CONFIG_NET_SOCKOPTS, and CONFIG_SYSTEM_SYSTEM to posix_test configuration to provide the network socket options and NXsystem() API required by LTP testcases, resolving undefined reference errors during linking. the following are the detailed link error: ``` /home/testing/apps/testing/ltp/ltp/testcases/kernel/device-drivers/zram/zram03.c:175: undefined reference to `NXsystem' /usr/bin/ld: nuttx.rel: in function `setup': /home/testing/apps/testing/ltp/ltp/testcases/kernel/device-drivers/zram/zram03.c:158: undefined reference to `NXsystem' /usr/bin/ld: nuttx.rel: in function `setup': /home/testing/apps/testing/ltp/ltp/testcases/kernel/syscalls/sendmsg/sendmsg01.c:554: undefined reference to `NXsystem' /usr/bin/ld: /home/testing/apps/testing/ltp/ltp/testcases/kernel/syscalls/sendmsg/sendmsg01.c:556: undefined reference to `NXsystem' /usr/bin/ld: nuttx.rel: in function `ltp_fs_inode_inode01_main': /home/testing/apps/testing/ltp/ltp/ltp/lib/safe_net.c:511: undefined reference to `NXsetsocket' /usr/bin/ld: nuttx.rel: in function `safe_getsockopt': ``` Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
f730a86d22
commit
9503d57634
1 changed files with 3 additions and 1 deletions
|
|
@ -59,6 +59,8 @@ CONFIG_LIBC_NUMBERED_ARGS=y
|
|||
CONFIG_LIBC_PASSWD_FILE=y
|
||||
CONFIG_MQ_MAXMSGSIZE=64
|
||||
CONFIG_NDEBUG=y
|
||||
CONFIG_NET=y
|
||||
CONFIG_NET_SOCKOPTS=y
|
||||
CONFIG_NSH_ARCHINIT=y
|
||||
CONFIG_NSH_BUILTIN_APPS=y
|
||||
CONFIG_NSH_FILE_APPS=y
|
||||
|
|
@ -81,7 +83,6 @@ CONFIG_SCHED_LPNTHREADS=1
|
|||
CONFIG_SCHED_LPWORK=y
|
||||
CONFIG_SCHED_SPORADIC=y
|
||||
CONFIG_SCHED_USER_IDENTITY=y
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_SIG_DEFAULT=y
|
||||
CONFIG_SIG_EVTHREAD=y
|
||||
CONFIG_SIM_HOSTFS=y
|
||||
|
|
@ -91,6 +92,7 @@ CONFIG_START_MONTH=6
|
|||
CONFIG_START_YEAR=2008
|
||||
CONFIG_SYSTEM_DUMPSTACK=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_SYSTEM_SYSTEM=y
|
||||
CONFIG_TESTING_LTP=y
|
||||
CONFIG_TLS_NCLEANUP=4
|
||||
CONFIG_TLS_NELEM=16
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue