File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
flowey/flowey_lib_hvlite/src Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments