Skip to content

Commit e941eae

Browse files
keep iterating on build
1 parent 18f0e2f commit e941eae

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

flowey/flowey_lib_hvlite/src/build_openhcl_initrd.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ impl FlowNode for Node {
117117

118118
ctx.emit_rust_step("building openhcl initrd", |ctx| {
119119
pydeps.clone().claim(ctx);
120+
let platform = ctx.platform();
120121
let interactive_dep = interactive_dep.claim(ctx);
121122
let rootfs_config = rootfs_config.claim(ctx);
122123
let extra_env = extra_env.claim(ctx);
@@ -132,7 +133,7 @@ impl FlowNode for Node {
132133
let openvmm_repo_path = rt.read(openvmm_repo_path);
133134
let kernel_package_root = rt.read(kernel_package_root);
134135

135-
let sh = xshell::Shell::new()?;
136+
let sh = FloweyShell::new(platform)?;
136137

137138
let initrd_path = sh.current_dir().join("openhcl.cpio.gz");
138139

openhcl_kernel.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ in stdenv.mkDerivation {
4040

4141
installPhase = ''
4242
runHook preInstall
43-
mkdir $out
44-
cp vmlinux* $out
45-
mkdir -p $out/modules/build/native/bin/${arch}
46-
cp kernel_build_metadata.json $out/modules/build/native/bin/
47-
cp -r modules $out/modules/build/native/bin/${arch}
43+
mkdir -p $out/build/native/bin/${arch}
44+
cp vmlinux* $out/build/native/bin/${arch}/
45+
cp kernel_build_metadata.json $out/build/native/bin/
46+
cp -r modules $out/build/native/bin/${arch}/
4847
runHook postInstall
4948
'';
5049
}

shell.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ in pkgs.mkShell.override { } {
5050

5151
NIX_OPENVMM_DEPS = openvmm_deps;
5252
NIX_PROTOC_PATH = protoc;
53-
NIX_OPENHCL_KERNEL = "${openhcl_kernel}/vmlinux";
54-
NIX_OPENHCL_KERNEL_MODULES = "${openhcl_kernel}/modules";
53+
NIX_OPENHCL_KERNEL = openhcl_kernel;
5554
NIX_UEFI_MU_MSVM = "${uefi_mu_msvm}/MSVM.fd";
5655
RUST_BACKTRACE = 1;
5756
# will probably need more than one of these for local source + dependencies.

0 commit comments

Comments
 (0)