File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,14 @@ config EXAMPLES_MODULE_BINDIR
115115 The full, absolute path to the location for the binaries can be
116116 located in a pre-mounted external file system.
117117
118+ config EXAMPLES_MODULE_FSDATA
119+ string "Additional data passed to mount"
120+ default ""
121+ depends on EXAMPLES_MODULE_FSMOUNT
122+ ---help---
123+ Additional data needed by mount. For example, when hostfs
124+ is used, this can be "fs=../apps/bin"
125+
118126config EXAMPLES_MODULE_LIBC
119127 bool "Link with LIBC"
120128 default n
Original file line number Diff line number Diff line change @@ -253,7 +253,8 @@ int main(int argc, FAR char *argv[])
253253 CONFIG_EXAMPLES_MODULE_FSTYPE , MOUNTPT );
254254
255255 ret = mount (CONFIG_EXAMPLES_MODULE_DEVPATH , MOUNTPT ,
256- CONFIG_EXAMPLES_MODULE_FSTYPE , MS_RDONLY , NULL );
256+ CONFIG_EXAMPLES_MODULE_FSTYPE , MS_RDONLY ,
257+ CONFIG_EXAMPLES_MODULE_FSDATA );
257258 if (ret < 0 )
258259 {
259260 printf ("ERROR: mount(%s, %s, %s) failed: %d\n" ,
You can’t perform that action at this time.
0 commit comments