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

Thiago Jung Bauermann bauerman at linux.ibm.com
Sat Jan 25 10:06:40 AEDT 2020


Hello Nick,

Nicholas Piggin <npiggin at gmail.com> writes:

> 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- ?

It's 100%

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

Good point. I just sent a v2 with that change.

-- 
Thiago Jung Bauermann
IBM Linux Technology Center


More information about the Skiboot mailing list