Module Winvos.Imager

Imager image.

val get_bootstrap_arch : unit -> B0_std.Os.Arch.t

get_boostrap_arch () returns the architecture of the OS run to perform the boostrap.

Imager build script

val get_build_script_src : data_dir:B0_std.Fpath.t -> bootstrap_arch:B0_std.Os.Arch.t -> imager_arch:B0_std.Os.Arch.t -> B0_std.Fpath.t option -> (string, string) Stdlib.result

get_script_src is like Plan.imager_build_script_src on None otherwise looks up and reads the given file (possibly resolved in the data_dir)

Imager

val get_filepath : data_dir:B0_std.Fpath.t -> imager_arch:B0_std.Os.Arch.t -> B0_std.Fpath.t option -> B0_std.Fpath.t

get_filepath ~data_dir ~imager_arch img resolves the file path img to file system path (not necessarily existing).

val make : data_dir:B0_std.Fpath.t -> mem_size:string option -> bootstrap_arch:B0_std.Os.Arch.t -> build_script_src:string -> imager_arch:B0_std.Os.Arch.t -> force:bool -> make_path:bool -> dst:B0_std.Fpath.t option -> (unit, string) Stdlib.result

make_imager creates an imager image of architecture imager_arch in arch by boostrapping with the WinVOS image of bootstrap_arch using the build script source build_script_src.

val get : data_dir:B0_std.Fpath.t -> imager_arch:B0_std.Os.Arch.t option -> B0_std.Fpath.t option -> (B0_std.Fpath.t * B0_std.Os.Arch.t, string) Stdlib.result

get ~data_dir ~bootstrap_arch file gets an imager from file if specified. If unspecified looks for an imager in the data_dir and if not found bootstraps via make using default parameters.