You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/01/16 12:30:46 UTC

[nuttx] branch master updated: boards/sim/windows: enable custom options

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 415a09115d boards/sim/windows: enable custom options
415a09115d is described below

commit 415a09115de60a092968393847f23ea2936ba291
Author: chao an <an...@xiaomi.com>
AuthorDate: Wed Dec 14 11:53:16 2022 +0800

    boards/sim/windows: enable custom options
    
    1. boards/sim: enable child status
    2. boards/sim/windows: enable custom options
    3. sim/windows: enable hostfs
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 Kconfig                                      | 1 +
 arch/Kconfig                                 | 2 +-
 boards/sim/sim/sim/configs/windows/defconfig | 9 +++++++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/Kconfig b/Kconfig
index 1b2c3f3282..768d46d03d 100644
--- a/Kconfig
+++ b/Kconfig
@@ -2004,6 +2004,7 @@ endchoice # Optimization Level
 
 config DEBUG_OPTLEVEL
 	string "Custom Optimization Level"
+	default "/O2" if HOST_WINDOWS
 	default "-O2"
 	depends on DEBUG_CUSTOMOPT
 	---help---
diff --git a/arch/Kconfig b/arch/Kconfig
index 5cbc2927f3..f33bc5c19a 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -98,7 +98,7 @@ config ARCH_SIM
 	select ARCH_HAVE_TICKLESS
 	select ARCH_HAVE_POWEROFF
 	select ARCH_HAVE_TESTSET
-	select ARCH_HAVE_VFORK
+	select ARCH_HAVE_VFORK if !HOST_WINDOWS
 	select ARCH_HAVE_SETJMP
 	select ARCH_HAVE_CUSTOMOPT
 	select ARCH_SETJMP_H
diff --git a/boards/sim/sim/sim/configs/windows/defconfig b/boards/sim/sim/sim/configs/windows/defconfig
index e36db3f4c4..6d4ef7b75e 100644
--- a/boards/sim/sim/sim/configs/windows/defconfig
+++ b/boards/sim/sim/sim/configs/windows/defconfig
@@ -12,12 +12,16 @@ CONFIG_ARCH_CHIP="sim"
 CONFIG_ARCH_FLOAT_H=y
 CONFIG_ARCH_SIM=y
 CONFIG_BOARDCTL_POWEROFF=y
+CONFIG_BOARD_LATE_INITIALIZE=y
 CONFIG_BUILTIN=y
+CONFIG_DEBUG_CUSTOMOPT=y
 CONFIG_DEV_LOOP=y
 CONFIG_DEV_ZERO=y
 CONFIG_EXAMPLES_HELLO=y
+CONFIG_FS_HOSTFS=y
 CONFIG_FS_PROCFS=y
 CONFIG_FS_TMPFS=y
+CONFIG_HOST_WINDOWS=y
 CONFIG_HOST_X86=y
 CONFIG_IDLETHREAD_STACKSIZE=4096
 CONFIG_INIT_ENTRYPOINT="nsh_main"
@@ -39,8 +43,13 @@ CONFIG_NET_UDP_WRITE_BUFFERS=y
 CONFIG_NSH_ARCHINIT=y
 CONFIG_NSH_BUILTIN_APPS=y
 CONFIG_NSH_READLINE=y
+CONFIG_PREALLOC_CHILDSTATUS=2
+CONFIG_SCHED_CHILD_STATUS=y
+CONFIG_SCHED_HAVE_PARENT=y
 CONFIG_SCHED_HPWORK=y
 CONFIG_SCHED_LPWORK=y
+CONFIG_SCHED_WAITPID=y
+CONFIG_SIM_HOSTFS=y
 CONFIG_SIM_STACKSIZE_ADJUSTMENT=10240
 CONFIG_SYSTEM_NSH=y
 CONFIG_SYSTEM_PING=y