uimage.nix (686B)
1 { 2 config, 3 pkgs, 4 lib, 5 ... 6 }: 7 let 8 inherit (lib) mkOption types concatStringsSep; 9 inherit (pkgs) liminix writeText; 10 o = config.system.outputs; 11 in 12 { 13 options.system.outputs.uimage = mkOption { 14 type = types.package; 15 internal = true; 16 description = '' 17 uimage 18 ****** 19 20 Combined kernel and FDT in uImage (U-Boot compatible) format 21 ''; 22 }; 23 config.system.outputs.uimage = liminix.builders.uimage { 24 commandLine = concatStringsSep " " config.boot.commandLine; 25 inherit (config.boot) commandLineDtbNode; 26 inherit (config.hardware) loadAddress entryPoint alignment; 27 inherit (config.boot) imageFormat; 28 inherit (o) kernel dtb; 29 }; 30 }