This is an automated email from the ASF dual-hosted git repository.
GUIDINGLI 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 23013db0735 boards/sim: enable wzipfs write mode in the zipfs
configuration
23013db0735 is described below
commit 23013db07358bedf15aaa91801bf712d8f26a843
Author: anjiahao <[email protected]>
AuthorDate: Thu Nov 26 18:07:25 2026 +0800
boards/sim: enable wzipfs write mode in the zipfs configuration
Enable CONFIG_FS_ZIPFS_WRITE and CONFIG_FS_ZIPFS_WRITE_DEFLATE in the
sim:zipfs profile, together with CONFIG_PIPES and the wzipfs cmocka
tests. CONFIG_ALLOW_MIT_COMPONENTS pulls in the regex dependency of
cmocka.
The simulator configuration can now exercise the write-only streaming
VFS: file, FIFO and fd targets, and the store/deflate method options.
Signed-off-by: anjiahao <[email protected]>
---
boards/sim/sim/sim/configs/zipfs/defconfig | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/boards/sim/sim/sim/configs/zipfs/defconfig
b/boards/sim/sim/sim/configs/zipfs/defconfig
index bf165615ffe..02cac293ac6 100644
--- a/boards/sim/sim/sim/configs/zipfs/defconfig
+++ b/boards/sim/sim/sim/configs/zipfs/defconfig
@@ -7,6 +7,7 @@
#
# CONFIG_NSH_CMDOPT_HEXDUMP is not set
CONFIG_ALLOW_BSD_COMPONENTS=y
+CONFIG_ALLOW_MIT_COMPONENTS=y
CONFIG_ARCH="sim"
CONFIG_ARCH_BOARD="sim"
CONFIG_ARCH_BOARD_SIM=y
@@ -21,8 +22,10 @@ CONFIG_CODECS_BASE64=y
CONFIG_CRYPTO=y
CONFIG_CRYPTO_CRYPTODEV=y
CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DEV_FIFO_SIZE=16384
CONFIG_DEV_GPIO=y
CONFIG_DEV_LOOP=y
+CONFIG_DEV_PIPE_SIZE=16384
CONFIG_ETC_FATDEVNO=2
CONFIG_ETC_ROMFS=y
CONFIG_ETC_ROMFSDEVNO=1
@@ -39,6 +42,8 @@ CONFIG_FS_PROCFS=y
CONFIG_FS_RAMMAP=y
CONFIG_FS_ROMFS=y
CONFIG_FS_ZIPFS=y
+CONFIG_FS_ZIPFS_WRITE=y
+CONFIG_FS_ZIPFS_WRITE_DEFLATE=y
CONFIG_GPIO_LOWER_HALF=y
CONFIG_IDLETHREAD_STACKSIZE=4096
CONFIG_INIT_ENTRYPOINT="init_main"
@@ -59,6 +64,7 @@ CONFIG_NSH_MOTD=y
CONFIG_NSH_MOTD_STRING="This is an example NuttX Message Of The Day (MOTD).
Have fun!"
CONFIG_NSH_READLINE=y
CONFIG_PATH_INITIAL="/bin"
+CONFIG_PIPES=y
CONFIG_PSEUDOFS_ATTRIBUTES=y
CONFIG_READLINE_TABCOMPLETION=y
CONFIG_SCHED_BACKTRACE=y
@@ -71,6 +77,8 @@ CONFIG_START_YEAR=2008
CONFIG_SYSTEM_DUMPSTACK=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_NXINIT=y
+CONFIG_TESTING_CMOCKA=y
+CONFIG_TESTING_WZIPFS=y
CONFIG_UTILS_LIBARCHIVE=y
CONFIG_UTILS_UNZIP=y
CONFIG_UTILS_ZIP=y