example of a native application for unikraft microkernels, built with a zig library
Go to file
2024-07-08 21:53:02 -07:00
ziggy add build script so zig build works (sort of) as expected 2024-07-08 21:53:02 -07:00
.config.helloworld_qemu-x86_64 add build script so zig build works (sort of) as expected 2024-07-08 21:53:02 -07:00
.gitignore add more build files to .gitignore 2024-07-08 19:52:43 -07:00
build.zig add build script so zig build works (sort of) as expected 2024-07-08 21:53:02 -07:00
build.zig.zon add build script so zig build works (sort of) as expected 2024-07-08 21:53:02 -07:00
helloworld.c initial working example as made hacking around 2024-07-08 19:51:48 -07:00
Kraftfile initial working example as made hacking around 2024-07-08 19:51:48 -07:00
LICENSE initial working example as made hacking around 2024-07-08 19:51:48 -07:00
Makefile.uk add build script so zig build works (sort of) as expected 2024-07-08 21:53:02 -07:00
README.md add build script so zig build works (sort of) as expected 2024-07-08 21:53:02 -07:00
undefined.c initial working example as made hacking around 2024-07-08 19:51:48 -07:00

Native Unikraft Microkernel Build for Zig libraries

Building

Everything assumes Linux on x86_64, though some trivial changes should allow aarch64. Install the following:

Then run zig build run and everything will compile and run. The zig source code is all in the ziggy directory

Notes

The build script basically runs these commands:

(cd ziggy && zig build)
LIBZIGGY=$(pwd)/ziggy/zig-out/lib/libziggy.a kraft build --plat qemu --arch x86_64 --log-level debug --log-type basic
kraft run --plat qemu --arch x86_64