make loadAddress and entryPoint device configuration

... already having second thoughts about loadAddress
This commit is contained in:
Daniel Barlow
2023-02-10 18:20:01 +00:00
parent 8cead61740
commit 0a06319d0c
6 changed files with 27 additions and 22 deletions

View File

@@ -45,7 +45,7 @@ let
};
uimage = (callPackage ./kernel/uimage.nix {}) {
commandLine = concatStringsSep " " config.boot.commandLine;
inherit (device.boot) loadAddress entryPoint;
inherit (config.device) loadAddress entryPoint;
inherit kernel;
inherit dtb;
};
@@ -80,8 +80,9 @@ let
ln -s ${manifest} manifest
ln -s ${kernel.headers} build
'' +
(if device ? boot then ''
ln -s ${uimage} uimage
(if config.device.loadAddress != null then
''
ln -s {uimage} uimage
${if phram then "ln -s ${boot-scr} boot.scr" else ""}
ln -s ${boot-scr} flash.scr
'' else ""));