gnu-efi: Only build on efi-enabled systems
This commit is contained in:
parent
09e57636f8
commit
87270fb306
@ -38,6 +38,7 @@ 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" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
matchAnyAttrs = patterns:
|
matchAnyAttrs = patterns:
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
, ninja, meson, python3Packages, glibcLocales
|
, ninja, meson, python3Packages, glibcLocales
|
||||||
, patchelf
|
, patchelf
|
||||||
, getent
|
, getent
|
||||||
|
, hostPlatform
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
@ -71,10 +72,10 @@ in
|
|||||||
"-Dsystem-gid-max=499"
|
"-Dsystem-gid-max=499"
|
||||||
# "-Dtime-epoch=1"
|
# "-Dtime-epoch=1"
|
||||||
|
|
||||||
(if stdenv.isArm then "-Dgnu-efi=false" else "-Dgnu-efi=true")
|
(if stdenv.isArm || !hostPlatform.isEfi then "-Dgnu-efi=false" else "-Dgnu-efi=true")
|
||||||
"-Defi-libdir=${gnu-efi}/lib"
|
"-Defi-libdir=${toString gnu-efi}/lib"
|
||||||
"-Defi-includedir=${gnu-efi}/include/efi"
|
"-Defi-includedir=${toString gnu-efi}/include/efi"
|
||||||
"-Defi-ldsdir=${gnu-efi}/lib"
|
"-Defi-ldsdir=${toString gnu-efi}/lib"
|
||||||
|
|
||||||
"-Dsysvinit-path="
|
"-Dsysvinit-path="
|
||||||
"-Dsysvrcnd-path="
|
"-Dsysvrcnd-path="
|
||||||
|
@ -8995,7 +8995,9 @@ with pkgs;
|
|||||||
|
|
||||||
gnu-config = callPackage ../development/libraries/gnu-config { };
|
gnu-config = callPackage ../development/libraries/gnu-config { };
|
||||||
|
|
||||||
gnu-efi = callPackage ../development/libraries/gnu-efi { };
|
gnu-efi = if hostPlatform.isEfi
|
||||||
|
then callPackage ../development/libraries/gnu-efi { }
|
||||||
|
else null;
|
||||||
|
|
||||||
gnutls = callPackage
|
gnutls = callPackage
|
||||||
(if stdenv.isDarwin
|
(if stdenv.isDarwin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user