forked from DGNum/liminix
modules/outputs: expose commandLineDtbNode
option
We allow `bootargs` and `bootargs-override` for now only. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
dde8386f75
commit
3dc58de0eb
2 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,11 @@ in {
|
||||||
default = [];
|
default = [];
|
||||||
description = "Kernel command line";
|
description = "Kernel command line";
|
||||||
};
|
};
|
||||||
|
commandLineDtbNode = mkOption {
|
||||||
|
type = types.enum [ "bootargs" "bootargs-override" ];
|
||||||
|
default = "bootargs";
|
||||||
|
description = "Kernel command line's devicetree node";
|
||||||
|
};
|
||||||
imageFormat = mkOption {
|
imageFormat = mkOption {
|
||||||
type = types.enum ["fit" "uimage"];
|
type = types.enum ["fit" "uimage"];
|
||||||
default = "uimage";
|
default = "uimage";
|
||||||
|
|
|
@ -111,6 +111,7 @@ in
|
||||||
};
|
};
|
||||||
uimage = liminix.builders.uimage {
|
uimage = liminix.builders.uimage {
|
||||||
commandLine = concatStringsSep " " config.boot.commandLine;
|
commandLine = concatStringsSep " " config.boot.commandLine;
|
||||||
|
inherit (config.boot) commandLineDtbNode;
|
||||||
inherit (config.hardware) loadAddress entryPoint alignment;
|
inherit (config.hardware) loadAddress entryPoint alignment;
|
||||||
inherit (config.boot) imageFormat;
|
inherit (config.boot) imageFormat;
|
||||||
inherit (o) kernel dtb;
|
inherit (o) kernel dtb;
|
||||||
|
|
Loading…
Reference in a new issue