mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
Merge pull request #1441 from gngram/pr__imx_atf_build_issue
[imx8mp-evk] fix firmware compilation issue
This commit is contained in:
commit
1fe3cc2bc5
1 changed files with 10 additions and 4 deletions
|
|
@ -25,10 +25,16 @@ in
|
||||||
sha256 = "sha256-96EddJXlFEkP/LIGVgNBvUP4IDI3BbDE/c9Yub22gnc=";
|
sha256 = "sha256-96EddJXlFEkP/LIGVgNBvUP4IDI3BbDE/c9Yub22gnc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraMakeFlags = lib.concatLists [
|
makeFlags = [
|
||||||
(lib.optional (lib.versionAtLeast pkgs.binutils.version "2.39") "LDFLAGS=--no-warn-rwx-segments")
|
"HOSTCC=$(CC_FOR_BUILD)"
|
||||||
["PLAT=${platform}" "bl31" "${opteedflag}"]
|
"M0_CROSS_COMPILE=arm-none-eabi-"
|
||||||
];
|
"CROSS_COMPILE=aarch64-unknown-linux-gnu-"
|
||||||
|
# binutils 2.39 regression
|
||||||
|
# `warning: /build/source/build/rk3399/release/bl31/bl31.elf has a LOAD segment with RWX permissions`
|
||||||
|
# See also: https://developer.trustedfirmware.org/T996
|
||||||
|
"LDFLAGS=-no-warn-rwx-segments"
|
||||||
|
"PLAT=${platform}" "bl31" "${opteedflag}"
|
||||||
|
];
|
||||||
|
|
||||||
filesToInstall = ["build/${target-board}/release/bl31.bin"];
|
filesToInstall = ["build/${target-board}/release/bl31.bin"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue