forked from DGNum/liminix
devices/zyxel-nwa50ax: expose primary and secondary images
To support A/B a bit better. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
985f982435
commit
d6ffdd7be6
6 changed files with 176 additions and 20 deletions
|
@ -63,6 +63,10 @@ in {
|
|||
default = "bootargs";
|
||||
description = "Kernel command line's devicetree node";
|
||||
};
|
||||
imageType = mkOption {
|
||||
type = types.enum [ "primary" "secondary" ];
|
||||
default = "primary";
|
||||
};
|
||||
imageFormat = mkOption {
|
||||
type = types.enum ["fit" "uimage"];
|
||||
default = "uimage";
|
||||
|
|
|
@ -62,7 +62,7 @@ on a system with pre-existing firmware and OS.
|
|||
};
|
||||
'';
|
||||
in
|
||||
pkgs.runCommand "zyxel-nwa-fit" {
|
||||
pkgs.runCommand "zyxel-nwa-fit-${config.boot.imageType}" {
|
||||
nativeBuildInputs = [ pkgs.pkgsBuildBuild.ubootTools pkgs.pkgsBuildBuild.dtc ];
|
||||
} ''
|
||||
mkimage -f ${dts} $out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue