FDS/OS 1.0
This commit is contained in:
@@ -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"]
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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"]
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
printf 'FDS cartridge system report\n'
|
||||
uname -m
|
||||
id
|
||||
@@ -0,0 +1,9 @@
|
||||
format = 1
|
||||
id = "demo.report"
|
||||
name = "System report"
|
||||
version = "1.0"
|
||||
architecture = "any"
|
||||
root = "root"
|
||||
|
||||
[commands]
|
||||
report = "bin/report"
|
||||
Reference in New Issue
Block a user