ipxe: fix cross-compilation
Tested x86_64 -> arm64 cross compilation, and testing booting via ipxe on an arm64 device.
This commit is contained in:
parent
9f805950dc
commit
0a44f54695
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, lib, fetchFromGitHub, unstableGitUpdater
|
||||
{ stdenv, lib, fetchFromGitHub, unstableGitUpdater, buildPackages
|
||||
, gnu-efi, mtools, openssl, perl, xorriso, xz
|
||||
, syslinux ? null
|
||||
, embedScript ? null
|
||||
|
@ -32,6 +32,9 @@ stdenv.mkDerivation rec {
|
|||
version = "unstable-2022-04-06";
|
||||
|
||||
nativeBuildInputs = [ gnu-efi mtools openssl perl xorriso xz ] ++ lib.optional stdenv.hostPlatform.isx86 syslinux;
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ipxe";
|
||||
|
@ -51,6 +54,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
makeFlags =
|
||||
[ "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}";
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue