From cf4dfeca3645fb3f43785536deaa2cc8643b0e48 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 29 Apr 2020 11:37:02 +1000 Subject: [PATCH] Change the default cross compiler prefix to powerpc64le-linux-gnu- That is what is used by the packaged cross-compilers on (at least) Fedora and Ubuntu. Signed-off-by: Paul Mackerras --- README.md | 5 ++++- hello_world/Makefile | 2 +- rust_lib_demo/Makefile | 2 +- tests/Makefile.test | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8bf4622..98f2140 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,10 @@ You can try out Microwatt/Micropython without hardware by using the ghdl simulat - Build micropython. If you aren't building on a ppc64le box you will need a cross compiler. If it isn't available on your distro - grab the powerpc64le-power8 toolchain from https://toolchains.bootlin.com + grab the powerpc64le-power8 toolchain from https://toolchains.bootlin.com. + You may need to set the CROSS_COMPILE environment variable + to the prefix used for your cross compilers. The default is + powerpc64le-linux-gnu-. ``` git clone https://github.com/micropython/micropython.git diff --git a/hello_world/Makefile b/hello_world/Makefile index 674095e..a609199 100644 --- a/hello_world/Makefile +++ b/hello_world/Makefile @@ -1,7 +1,7 @@ ARCH = $(shell uname -m) ifneq ("$(ARCH)", "ppc64") ifneq ("$(ARCH)", "ppc64le") - CROSS_COMPILE ?= powerpc64le-linux- + CROSS_COMPILE ?= powerpc64le-linux-gnu- endif endif diff --git a/rust_lib_demo/Makefile b/rust_lib_demo/Makefile index 26aebf8..fdbb18b 100644 --- a/rust_lib_demo/Makefile +++ b/rust_lib_demo/Makefile @@ -1,7 +1,7 @@ ARCH = $(shell uname -m) ifneq ("$(ARCH)", "ppc64") ifneq ("$(ARCH)", "ppc64le") - CROSS_COMPILE ?= powerpc64le-linux- + CROSS_COMPILE ?= powerpc64le-linux-gnu- endif endif diff --git a/tests/Makefile.test b/tests/Makefile.test index 9676370..250135d 100644 --- a/tests/Makefile.test +++ b/tests/Makefile.test @@ -1,7 +1,7 @@ ARCH = $(shell uname -m) ifneq ("$(ARCH)", "ppc64") ifneq ("$(ARCH)", "ppc64le") - CROSS_COMPILE ?= powerpc64le-linux- + CROSS_COMPILE ?= powerpc64le-linux-gnu- endif endif -- 2.30.2