[PATCH] 6: Add unstable RTEMS 6 tool chain

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jan 4 14:07:33 UTC 2019


---
 rtems/config/6/rtems-aarch64.bset                 |  4 ++++
 rtems/config/6/rtems-all.bset                     | 19 +++++++++++++++++
 rtems/config/6/rtems-arm.bset                     |  4 ++++
 rtems/config/6/rtems-autotools-base.bset          |  9 ++++++++
 rtems/config/6/rtems-autotools-internal.bset      | 11 ++++++++++
 rtems/config/6/rtems-autotools.bset               | 25 +++++++++++++++++++++++
 rtems/config/6/rtems-base.bset                    |  5 +++++
 rtems/config/6/rtems-bfin.bset                    |  3 +++
 rtems/config/6/rtems-default.bset                 | 15 ++++++++++++++
 rtems/config/6/rtems-epiphany.bset                | 17 +++++++++++++++
 rtems/config/6/rtems-i386.bset                    |  4 ++++
 rtems/config/6/rtems-lm32.bset                    |  3 +++
 rtems/config/6/rtems-m68k.bset                    |  3 +++
 rtems/config/6/rtems-microblaze.bset              |  3 +++
 rtems/config/6/rtems-mips.bset                    |  6 ++++++
 rtems/config/6/rtems-moxie.bset                   |  6 ++++++
 rtems/config/6/rtems-nios2.bset                   |  3 +++
 rtems/config/6/rtems-or1k.bset                    |  3 +++
 rtems/config/6/rtems-powerpc.bset                 |  4 ++++
 rtems/config/6/rtems-riscv.bset                   |  4 ++++
 rtems/config/6/rtems-sh.bset                      |  3 +++
 rtems/config/6/rtems-sparc.bset                   |  4 ++++
 rtems/config/6/rtems-sparc64.bset                 |  3 +++
 rtems/config/6/rtems-v850.bset                    |  3 +++
 rtems/config/6/rtems-x86_64.bset                  |  4 ++++
 rtems/config/tools/rtems-binutils-head.cfg        | 13 ++++++++++++
 rtems/config/tools/rtems-gcc-head-newlib-head.cfg | 20 ++++++++++++++++++
 rtems/config/tools/rtems-gdb-head.cfg             | 10 +++++++++
 rtems/config/tools/rtems-mipstx39-gdb-head.cfg    |  3 +++
 29 files changed, 214 insertions(+)
 create mode 100644 rtems/config/6/rtems-aarch64.bset
 create mode 100644 rtems/config/6/rtems-all.bset
 create mode 100644 rtems/config/6/rtems-arm.bset
 create mode 100644 rtems/config/6/rtems-autotools-base.bset
 create mode 100644 rtems/config/6/rtems-autotools-internal.bset
 create mode 100644 rtems/config/6/rtems-autotools.bset
 create mode 100644 rtems/config/6/rtems-base.bset
 create mode 100644 rtems/config/6/rtems-bfin.bset
 create mode 100644 rtems/config/6/rtems-default.bset
 create mode 100644 rtems/config/6/rtems-epiphany.bset
 create mode 100644 rtems/config/6/rtems-i386.bset
 create mode 100644 rtems/config/6/rtems-lm32.bset
 create mode 100644 rtems/config/6/rtems-m68k.bset
 create mode 100644 rtems/config/6/rtems-microblaze.bset
 create mode 100644 rtems/config/6/rtems-mips.bset
 create mode 100644 rtems/config/6/rtems-moxie.bset
 create mode 100644 rtems/config/6/rtems-nios2.bset
 create mode 100644 rtems/config/6/rtems-or1k.bset
 create mode 100644 rtems/config/6/rtems-powerpc.bset
 create mode 100644 rtems/config/6/rtems-riscv.bset
 create mode 100644 rtems/config/6/rtems-sh.bset
 create mode 100644 rtems/config/6/rtems-sparc.bset
 create mode 100644 rtems/config/6/rtems-sparc64.bset
 create mode 100644 rtems/config/6/rtems-v850.bset
 create mode 100644 rtems/config/6/rtems-x86_64.bset
 create mode 100644 rtems/config/tools/rtems-binutils-head.cfg
 create mode 100644 rtems/config/tools/rtems-gcc-head-newlib-head.cfg
 create mode 100644 rtems/config/tools/rtems-gdb-head.cfg
 create mode 100644 rtems/config/tools/rtems-mipstx39-gdb-head.cfg

diff --git a/rtems/config/6/rtems-aarch64.bset b/rtems/config/6/rtems-aarch64.bset
new file mode 100644
index 0000000..e3c91af
--- /dev/null
+++ b/rtems/config/6/rtems-aarch64.bset
@@ -0,0 +1,4 @@
+%define release 1
+%define rtems_arch aarch64
+%define with_libgomp
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-all.bset b/rtems/config/6/rtems-all.bset
new file mode 100644
index 0000000..8f020f9
--- /dev/null
+++ b/rtems/config/6/rtems-all.bset
@@ -0,0 +1,19 @@
+6/rtems-aarch64
+6/rtems-arm
+6/rtems-bfin
+6/rtems-epiphany
+6/rtems-i386
+6/rtems-lm32
+6/rtems-m68k
+6/rtems-microblaze
+6/rtems-mips
+6/rtems-moxie
+6/rtems-nios2
+6/rtems-or1k
+6/rtems-powerpc
+6/rtems-riscv
+6/rtems-sh
+6/rtems-sparc
+6/rtems-sparc64
+6/rtems-v850
+6/rtems-x86_64
diff --git a/rtems/config/6/rtems-arm.bset b/rtems/config/6/rtems-arm.bset
new file mode 100644
index 0000000..425d66b
--- /dev/null
+++ b/rtems/config/6/rtems-arm.bset
@@ -0,0 +1,4 @@
+%define release 1
+%define rtems_arch arm
+%define with_libgomp
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-autotools-base.bset b/rtems/config/6/rtems-autotools-base.bset
new file mode 100644
index 0000000..c6819c1
--- /dev/null
+++ b/rtems/config/6/rtems-autotools-base.bset
@@ -0,0 +1,9 @@
+%define release 1
+%define rtems_arch none
+
+%include 6/rtems-base.bset
+
+package: rtems-%{rtems_version}-autotools-%{_host}-%{release}
+
+tools/rtems-autoconf-2.69-1
+tools/rtems-automake-1.12.6-1
diff --git a/rtems/config/6/rtems-autotools-internal.bset b/rtems/config/6/rtems-autotools-internal.bset
new file mode 100644
index 0000000..19d2f19
--- /dev/null
+++ b/rtems/config/6/rtems-autotools-internal.bset
@@ -0,0 +1,11 @@
+#
+# Do not use via the command line.
+#
+
+%define _internal_autotools yes
+%define _disable_collecting yes
+%define _disable_packaging  yes
+%define _disable_reporting  yes
+%define _disable_installing yes
+
+%include 6/rtems-autotools-base.bset
diff --git a/rtems/config/6/rtems-autotools.bset b/rtems/config/6/rtems-autotools.bset
new file mode 100644
index 0000000..e57d25d
--- /dev/null
+++ b/rtems/config/6/rtems-autotools.bset
@@ -0,0 +1,25 @@
+#
+# Autoconf and automake are not relocatable and cannot be cross-compiled.
+# RTEMS uses autoconf and automake and building RTEMS in the RSB requires
+# bootstrapping and this requires a current autoconf and automake. The RSB
+# provides to support by:
+#
+#  1. Building and installing autoconf and automake with a prefix to a
+#     temporary internal path.
+#  2. Using the temporary internal build, build and install another copy
+#     using the final prefix location.
+#
+
+#
+# A magic internal path that would break if changes in the defaults.mc
+# macro file are made.
+#
+%define _internal_autotools_path %{_tmppath}/sb-%{_uid}/${SB_PREFIX_CLEAN}
+
+#
+# Disable emailing reports of this building for RTEMS.
+#
+%define mail_disable
+
+6/rtems-autotools-internal
+6/rtems-autotools-base
diff --git a/rtems/config/6/rtems-base.bset b/rtems/config/6/rtems-base.bset
new file mode 100644
index 0000000..7802968
--- /dev/null
+++ b/rtems/config/6/rtems-base.bset
@@ -0,0 +1,5 @@
+%define rtems_version 6
+%define _target %{rtems_arch}-rtems%{rtems_version}
+%define gcc_version_message RTEMS %{rtems_version}, RSB %{_sbgit_id}, Newlib %{newlib_version}
+
+package: rtems-%{rtems_version}-%{_target}-%{_host}-%{release}
diff --git a/rtems/config/6/rtems-bfin.bset b/rtems/config/6/rtems-bfin.bset
new file mode 100644
index 0000000..12a215e
--- /dev/null
+++ b/rtems/config/6/rtems-bfin.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch bfin
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-default.bset b/rtems/config/6/rtems-default.bset
new file mode 100644
index 0000000..31ce3aa
--- /dev/null
+++ b/rtems/config/6/rtems-default.bset
@@ -0,0 +1,15 @@
+%include 6/rtems-base.bset
+
+6/rtems-autotools
+
+#
+# Build gdb first to raise the Python install error as early as possible.
+# GDB needs expat so it needs to be built before.
+#
+
+devel/expat-2.1.0-1
+tools/rtems-gdb-head
+
+tools/rtems-binutils-head
+tools/rtems-gcc-head-newlib-head
+tools/rtems-tools-5-1
diff --git a/rtems/config/6/rtems-epiphany.bset b/rtems/config/6/rtems-epiphany.bset
new file mode 100644
index 0000000..c0a6f16
--- /dev/null
+++ b/rtems/config/6/rtems-epiphany.bset
@@ -0,0 +1,17 @@
+%define release 1
+%define rtems_arch epiphany
+
+# Custom GDB
+%define gdb_external 1
+%define gdb_expand_name epiphany-binutils-gdb-f05996c7c42e6b2781946acbab153a481ce3fd0b
+%source set gdb https://github.com/adapteva/epiphany-binutils-gdb/archive/f05996c7c42e6b2781946acbab153a481ce3fd0b.zip
+%hash sha256 f05996c7c42e6b2781946acbab153a481ce3fd0b.zip 2b2034fd12f2fd5108205ade66400c175ede8cef8141a38ae03fc78bf2d65325
+
+%include 6/rtems-base.bset
+
+6/rtems-autotools
+devel/expat-2.1.0-1
+tools/rtems-binutils-head
+tools/rtems-gcc-head-newlib-head
+tools/rtems-gdb-7.8.1-1
+tools/rtems-tools-5-1
diff --git a/rtems/config/6/rtems-i386.bset b/rtems/config/6/rtems-i386.bset
new file mode 100644
index 0000000..a27319d
--- /dev/null
+++ b/rtems/config/6/rtems-i386.bset
@@ -0,0 +1,4 @@
+%define release 1
+%define rtems_arch i386
+%define with_libgomp
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-lm32.bset b/rtems/config/6/rtems-lm32.bset
new file mode 100644
index 0000000..b5afad1
--- /dev/null
+++ b/rtems/config/6/rtems-lm32.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch lm32
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-m68k.bset b/rtems/config/6/rtems-m68k.bset
new file mode 100644
index 0000000..0932d20
--- /dev/null
+++ b/rtems/config/6/rtems-m68k.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch m68k
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-microblaze.bset b/rtems/config/6/rtems-microblaze.bset
new file mode 100644
index 0000000..0e35a65
--- /dev/null
+++ b/rtems/config/6/rtems-microblaze.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch microblaze
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-mips.bset b/rtems/config/6/rtems-mips.bset
new file mode 100644
index 0000000..370e5ea
--- /dev/null
+++ b/rtems/config/6/rtems-mips.bset
@@ -0,0 +1,6 @@
+%define release 1
+%define rtems_arch mips
+%define gdb-sim-options --enable-sim-hardware
+%define win32-gdb-disable-sim
+%include 6/rtems-default.bset
+tools/rtems-mipstx39-gdb-head
diff --git a/rtems/config/6/rtems-moxie.bset b/rtems/config/6/rtems-moxie.bset
new file mode 100644
index 0000000..be00950
--- /dev/null
+++ b/rtems/config/6/rtems-moxie.bset
@@ -0,0 +1,6 @@
+%define release 1
+%define rtems_arch moxie
+%define win32-gdb-disable-sim
+%define with_libgomp
+devel/dtc-1.4.1-1
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-nios2.bset b/rtems/config/6/rtems-nios2.bset
new file mode 100644
index 0000000..522eff5
--- /dev/null
+++ b/rtems/config/6/rtems-nios2.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch nios2
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-or1k.bset b/rtems/config/6/rtems-or1k.bset
new file mode 100644
index 0000000..c299c25
--- /dev/null
+++ b/rtems/config/6/rtems-or1k.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch or1k
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-powerpc.bset b/rtems/config/6/rtems-powerpc.bset
new file mode 100644
index 0000000..c19327a
--- /dev/null
+++ b/rtems/config/6/rtems-powerpc.bset
@@ -0,0 +1,4 @@
+%define release 1
+%define rtems_arch powerpc
+%define with_libgomp
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-riscv.bset b/rtems/config/6/rtems-riscv.bset
new file mode 100644
index 0000000..42a4ebd
--- /dev/null
+++ b/rtems/config/6/rtems-riscv.bset
@@ -0,0 +1,4 @@
+%define release 1
+%define rtems_arch riscv
+%define with_libgomp
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-sh.bset b/rtems/config/6/rtems-sh.bset
new file mode 100644
index 0000000..f867962
--- /dev/null
+++ b/rtems/config/6/rtems-sh.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch sh
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-sparc.bset b/rtems/config/6/rtems-sparc.bset
new file mode 100644
index 0000000..f0e3016
--- /dev/null
+++ b/rtems/config/6/rtems-sparc.bset
@@ -0,0 +1,4 @@
+%define release 1
+%define rtems_arch sparc
+%define with_libgomp
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-sparc64.bset b/rtems/config/6/rtems-sparc64.bset
new file mode 100644
index 0000000..8da80a6
--- /dev/null
+++ b/rtems/config/6/rtems-sparc64.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch sparc64
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-v850.bset b/rtems/config/6/rtems-v850.bset
new file mode 100644
index 0000000..dd68147
--- /dev/null
+++ b/rtems/config/6/rtems-v850.bset
@@ -0,0 +1,3 @@
+%define release 1
+%define rtems_arch v850
+%include 6/rtems-default.bset
diff --git a/rtems/config/6/rtems-x86_64.bset b/rtems/config/6/rtems-x86_64.bset
new file mode 100644
index 0000000..dbfc9e6
--- /dev/null
+++ b/rtems/config/6/rtems-x86_64.bset
@@ -0,0 +1,4 @@
+%define release 1
+%define rtems_arch x86_64
+%define with_libgomp
+%include 6/rtems-default.bset
diff --git a/rtems/config/tools/rtems-binutils-head.cfg b/rtems/config/tools/rtems-binutils-head.cfg
new file mode 100644
index 0000000..79ddb08
--- /dev/null
+++ b/rtems/config/tools/rtems-binutils-head.cfg
@@ -0,0 +1,13 @@
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%define binutils_version 677bd4c69d0eda4f2ae635d793f23c0b1413a9e9
+%define binutils_external 1
+%define binutils_expand_name sourceware-mirror-binutils-gdb-%{binutils_version}
+%source set binutils --rsb-file=%{binutils_expand_name}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-binutils-gdb/tar.gz/%{binutils_version}
+%hash sha512 %{binutils_expand_name}.tar.gz 3a6b148066614155ef43b047dac4fd862c32c52f90030c4d2501c87ea52610633b82d19e5286746f6f0be64a16d3c8df9b0122ca253b2d07b9cc86161671389a
+
+%define with_deterministic_archives 1
+%define with_64_bit_bfd 1
+
+%include %{_configdir}/binutils-2-1.cfg
diff --git a/rtems/config/tools/rtems-gcc-head-newlib-head.cfg b/rtems/config/tools/rtems-gcc-head-newlib-head.cfg
new file mode 100644
index 0000000..2cc5e50
--- /dev/null
+++ b/rtems/config/tools/rtems-gcc-head-newlib-head.cfg
@@ -0,0 +1,20 @@
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%define gcc_version 1c2a6eef8661753ce316c46c55c7bb8c4e593943
+%define gcc_external 1
+%define gcc_expand_name gnu-mirror-gcc-%{gcc_version}
+%source set gcc --rsb-file=%{gcc_expand_name}.tar.gz https://codeload.github.com/RTEMS/gnu-mirror-gcc/tar.gz/%{gcc_version}
+%hash sha512 %{gcc_expand_name}.tar.gz 3ced75d03f3600b8e08cb09f8c9521258fdc4f47ed639e6676cdb4679bdfda7d4d09386d5f210068f320b65e4ff1f5e86f8afce7ba839c2dd082fa2a2ce746af
+
+%define newlib_version 34d9bb709390b14b4ed0b1ea2656bf6bf5a055c3
+%define newlib_external 1
+%define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}
+%source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}
+%hash sha512 newlib-%{newlib_version}.tar.gz f034703441de667f3339d42a15ff04962d014176089d9b9e4bb79ce2451749bcc5dd0560165d0a03b9ec6fb9263a2858e1344684a29e27d7887f5e4f36b9ab3b
+
+%define with_threads 1
+%define with_plugin 0
+%define with_iconv 1
+
+%include %{_configdir}/gcc-9.cfg
diff --git a/rtems/config/tools/rtems-gdb-head.cfg b/rtems/config/tools/rtems-gdb-head.cfg
new file mode 100644
index 0000000..5094b82
--- /dev/null
+++ b/rtems/config/tools/rtems-gdb-head.cfg
@@ -0,0 +1,10 @@
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%define gdb_version 677bd4c69d0eda4f2ae635d793f23c0b1413a9e9
+%define gdb_external 1
+%define gdb_expand_name sourceware-mirror-binutils-gdb-%{gdb_version}
+%source set gdb --rsb-file=%{gdb_expand_name}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-binutils-gdb/tar.gz/%{gdb_version}
+%hash sha512 %{gdb_expand_name}.tar.gz 3a6b148066614155ef43b047dac4fd862c32c52f90030c4d2501c87ea52610633b82d19e5286746f6f0be64a16d3c8df9b0122ca253b2d07b9cc86161671389a
+
+%include %{_configdir}/gdb-8-1.cfg
diff --git a/rtems/config/tools/rtems-mipstx39-gdb-head.cfg b/rtems/config/tools/rtems-mipstx39-gdb-head.cfg
new file mode 100644
index 0000000..d90ea33
--- /dev/null
+++ b/rtems/config/tools/rtems-mipstx39-gdb-head.cfg
@@ -0,0 +1,3 @@
+%undefine _target
+%define _target mipstx39-rtems%{rtems_version}
+%include tools/rtems-gdb-head.cfg
-- 
2.16.4



More information about the devel mailing list