FDS/OS 1.0
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user