uimage: make fit optional
This commit is contained in:
parent
f62ad0e1d7
commit
bd20f3e419
4 changed files with 49 additions and 32 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue