util: Add some settings files for build_cross_gcc.
authorGabe Black <gabeblack@google.com>
Sun, 15 Mar 2020 10:22:22 +0000 (03:22 -0700)
committerGabe Black <gabeblack@google.com>
Sat, 21 Mar 2020 06:24:31 +0000 (06:24 +0000)
These files have settings for 32 and 64 bit ARM, MIPS, POWER, RISCV, and
SPARC. When used with the versions of toolchain components below, they
all generate working hello world binaries.

binutils-2.34
gcc-9.3.0
glibc-2.31
linux-5.5.9
gdb-9.1

The script was unable to install the c++ standard headers (step 8)
because a constant was not found when building one of the sanitizers. I
don't know exactly why this happens, but I suspect it's independent of
the build process.

Change-Id: I9f0068b77edf338ed63b95f007454c07651aa42a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26764
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
util/build_cross_gcc/settings.aarch64 [new file with mode: 0644]
util/build_cross_gcc/settings.arm [new file with mode: 0644]
util/build_cross_gcc/settings.mips [new file with mode: 0644]
util/build_cross_gcc/settings.power [new file with mode: 0644]
util/build_cross_gcc/settings.riscv [new file with mode: 0644]
util/build_cross_gcc/settings.sparc [new file with mode: 0644]

diff --git a/util/build_cross_gcc/settings.aarch64 b/util/build_cross_gcc/settings.aarch64
new file mode 100644 (file)
index 0000000..d2b21f6
--- /dev/null
@@ -0,0 +1,2 @@
+TARGET=aarch64-linux-gnu
+LINUX_ARCH=arm64
diff --git a/util/build_cross_gcc/settings.arm b/util/build_cross_gcc/settings.arm
new file mode 100644 (file)
index 0000000..7f3eff3
--- /dev/null
@@ -0,0 +1,2 @@
+TARGET=arm-linux-gnueabihf
+LINUX_ARCH=arm
diff --git a/util/build_cross_gcc/settings.mips b/util/build_cross_gcc/settings.mips
new file mode 100644 (file)
index 0000000..c29e4ad
--- /dev/null
@@ -0,0 +1,2 @@
+TARGET=mipsel-linux-gnu
+LINUX_ARCH=mips
diff --git a/util/build_cross_gcc/settings.power b/util/build_cross_gcc/settings.power
new file mode 100644 (file)
index 0000000..998a2bc
--- /dev/null
@@ -0,0 +1,2 @@
+TARGET=powerpc-linux-gnu
+LINUX_ARCH=powerpc
diff --git a/util/build_cross_gcc/settings.riscv b/util/build_cross_gcc/settings.riscv
new file mode 100644 (file)
index 0000000..d1910e8
--- /dev/null
@@ -0,0 +1,2 @@
+TARGET=riscv64-linux-gnu
+LINUX_ARCH=riscv
diff --git a/util/build_cross_gcc/settings.sparc b/util/build_cross_gcc/settings.sparc
new file mode 100644 (file)
index 0000000..cc96530
--- /dev/null
@@ -0,0 +1,2 @@
+TARGET=sparc64-linux-gnu
+LINUX_ARCH=sparc