arm-trusted-firmware.armTrustedFirmwareTools: remove CC_FOR_BUILD
As explained in the new comment, we trick the build system here to build its build tools for the host platform. To make this even more foolproof / reliable, stop adding CC_FOR_BUILD to the environment, so there can be no mix up.
This commit is contained in:
parent
994fcd68b9
commit
b1981b02e1
|
@ -89,6 +89,11 @@ in {
|
|||
inherit buildArmTrustedFirmware;
|
||||
|
||||
armTrustedFirmwareTools = buildArmTrustedFirmware rec {
|
||||
# Normally, arm-trusted-firmware builds the build tools for buildPlatform
|
||||
# using CC_FOR_BUILD (or as it calls it HOSTCC). Since want to build them
|
||||
# for the hostPlatform here, we trick it by overriding the HOSTCC setting
|
||||
# and, to be safe, remove CC_FOR_BUILD from the environment.
|
||||
depsBuildBuild = [ ];
|
||||
extraMakeFlags = [
|
||||
"HOSTCC=${stdenv.cc.targetPrefix}gcc"
|
||||
"fiptool" "certtool"
|
||||
|
|
Loading…
Reference in a new issue