[Skiboot] [PATCH] Support cross compiling on AArch64

Mahesh J Salgaonkar mahesh at linux.ibm.com
Wed Nov 19 19:56:03 AEDT 2025


On 2025-11-18 16:43:35 Tue, Nishaanth Joopelli wrote:
> Fixes unknown endian error when building skiboot.

Please add your Signed-off-by.

Thanks,
-Mahesh.

> ---
>  Makefile.main | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile.main b/Makefile.main
> index 5240d71b..f5564443 100644
> --- a/Makefile.main
> +++ b/Makefile.main
> @@ -51,7 +51,7 @@ endif
>  
>  # Host tools and options
>  HOSTCC=gcc
> -HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc64le/LITTLE/' -e 's/^ppc.*/BIG/' -e 's/^riscv.*/LITTLE/')
> +HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc64le/LITTLE/' -e 's/^ppc.*/BIG/' -e 's/^riscv.*/LITTLE/' -e 's/^aarch64.*/LITTLE/')
>  HOSTCFLAGS:=-O1 $(CWARNS) -DHAVE_$(HOSTEND)_ENDIAN -MMD
>  HOSTCFLAGS += $(call try-cflag,$(HOSTCC),-std=gnu11)
>  HOSTCFLAGS += $(call try-cflag,$(HOSTCC),-m64)
> -- 
> 2.50.0
> 
> _______________________________________________
> Skiboot mailing list
> Skiboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot

-- 
Mahesh J Salgaonkar


More information about the Skiboot mailing list