FDS/OS 1.0

This commit is contained in:
2026-09-21 22:29:23 +08:00
commit 99bc3d15c5
430 changed files with 34876 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
format = 1
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"]
[[payload]]
bundles = ["../../out/demo-report"]
+6
View File
@@ -0,0 +1,6 @@
#include <stdio.h>
int main(int argc, char **argv) {
printf("Hello from an FDS AArch64 software cartridge%s%s\n",
argc > 1 ? ": " : "", argc > 1 ? argv[1] : "");
return 0;
}
+14
View File
@@ -0,0 +1,14 @@
format = 1
id = "demo.hello"
name = "AArch64 hello"
version = "1.0"
architecture = "aarch64"
root = "root"
[commands]
hello = "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"]
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
printf 'FDS cartridge system report\n'
uname -m
id
+9
View File
@@ -0,0 +1,9 @@
format = 1
id = "demo.report"
name = "System report"
version = "1.0"
architecture = "any"
root = "root"
[commands]
report = "bin/report"