parent
cff03704dd
commit
8c5f8519ba
@ -0,0 +1,19 @@ |
||||
{ coreboot, lib, stdenv, writeText, coreinfoConfig ? {}, ... }: |
||||
|
||||
let |
||||
filteredConfig = lib.filterAttrs (n: v: v != null) coreinfoConfig; |
||||
lines = lib.mapAttrsToList (name: value: "${name}=${value}") filteredConfig; |
||||
configFile = writeText "config" (lib.concatStringsSep "\n" lines); |
||||
in stdenv.mkDerivation rec { |
||||
pname = "coreboot-payload-coreinfo"; |
||||
inherit (coreboot.drvAttrs) version src postPatch; |
||||
|
||||
preConfigure = "cd payloads/coreinfo"; |
||||
configurePhase = '' |
||||
runHook preConfigure |
||||
cp ${configFile} .config |
||||
make olddefconfig |
||||
runHook postConfigure |
||||
''; |
||||
installPhase = "install -D build/coreinfo.elf -t $out"; |
||||
} |
@ -0,0 +1,9 @@ |
||||
{ coreboot, stdenv, ... }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "coreboot-payload-nvramcui"; |
||||
inherit (coreboot.drvAttrs) version src postPatch; |
||||
|
||||
preConfigure = "cd payloads/nvramcui"; |
||||
installPhase = "install -D nvramcui.elf -t $out"; |
||||
} |
@ -0,0 +1,21 @@ |
||||
{ coreboot, stdenv, fetchurl, ... }: |
||||
|
||||
# the original tint does not support building as a coreboot payload |
||||
# the patches from the coreboot repo require building tint in-tree |
||||
# this makes everything a bit more complicated here |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "coreboot-payload-tint"; |
||||
version = "0.04+nmu1"; |
||||
inherit (coreboot.drvAttrs) src postPatch; |
||||
|
||||
preConfigure = "cd payloads/external/tint"; |
||||
preBuild = '' |
||||
tar -xf ${fetchurl { |
||||
url = "https://mirror.fsf.org/trisquel/pool/main/t/tint/tint_${version}.tar.gz"; |
||||
sha256 = "17gbga1lha9yp5hpyr5vn1sc93fx413cksxmpyl8zv3b5rjvzsy1"; |
||||
}} |
||||
mv tint{-${version},} |
||||
''; |
||||
installPhase = "install -D tint/tint.elf -t $out"; |
||||
} |
Loading…
Reference in new issue