arm-trusted-firmware: tell Makefile abt arm-embedded's targetPrefix

Some of the firmware requires an arm-embedded toolchain to be in PATH.
The Makefile offers a similar mechanism to CROSS_COMPILE for letting it
know what naming scheme is used for the accompanying tools.
This commit is contained in:
sternenseemann 2023-08-08 01:40:16 +02:00
parent 2fa0422405
commit 994fcd68b9

View file

@ -53,6 +53,7 @@ let
makeFlags = [
"HOSTCC=$(CC_FOR_BUILD)"
"M0_CROSS_COMPILE=${pkgsCross.arm-embedded.stdenv.cc.targetPrefix}"
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
# binutils 2.39 regression
# `warning: /build/source/build/rk3399/release/bl31/bl31.elf has a LOAD segment with RWX permissions`