Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building virtio example with zig #65

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Building virtio example with zig #65

wants to merge 25 commits into from

Conversation

erichchan999
Copy link
Contributor

@erichchan999 erichchan999 commented May 22, 2024

Waiting on this PR #74 to be merged first.

Provides zig build for virtio example. Changes the top-level build.zig in libvmm to have sddf build.zig as a dependency.

@erichchan999 erichchan999 marked this pull request as draft May 22, 2024 12:59
@erichchan999 erichchan999 force-pushed the virtio_blk_zig branch 5 times, most recently from b303783 to 5d5e5c6 Compare July 4, 2024 08:53
@erichchan999 erichchan999 marked this pull request as ready for review July 4, 2024 08:58
build.zig Outdated Show resolved Hide resolved
@erichchan999 erichchan999 force-pushed the virtio_blk_zig branch 3 times, most recently from 7407ca5 to 882622c Compare July 5, 2024 06:05
build.zig Outdated
Comment on lines 89 to 94
// @ivanv: fix all of our libvmm includes! This is a mess!
libvmm.addIncludePath(b.path("src"));
libvmm.addIncludePath(b.path("src/util/"));
libvmm.addIncludePath(b.path("src/util"));
libvmm.addIncludePath(b.path("src/virtio"));
libvmm.addIncludePath(b.path("src/arch/aarch64"));
libvmm.addIncludePath(b.path("src/arch/aarch64/vgic/"));
libvmm.addIncludePath(b.path("src/arch/aarch64/vgic"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you rebase on main we can remove all these lines, finally.

build.zig Outdated Show resolved Hide resolved
Comment on lines +433 to +339
const microkit_tool_cmd = b.addSystemCommand(&[_][]const u8{
microkit_tool.getPath(b),
});
microkit_tool_cmd.addFileArg(system_description_path);
microkit_tool_cmd.addArg("--search-path");
microkit_tool_cmd.addArg(b.getInstallPath(.bin, ""));
microkit_tool_cmd.addArg("--board");
microkit_tool_cmd.addArg(@tagName(microkit_board));
microkit_tool_cmd.addArg("--config");
microkit_tool_cmd.addArg(@tagName(microkit_config));
microkit_tool_cmd.addArg("-o");
microkit_tool_cmd.addArg(final_image_dest);
microkit_tool_cmd.addArg("-r");
microkit_tool_cmd.addArg(b.getInstallPath(.prefix, "./report.txt"));
microkit_tool_cmd.step.dependOn(b.getInstallStep());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you follow what examples/simple/build.zig does for this?

Signed-off-by: Eric Chan <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Eric Chan <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Eric Chan <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
erichchan999 and others added 16 commits August 7, 2024 11:40
Signed-off-by: Eric Chan <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
…s is done for odroidc4 example

Signed-off-by: Eric Chan <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Eric Chan <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Eric Chan <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
There's an issue with Microkit 1.4.0 that affects the Odroid-C4.

Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Signed-off-by: Ivan Velickovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants