ipxe: fix cross-compilation

Tested x86_64 -> arm64 cross compilation, and testing booting via ipxe
on an arm64 device.
This commit is contained in:
Daniel Fullmer 2022-07-19 13:28:45 -07:00
parent 9f805950dc
commit 0a44f54695

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, unstableGitUpdater { stdenv, lib, fetchFromGitHub, unstableGitUpdater, buildPackages
, gnu-efi, mtools, openssl, perl, xorriso, xz , gnu-efi, mtools, openssl, perl, xorriso, xz
, syslinux ? null , syslinux ? null
, embedScript ? null , embedScript ? null
@ -32,6 +32,9 @@ stdenv.mkDerivation rec {
version = "unstable-2022-04-06"; version = "unstable-2022-04-06";
nativeBuildInputs = [ gnu-efi mtools openssl perl xorriso xz ] ++ lib.optional stdenv.hostPlatform.isx86 syslinux; nativeBuildInputs = [ gnu-efi mtools openssl perl xorriso xz ] ++ lib.optional stdenv.hostPlatform.isx86 syslinux;
depsBuildBuild = [ buildPackages.stdenv.cc ];
strictDeps = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ipxe"; owner = "ipxe";
@ -51,6 +54,7 @@ stdenv.mkDerivation rec {
makeFlags = makeFlags =
[ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here. [ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here.
"CROSS=${stdenv.cc.targetPrefix}"
] ++ lib.optional (embedScript != null) "EMBED=${embedScript}"; ] ++ lib.optional (embedScript != null) "EMBED=${embedScript}";