Browse Source

coreboot 4.14 (some payloads are broken)

main
Milan 5 months ago
parent
commit
80a43117cc
Signed by: petabyteboy GPG Key ID: A6DC6A7CB0B97859
  1. 6
      configs/milan/common.nix
  2. 16
      pkgs/coreboot/default.nix
  3. 44
      pkgs/coreboot/files.nix

6
configs/milan/common.nix

@ -8,7 +8,7 @@
seabios.enable = true;
seabios.asSecondaryPayload = true;
tianocore.asSecondaryPayload = true;
coreinfo.enable = true;
nvramcui.enable = true;
tint.enable = true;
#coreinfo.enable = true;
#nvramcui.enable = true;
#tint.enable = true;
}

16
pkgs/coreboot/default.nix

@ -10,9 +10,15 @@ let
buildPhase = ''
mkdir -p util/crossgcc/tarballs
${lib.concatMapStringsSep "\n"
(file: "ln -s ${file.archive} util/crossgcc/tarballs/${file.name}")
(callPackage ./files.nix { })}
${lib.concatMapStringsSep "\n" (
file: "ln -s ${file.archive} util/crossgcc/tarballs/${file.name}"
) (
callPackage ./files.nix { }
)}
# nasm doesn't like the date set by coreboot
sed "s/SOURCE_DATE_EPOCH := .*/SOURCE_DATE_EPOCH := $SOURCE_DATE_EPOCH/" -i Makefile
make crossgcc-i386 CPUS=$NIX_BUILD_CORES
'';
@ -30,12 +36,12 @@ let
coreboot = stdenv.mkDerivation rec {
pname = "coreboot";
version = "4.13";
version = "4.14";
src = fetchgit {
url = "https://review.coreboot.org/coreboot.git";
rev = version;
sha256 = "sha256-O5udH6RAfs5IPqzvluXAApU7TDow39aOEewL5+nln3c=";
sha256 = "sha256-tWvNeZbZza20P0Z/EtOluBgE4zoLqaBwzklOwDw5uQM=";
fetchSubmodules = true;
};

44
pkgs/coreboot/files.nix

@ -28,10 +28,10 @@
};
}
{
name = "binutils-2.35.tar.xz";
name = "binutils-2.35.1.tar.xz";
archive = fetchurl {
sha256 = "119g6340ksv1jkg6bwaxdp2whhlly22l9m30nj6y284ynjgna48v";
url = "https://ftpmirror.gnu.org/binutils/binutils-2.35.tar.xz";
sha256 = "01w6xvfy7sjpw8j08k111bnkl27j760bdsi0wjvq44ghkgdr3v9w";
url = "https://ftpmirror.gnu.org/binutils/binutils-2.35.1.tar.xz";
};
}
{
@ -42,10 +42,10 @@
};
}
{
name = "acpica-unix2-20200717.tar.gz";
name = "acpica-unix2-20200925.tar.gz";
archive = fetchurl {
sha256 = "0jyy71szjr40c8v40qqw6yh3gfk8d6sl3nay69zrn5d88i3r0jca";
url = "https://acpica.org/sites/acpica/files/acpica-unix2-20200717.tar.gz";
sha256 = "18n6129fkgj85piid7v4zxxksv3h0amqp4p977vcl9xg3bq0zd2w";
url = "https://acpica.org/sites/acpica/files/acpica-unix2-20200925.tar.gz";
};
}
{
@ -59,35 +59,35 @@
name = "expat-2.2.9.tar.bz2";
archive = fetchurl {
sha256 = "0dx2m58gkj7cadk51lmp54ma7cqjhff4kjmwv8ks80j3vj2301pi";
url = "https://downloads.sourceforge.net/sourceforge/expat/expat-2.2.9.tar.bz2";
url = "https://downloads.sourceforge.net/sourceforge/expat/expat-2.2.9-RENAMED-VULNERABLE-PLEASE-USE-2.4.1-INSTEAD.tar.bz2";
};
}
{
name = "llvm-10.0.1.src.tar.xz";
name = "llvm-11.0.0.src.tar.xz";
archive = fetchurl {
sha256 = "1wydhbp9kyjp5y0rc627imxgkgqiv3dfirbqil9dgpnbaw5y7n65";
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/llvm-10.0.1.src.tar.xz";
sha256 = "0s94lwil98w7zb7cjrbnxli0z7gklb312pkw74xs1d6zk346hgwi";
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/llvm-11.0.0.src.tar.xz";
};
}
{
name = "clang-10.0.1.src.tar.xz";
name = "clang-11.0.0.src.tar.xz";
archive = fetchurl {
sha256 = "091bvcny2lh32zy8f3m9viayyhb2zannrndni7325rl85cwgr6pr";
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/clang-10.0.1.src.tar.xz";
sha256 = "02ajkij85966vd150iy246mv16dsaph1kfi0y8wnncp8w6nar5hg";
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/clang-11.0.0.src.tar.xz";
};
}
{
name = "compiler-rt-10.0.1.src.tar.xz";
name = "compiler-rt-11.0.0.src.tar.xz";
archive = fetchurl {
sha256 = "1yjqjri753w0fzmxcyz687nvd97sbc9rsqrxzpq720na47hwh3fr";
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/compiler-rt-10.0.1.src.tar.xz";
sha256 = "0d5j5l8phwqjjscmk8rmqn0i2i0abl537gdbkagl8fjpzy1gyjip";
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/compiler-rt-11.0.0.src.tar.xz";
};
}
{
name = "clang-tools-extra-10.0.1.src.tar.xz";
name = "clang-tools-extra-11.0.0.src.tar.xz";
archive = fetchurl {
sha256 = "06n1yp638rh24xdxv9v2df0qajxbjz4w59b7dd4ky36drwmpi4yh";
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/clang-tools-extra-10.0.1.src.tar.xz";
sha256 = "02bcwwn54661madhq4nxc069s7p7pj5gpqi8ww50w3anbpviilzy";
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/clang-tools-extra-11.0.0.src.tar.xz";
};
}
{
@ -98,10 +98,10 @@
};
}
{
name = "nasm-2.15.03.tar.bz2";
name = "nasm-2.15.05.tar.bz2";
archive = fetchurl {
sha256 = "0y6p3d5lhmwzvgi85f00sz6c485ir33zd1nskzxby4pikcyk9rq4";
url = "https://www.nasm.us/pub/nasm/releasebuilds/2.15.03/nasm-2.15.03.tar.bz2";
sha256 = "1l1gxs5ncdbgz91lsl4y7w5aapask3w02q9inayb2m5bwlwq6jrw";
url = "https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.bz2";
};
}
]

Loading…
Cancel
Save