[Sound-open-firmware] [PATCH 2/2] scripts: xtensa-build-all.sh: Support BXT/APL compiler alias

Pan, Xiuli xiuli.pan at linux.intel.com
Mon Jun 18 12:53:17 CEST 2018



On 6/14/2018 23:34, Liam Girdwood wrote:
> BXT/APL compiler is the same but can be have either apl or bxt suffix.
>
> Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
> ---
>   scripts/xtensa-build-all.sh | 7 ++++++-
>   1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/xtensa-build-all.sh b/scripts/xtensa-build-all.sh
> index d873d7e..62b94b2 100755
> --- a/scripts/xtensa-build-all.sh
> +++ b/scripts/xtensa-build-all.sh
> @@ -96,7 +96,12 @@ do
>   		PLATFORM="apollolake"
>   		XTENSA_CORE="X4H3I16w2D48w3a_2017_8"
>   		ROOT="$pwd/../xtensa-root/xtensa-bxt-elf"
> -		HOST="xtensa-bxt-elf"
> +		if [ -x xtensa-bxt-elf-gcc ]
This -x could  not work on my machine.
Even if I try to -x with vim or bash that was in /usr/bin this could not 
return true, I think we need find some alternative method to check if we 
have these compilers.

Thanks
Xiuli
> +		then
> +			HOST="xtensa-bxt-elf"
> +		else
> +			HOST="xtensa-apl-elf"
> +		fi
>   		XTENSA_TOOLS_VERSION="RG-2017.8-linux"
>   	fi
>   	if [ $j == "cnl" ]



More information about the Sound-open-firmware mailing list