gnu-efi: Fix aarch64 cross-build

This commit is contained in:
Shea Levy 2018-02-24 22:15:48 -05:00
parent 87270fb306
commit 0ac6d4aeb6
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
2 changed files with 10 additions and 8 deletions

View File

@ -38,7 +38,8 @@ rec {
Kexecable = map (family: { kernel = kernels.linux; cpu.family = family; })
[ "x86" "arm" "aarch64" "mips" ];
Efi = map (family: { cpu.family = family; }) [ "x86" "arm" ];
Efi = map (family: { cpu.family = family; })
[ "x86" "arm" "aarch64" ];
};
matchAnyAttrs = patterns:

View File

@ -15,13 +15,14 @@ stdenv.mkDerivation rec {
makeFlags = [
"PREFIX=\${out}"
"CC=gcc"
"AS=as"
"LD=ld"
"AR=ar"
"RANLIB=ranlib"
"OBJCOPY=objcopy"
] ++ stdenv.lib.optional stdenv.isArm "ARCH=arm";
"CC=${stdenv.cc.targetPrefix}gcc"
"AS=${stdenv.cc.targetPrefix}as"
"LD=${stdenv.cc.targetPrefix}ld"
"AR=${stdenv.cc.targetPrefix}ar"
"RANLIB=${stdenv.cc.targetPrefix}ranlib"
"OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
] ++ stdenv.lib.optional stdenv.isArm "ARCH=arm"
++ stdenv.lib.optional stdenv.isAarch64 "ARCH=aarch64";
meta = with stdenv.lib; {
description = "GNU EFI development toolchain";