diff options
author | Mx Kookie <kookie@spacekookie.de> | 2021-01-01 00:55:51 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2021-01-01 00:55:51 +0100 |
commit | af8b681b5ef80871e6586061568b8ab8af2d85e3 (patch) | |
tree | 4f3d66f0afbea6c947cc4dff32fa4c25e70329d4 /infra/corenix/pkgs/coreboot-payload-seabios | |
parent | 51970440a767f3906bcb69cc3d00185391c5d595 (diff) | |
parent | 53a9f091f8cf9362a95c12130daa1f69ddff036c (diff) |
Add 'infra/corenix/' from commit '53a9f091f8cf9362a95c12130daa1f69ddff036c'
git-subtree-dir: infra/corenix
git-subtree-mainline: 51970440a767f3906bcb69cc3d00185391c5d595
git-subtree-split: 53a9f091f8cf9362a95c12130daa1f69ddff036c
Diffstat (limited to 'infra/corenix/pkgs/coreboot-payload-seabios')
-rw-r--r-- | infra/corenix/pkgs/coreboot-payload-seabios/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/infra/corenix/pkgs/coreboot-payload-seabios/default.nix b/infra/corenix/pkgs/coreboot-payload-seabios/default.nix new file mode 100644 index 000000000000..72a104e1b046 --- /dev/null +++ b/infra/corenix/pkgs/coreboot-payload-seabios/default.nix @@ -0,0 +1,20 @@ +{ seabios, coreboot, stdenv, fetchurl, seabiosConfig ? { + CONFIG_COREBOOT = "y"; + CONFIG_VGA_COREBOOT = "y"; + CONFIG_BUILD_VGABIOS = "y"; +} }: + +seabios.overrideAttrs (oA: rec { + pname = "coreboot-payload-seabios"; + + configurePhase = '' + runHook preConfigure + cp ${coreboot.writeConfig seabiosConfig} .config + make olddefconfig + runHook postConfigure + ''; + installPhase = '' + install -D out/bios.bin.elf -t $out + [ -f out/vgabios.bin ] && install -D out/vgabios.bin -t $out + ''; +}) |