coreboot: add postCommands

master
Michele Guerini Rocco 2021-01-16 13:11:41 +01:00
parent 79657e20b3
commit 06f985b215
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
1 changed files with 7 additions and 4 deletions

View File

@ -4,10 +4,11 @@
, gnat, bison, flex, zlib, python3
, libfaketime, gnumake
# options
, rev # coreboot git revision
, sources # coreboot sources attrset
, arch ? "i386" # target architecture
, conf ? { } # coreboot configuration
, rev # coreboot git revision
, sources # coreboot sources attrset
, arch ? "i386" # target architecture
, conf ? { } # coreboot configuration
, postCommands ? "" # command to run after build
}:
let
@ -132,6 +133,8 @@ in rec {
"XGCCPATH=${toolchain}/bin/"
];
postBuild = postCommands;
installPhase = ''
install -Dm644 build/coreboot.rom $out/coreboot.rom
install -Dm644 .config $out/config