build: phase 2 wave A — services build as packages
init, fat, display, display-demo, device-manager, input, logger, and the two discovery fillers (acpi, fdt — each exporting an artifact named "discovery"; the root -Ddiscovery picks which ships) convert to binary packages on the pci-bus template. init's serial heartbeat flag rides the dependency options (the root forwards its -Dserial). fat's and display's unit tests move into their packages and the root aggregate delegates to them. Boot-image file list unchanged.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//! The args-echo test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "args-echo",
|
||||
.root_source_file = b.path("args-echo.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .args_echo,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0xcc0ad94cf777eeb, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
//! The crash-test test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) for the boot image.
|
||||
|
||||
const std = @import("std");
|
||||
const build_support = @import("build-support");
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
const protocol = b.dependency("protocol", .{});
|
||||
|
||||
const exe = build_support.userBinary(b, .{
|
||||
.name = "crash-test",
|
||||
.root_source_file = b.path("crash-test.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
build_support.programModule(exe).addImport("device-manager-protocol", protocol.module("device-manager-protocol"));
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
.{
|
||||
.name = .crash_test,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x611122f815277984, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
.protocol = .{ .path = "../../../../library/protocol" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
//! The device-list test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) for the boot image.
|
||||
|
||||
const std = @import("std");
|
||||
const build_support = @import("build-support");
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
const protocol = b.dependency("protocol", .{});
|
||||
|
||||
const exe = build_support.userBinary(b, .{
|
||||
.name = "device-list",
|
||||
.root_source_file = b.path("device-list.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
build_support.programModule(exe).addImport("device-manager-protocol", protocol.module("device-manager-protocol"));
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
.{
|
||||
.name = .device_list,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0xcdf12d2276a06cb1, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
.protocol = .{ .path = "../../../../library/protocol" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//! The fat-test test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "fat-test",
|
||||
.root_source_file = b.path("fat-test.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .fat_test,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x8dac87d9dc3aabca, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//! The input-source test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "input-source",
|
||||
.root_source_file = b.path("input-source.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .input_source,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x933ef62ed7d33db7, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//! The input-test test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "input-test",
|
||||
.root_source_file = b.path("input-test.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .input_test,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x9b12c53bde4d070e, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
//! The iommu-fault-test test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) for the boot image.
|
||||
|
||||
const std = @import("std");
|
||||
const build_support = @import("build-support");
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
const device = b.dependency("device", .{});
|
||||
|
||||
const exe = build_support.userBinary(b, .{
|
||||
.name = "iommu-fault-test",
|
||||
.root_source_file = b.path("iommu-fault-test.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
build_support.programModule(exe).addImport("pci", device.module("pci"));
|
||||
build_support.programModule(exe).addImport("pci-class", device.module("pci-class"));
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .iommu_fault_test,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0xd7ec3a4e1a61696c, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
//! The pci-cap-test test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) for the boot image.
|
||||
|
||||
const std = @import("std");
|
||||
const build_support = @import("build-support");
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
const device = b.dependency("device", .{});
|
||||
|
||||
const exe = build_support.userBinary(b, .{
|
||||
.name = "pci-cap-test",
|
||||
.root_source_file = b.path("pci-cap-test.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
build_support.programModule(exe).addImport("pci", device.module("pci"));
|
||||
build_support.programModule(exe).addImport("pci-class", device.module("pci-class"));
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .pci_cap_test,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x2d4f027d811c3953, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//! The process-test test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "process-test",
|
||||
.root_source_file = b.path("process-test.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .process_test,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x3796ac392c89622b, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//! The shared-memory-client test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "shared-memory-client",
|
||||
.root_source_file = b.path("shared-memory-client.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .shared_memory_client,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0xc3945d0308ff5720, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//! The shared-memory-server test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "shared-memory-server",
|
||||
.root_source_file = b.path("shared-memory-server.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .shared_memory_server,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x5ebd8ca0f8a1675b, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//! The thread-test test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "thread-test",
|
||||
.root_source_file = b.path("thread-test.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .thread_test,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x5cce628236ddbf19, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//! The vfs-test test fixture as a binary package (docs/build-packages-plan.md,
|
||||
//! phase 2): this file names only what is specific to this binary — the shared
|
||||
//! recipe and the default-import wiring live in build-support. The root build
|
||||
//! consumes the artifact(s) 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 = "vfs-test",
|
||||
.root_source_file = b.path("vfs-test.zig"),
|
||||
.domains = build_support.domains(b),
|
||||
});
|
||||
b.installArtifact(exe);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
.{
|
||||
.name = .vfs_test,
|
||||
.version = "0.0.0",
|
||||
.fingerprint = 0x29b5b8c468cdfe6e, // Changing this has security and trust implications.
|
||||
.minimum_zig_version = "0.16.0",
|
||||
.dependencies = .{
|
||||
.@"build-support" = .{ .path = "../../../../build-support" },
|
||||
.kernel = .{ .path = "../../../../library/kernel" },
|
||||
.device = .{ .path = "../../../../library/device" },
|
||||
.client = .{ .path = "../../../../library/client" },
|
||||
.@"xkeyboard-config" = .{ .path = "../../../../library/xkeyboard-config" },
|
||||
},
|
||||
.paths = .{""},
|
||||
}
|
||||
Reference in New Issue
Block a user