Merge pull request #187068 from blitz/coreboot-toolchain

coreboot-toolchain: partially unbreak by making Ada support optional
This commit is contained in:
Jacek Galowicz 2022-08-24 11:21:08 +02:00 committed by GitHub
commit 68cd1f20e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,10 +9,12 @@ let
, getopt
, git
, gnat11
, gcc
, lib
, perl
, stdenvNoCC
, zlib
, withAda ? true
}:
stdenvNoCC.mkDerivation rec {
@ -33,14 +35,14 @@ let
};
nativeBuildInputs = [ bison curl git perl ];
buildInputs = [ flex gnat11 zlib ];
buildInputs = [ flex zlib (if withAda then gnat11 else gcc) ];
enableParallelBuilding = true;
dontConfigure = true;
dontInstall = true;
postPatch = ''
patchShebangs $out/util/crossgcc/buildgcc
patchShebangs util/crossgcc/buildgcc
mkdir -p util/crossgcc/tarballs