diff --git a/scripts/functions b/scripts/functions index 46955a8f..2f15e3c8 100644 --- a/scripts/functions +++ b/scripts/functions @@ -950,13 +950,15 @@ CT_DoConfigSub() { # sample saving sequence. CT_DoBuildTargetTuple() { # Set the endianness suffix, and the default endianness gcc option - case "${CT_ARCH_BE},${CT_ARCH_LE}" in - y,) target_endian_eb=eb + case "${CT_ARCH_ENDIAN}" in + big) + target_endian_eb=eb target_endian_el= CT_ARCH_ENDIAN_CFLAG="-mbig-endian" CT_ARCH_ENDIAN_LDFLAG="-EB" ;; - ,y) target_endian_eb= + little) + target_endian_eb= target_endian_el=el CT_ARCH_ENDIAN_CFLAG="-mlittle-endian" CT_ARCH_ENDIAN_LDFLAG="-EL"