//! The pci-bus driver as a binary package (docs/build-packages-plan.md, //! phase 2): this file names only what is specific to pci-bus — the shared //! recipe and the default-import wiring live in build-support. The root build //! consumes the artifact for the boot image. const std = @import("std"); const build_support = @import("build-support"); pub fn build(b: *std.Build) void { const exe = build_support.userBinary(b, .{ .name = "pci-bus", .root_source_file = b.path("pci-bus.zig"), .domains = build_support.domains(b), }); // The bus driver reports discovered functions to the device manager, and // decodes each function's class triple to human names in its boot log. build_support.programModule(exe).addImport("device-manager-protocol", b.dependency("protocol", .{}).module("device-manager-protocol")); build_support.programModule(exe).addImport("pci-class", b.dependency("device", .{}).module("pci-class")); b.installArtifact(exe); }