uimage: make fit optional

This commit is contained in:
Daniel Barlow 2023-10-08 22:35:30 +01:00
parent f62ad0e1d7
commit bd20f3e419
4 changed files with 49 additions and 32 deletions

View file

@ -47,6 +47,10 @@ in {
default = [];
description = "Kernel command line";
};
imageFormat = mkOption {
type = types.enum ["fit" "uimage"];
default = "uimage";
};
tftp = {
loadAddress = mkOption {
type = types.str;

View file

@ -78,6 +78,7 @@ in
uimage = liminix.builders.uimage {
commandLine = concatStringsSep " " config.boot.commandLine;
inherit (config.hardware) loadAddress entryPoint;
inherit (config.boot) imageFormat;
inherit kernel;
inherit dtb;
};