Add depot_9P package

Add a runtime package for serving /depot/local using the 9P protocol.
This commit is contained in:
Ehmry - 2019-03-23 10:55:59 +01:00
parent 84ecc59327
commit 4d56937d5e
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,8 @@
include_rules
: archives |> !archives_to_depot |> {package}
: runtime |> !runtime_to_depot |> {package}
ifdef DEPOT_KEY
: {package} |> !publish_pkg |>
endif

View File

@ -0,0 +1,4 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/vfs/@SDK_VERSION@
ehmry/src/vfs_lwip/2019-03-22
@DEPOT_USER@/src/ninep/@DEPOT_VERSION@

31
runtimes/depot_9P/runtime Normal file
View File

@ -0,0 +1,31 @@
<runtime ram="32M" caps="384" binary="nine_p_server">
<requires>
<file_system label="target"/>
<nic/>
</requires>
<content>
<rom label="libc.lib.so"/>
<rom label="libm.lib.so"/>
<rom label="nine_p_server"/>
<rom label="vfs.lib.so"/>
<rom label="vfs_lwip.lib.so"/>
</content>
<config>
<libc stdout="/dev/log" stderr="/dev/log" socket="/socket"/>
<vfs>
<dir name="export">
<dir name="local">
<fs label="target" root="/depot/local"/>
</dir>
</dir>
<dir name="dev"> <log/> </dir>
<dir name="socket">
<lwip ip_addr="10.0.1.99" netmask="255.255.255.0" gateway="10.0.1.1" />
</dir>
</vfs>
</config>
</runtime>