Skip to content

Commit 8d8517b

Browse files
committed
Apply @fabbing's review in the documentation about how to build Solo5
1 parent d2cad12 commit 8d8517b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/building.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ _toolchain_ which can be used to compile a simple program as a unikernel.
9898
$ opam install solo5
9999
$ eval $(opam env)
100100
$ cat >main.c <<EOF
101+
#include <solo5.h>
101102
int solo5_app_main(const struct solo5_start_info *info) {
102103
return 0;
103104
}
@@ -107,13 +108,13 @@ $ $ARCH-solo5-none-static-cc -c main.c -o main.o
107108
$ cat >manifest.json <<EOF
108109
{
109110
"type": "solo5.manifest",
110-
"version", 1,
111+
"version": 1,
111112
"devices": []
112113
}
113114
EOF
114115
$ solo5-elftool gen-manifest manifest.json manifest.c
115116
$ $ARCH-solo5-none-static-cc -c manifest.c -o manifest.o
116-
$ $ARCH-solo5-none-static-ld manifest.o main.o -o main.hvt
117+
$ $ARCH-solo5-none-static-ld -z solo5-abi=hvt manifest.o main.o -o main.hvt
117118
$ solo5-hvt main.hvt
118119
| ___|
119120
__| _ \ | _ \ __ \

0 commit comments

Comments
 (0)