[Skiboot] [PATCH] Makefile: Search for distro-provided cross-compiler

Nicholas Piggin npiggin at gmail.com
Fri Jan 24 14:16:34 AEDT 2020


Thiago Jung Bauermann's on January 15, 2020 4:07 am:
> Search for powerpc64-linux-gcc in PATH and if not found, also search for
> powerpc64-linux-gnu-gcc. The latter can be installed from official distro
> packages by at least Debian, Fedora and Ubuntu.
> 
> Signed-off-by: Thiago Jung Bauermann <bauerman at linux.ibm.com>
> ---
>  Makefile | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index f938a062..3b1f36a0 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -16,8 +16,13 @@ ifdef CROSS_COMPILE
>  endif
>  ifneq ("$(ARCH)", "ppc64")
>  ifneq ("$(ARCH)", "ppc64le")
> +ifneq ($(shell which powerpc64-linux-gcc 2> /dev/null),)
>  	CROSS ?= powerpc64-linux-
>  endif
> +ifneq ($(shell which powerpc64-linux-gnu-gcc 2> /dev/null),)
> +	CROSS ?= powerpc64-linux-gnu-
> +endif
> +endif
>  endif

What's the chances you could also test powerpc64le-linux- ?

LE compilers can nowadays build BE skiboot (and Linux), so I tend not
to install the BE cross compiler.

Thanks,
Nick


More information about the Skiboot mailing list