liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3dc58de0eb343d058c082388069bc5659a610216
parent dde8386f7583cbb4145b9b484c39c737cb3c1578
Author: Raito Bezarius <masterancpp@gmail.com>
Date:   Sat, 17 Feb 2024 02:16:57 +0100

modules/outputs: expose `commandLineDtbNode` option

We allow `bootargs` and `bootargs-override` for now only.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>

Diffstat:
Mmodules/base.nix | 5+++++
Mmodules/outputs.nix | 1+
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/base.nix b/modules/base.nix @@ -58,6 +58,11 @@ in { default = []; description = "Kernel command line"; }; + commandLineDtbNode = mkOption { + type = types.enum [ "bootargs" "bootargs-override" ]; + default = "bootargs"; + description = "Kernel command line's devicetree node"; + }; imageFormat = mkOption { type = types.enum ["fit" "uimage"]; default = "uimage"; diff --git a/modules/outputs.nix b/modules/outputs.nix @@ -111,6 +111,7 @@ in }; uimage = liminix.builders.uimage { commandLine = concatStringsSep " " config.boot.commandLine; + inherit (config.boot) commandLineDtbNode; inherit (config.hardware) loadAddress entryPoint alignment; inherit (config.boot) imageFormat; inherit (o) kernel dtb;