update docs

This commit is contained in:
2026-09-22 13:23:34 +08:00
parent 99bc3d15c5
commit 8a4788fca8
126 changed files with 7198 additions and 2425 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
format = 1
format = 2
id = "demo.tools"
name = "Hello and system report"
version = "1.0"
# Paths are relative to this recipe. Each payload entry creates one partition.
[[payload]]
bundles = ["../../out/demo-hello"]
sources = ["hello/software.toml"]
[[payload]]
bundles = ["../../out/demo-report"]
sources = ["report/software.toml"]
+6 -8
View File
@@ -1,14 +1,12 @@
format = 1
format = 2
id = "demo.hello"
name = "AArch64 hello"
version = "1.0"
architecture = "aarch64"
root = "root"
[commands]
hello = "bin/hello"
hello = "usr/bin/hello"
# This trusted command runs only on the workstation. It is never put on media.
[build]
directory = "."
command = ["sh", "-eu", "-c", "mkdir -p root/bin; aarch64-linux-gnu-gcc -O2 hello.c -o root/bin/hello"]
# Void source templates run only on the workstation.
[source]
package = "fds-demo-hello"
template = "void"
+15
View File
@@ -0,0 +1,15 @@
# Small example of a native Void source package, cross-built by xbps-src.
pkgname=fds-demo-hello
version=1.0
revision=1
archs="aarch64"
short_desc="FDS cartridge hello example"
maintainer="FDS/OS maintainers"
license="MIT"
homepage="https://docs.voidlinux.org/xbps/"
do_build() {
${CC} ${CFLAGS} "${FILESDIR}/hello.c" ${LDFLAGS} -o hello
}
do_install() {
vbin hello
}
+6 -4
View File
@@ -1,9 +1,11 @@
format = 1
format = 2
id = "demo.report"
name = "System report"
version = "1.0"
architecture = "any"
root = "root"
[commands]
report = "bin/report"
report = "usr/bin/report"
[source]
package = "fds-demo-report"
template = "void"
@@ -2,3 +2,4 @@
printf 'FDS cartridge system report\n'
uname -m
id
[ "${1-}" != hold ] || exec tail -f /dev/null
+12
View File
@@ -0,0 +1,12 @@
pkgname=fds-demo-report
version=1.0
revision=1
archs="aarch64"
depends="bash coreutils"
short_desc="FDS cartridge report example"
maintainer="FDS/OS maintainers"
license="MIT"
homepage="https://docs.voidlinux.org/xbps/"
do_install() {
vbin "${FILESDIR}/report"
}