gnu-efi: Fix aarch64 cross-build
This commit is contained in:
parent
87270fb306
commit
0ac6d4aeb6
@ -38,7 +38,8 @@ rec {
|
|||||||
|
|
||||||
Kexecable = map (family: { kernel = kernels.linux; cpu.family = family; })
|
Kexecable = map (family: { kernel = kernels.linux; cpu.family = family; })
|
||||||
[ "x86" "arm" "aarch64" "mips" ];
|
[ "x86" "arm" "aarch64" "mips" ];
|
||||||
Efi = map (family: { cpu.family = family; }) [ "x86" "arm" ];
|
Efi = map (family: { cpu.family = family; })
|
||||||
|
[ "x86" "arm" "aarch64" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
matchAnyAttrs = patterns:
|
matchAnyAttrs = patterns:
|
||||||
|
@ -15,13 +15,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"PREFIX=\${out}"
|
"PREFIX=\${out}"
|
||||||
"CC=gcc"
|
"CC=${stdenv.cc.targetPrefix}gcc"
|
||||||
"AS=as"
|
"AS=${stdenv.cc.targetPrefix}as"
|
||||||
"LD=ld"
|
"LD=${stdenv.cc.targetPrefix}ld"
|
||||||
"AR=ar"
|
"AR=${stdenv.cc.targetPrefix}ar"
|
||||||
"RANLIB=ranlib"
|
"RANLIB=${stdenv.cc.targetPrefix}ranlib"
|
||||||
"OBJCOPY=objcopy"
|
"OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
|
||||||
] ++ stdenv.lib.optional stdenv.isArm "ARCH=arm";
|
] ++ stdenv.lib.optional stdenv.isArm "ARCH=arm"
|
||||||
|
++ stdenv.lib.optional stdenv.isAarch64 "ARCH=aarch64";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "GNU EFI development toolchain";
|
description = "GNU EFI development toolchain";
|
||||||
|
Loading…
Reference in New Issue
Block a user