[PATCH v3 1/2] rsb: Add MicroBlaze tools

Alex White alex.white at oarcorp.com
Tue Aug 3 18:30:44 UTC 2021


---
 rtems/config/6/rtems-microblaze.bset          | 23 ++++++-
 .../tools/rtems-xilinx-binutils-2.36.cfg      | 40 +++++++++++
 .../tools/rtems-xilinx-gcc-10-newlib-head.cfg | 68 +++++++++++++++++++
 3 files changed, 130 insertions(+), 1 deletion(-)
 create mode 100644 rtems/config/tools/rtems-xilinx-binutils-2.36.cfg
 create mode 100644 rtems/config/tools/rtems-xilinx-gcc-10-newlib-head.cfg

diff --git a/rtems/config/6/rtems-microblaze.bset b/rtems/config/6/rtems-microblaze.bset
index 0e35a65..4b12899 100644
--- a/rtems/config/6/rtems-microblaze.bset
+++ b/rtems/config/6/rtems-microblaze.bset
@@ -1,3 +1,24 @@
 %define release 1
 %define rtems_arch microblaze
-%include 6/rtems-default.bset
+
+#
+# Default tools configuration.
+#
+%include 6/rtems-base.bset
+
+6/rtems-autotools
+
+devel/dtc-1.6.0-1
+
+#
+# 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
+devel/gmp-6.1.0
+tools/rtems-gdb-10
+
+tools/rtems-xilinx-binutils-2.36
+tools/rtems-xilinx-gcc-10-newlib-head
+tools/rtems-tools-6
diff --git a/rtems/config/tools/rtems-xilinx-binutils-2.36.cfg b/rtems/config/tools/rtems-xilinx-binutils-2.36.cfg
new file mode 100644
index 0000000..625fba7
--- /dev/null
+++ b/rtems/config/tools/rtems-xilinx-binutils-2.36.cfg
@@ -0,0 +1,40 @@
+%include tools/rtems-binutils-2.36.cfg
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch
+%hash sha512 0001-Add-wdc.ext.clear-and-wdc.ext.flush-insns.patch 56971b06821d7ab36b068016dde6086941121fca40d661056fe03f17507dafab075b306fe91d191c3fa0ec3617cd8649fe3023e0e5230e3fd5b4c2a648c23a94
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0002-Add-mlittle-endian-and-mbig-endian-flags.patch
+%hash sha512 0002-Add-mlittle-endian-and-mbig-endian-flags.patch e6240d8d5eebb36b161b77348522cd59dad008017ce7579b66310719faa8bdba9d0f0466f4d81bf8c1d79ed2a3a2d777924a404da1010fc4dd866fcae2bde322
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0003-Disable-the-warning-message-for-eh_frame_hdr.patch
+%hash sha512 0003-Disable-the-warning-message-for-eh-frame-hdr.patch 2d90ef568bb649bc79b09ec3e745a25b5f177dc49f6b6bf7e9143685e5206bb7aee7a3fd3d013d64d82e2865e90a9cfeb7103aeb29189b1330613c562597a2fc
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0004-LOCAL-Fix-relaxation-of-assembler-resolved-reference.patch
+%hash sha512 0004-LOCAL-Fix-relaxation-of-assembler-resolved-reference.patch 76780fc9e410739320f07dd2fc517631f0bb4a8484d56ed96f0f8089acf1f8958dbc4045bfe67289086a63b3374a63e8fb2e09f7e7d52579b04d1114022d7214
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0005-upstream-change-to-garbage-collection-sweep-causes-m.patch
+%hash sha512 0005-upstream-change-to-garbage-collection-sweep-causes-m.patch 76a76edd26dc9bd72b0330791d14362933f5bbbc5bef0f9a9e6ee307958a4f6791ceabdaadae3c969ac3f4c786b13784f473fde6fe8ddcbf3370ccfc8761d7ab
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0006-Fix-bug-in-TLSTPREL-Relocation.patch
+%hash sha512 0006-Fix-bug-in-TLSTPREL-Relocation.patch deed94f04fa91e993043f3e2f5e7c865555a7ffce83e959980daebc255247ba51d991d6289e682fa4dff1758f085e661f5c2888b078dcaf2e790873c96520928
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0007-Added-Address-extension-instructions.patch
+%hash sha512 0007-Added-Address-extension-instructions.patch 8fb1c588eeae2356001d2d79e06c0a6dcd37be6411c11856b064973860139d1b87d490133fd98b5d70bea24f275bdbd5114e11a41141c0be05f23317b187e705
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0008-fixing-the-MAX_OPCODES-to-correct-value.patch
+%hash sha512 0008-fixing-the-MAX-OPCODES-to-correct-value.patch e8227eb42b87de038430ddf79bf9f7e58deee0ed263ce521512b0568456f36aab16f9cdcdb2af2b7d0e5330aab0d73479a91480731e86370d63af708d641f903
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0009-Add-new-bit-field-instructions.patch
+%hash sha512 0009-Add-new-bit-field-instructions.patch c1bcc51762b66706b286ffd50f3d55dcb99cdc43d2312e0af16b1c1444fe57cf1351d55267438cdd8c755d197646d9726873338b9f892ceb27810f324533e01c
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0010-fixing-the-imm-bug.patch
+%hash sha512 0010-fixing-the-imm-bug.patch 15ae27cae58d375e74468bede264450b944c698e9e67fda41ba8044826695b7790f1b5b28d9484e016b49accaebfc9002e7a724854147ab2986deafb9557694c
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0011-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch
+%hash sha512 0011-Patch-Microblaze-fixed-bug-in-GCC-so-that-It-will-su.patch 3d4c21f650c18771f202d9e9b858a4f93ee1848328eaa4b55c62f4cff86e45aa62d94b323c60ba759160d086800ae039f62236c041fede5347a91ef3467a03cc
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0012-fixing-the-constant-range-check-issue.patch
+%hash sha512 0012-fixing-the-constant-range-check-issue.patch e3100a06f4a5a816dbde2af496ed0a8fbb37e94a7188fef58c9fe78212de75ddf28d45b38bd605f58157925b1f56ef137ab5f89accb6bb478b4144647416c20a
+
+%patch add binutils -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/binutils/binutils/0013-Patch-Microblaze-Compiler-will-give-error-messages-i.patch
+%hash sha512 0013-Patch-Microblaze-Compiler-will-give-error-messages-i.patch 7d52717cdd4680434935018edbf5b20b0a545494d33b54735238aefeb340476b7b04d40372f4c664f7cfdf346217bcbf70d1484cdcc7ffaabe74961d4be784a6
diff --git a/rtems/config/tools/rtems-xilinx-gcc-10-newlib-head.cfg b/rtems/config/tools/rtems-xilinx-gcc-10-newlib-head.cfg
new file mode 100644
index 0000000..b9ed7bc
--- /dev/null
+++ b/rtems/config/tools/rtems-xilinx-gcc-10-newlib-head.cfg
@@ -0,0 +1,68 @@
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%define gcc_version 348fb9d
+%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 207eedc02ce5426e9b553d72117653a58ceb3f59b3c9413569ee31a4956ee2597e9562cff862c2be88ec0466739c6599f372760d2ad8c1340bb1d2e0ef714a89
+
+%patch add gcc -p1 https://devel.rtems.org/raw-attachment/ticket/4196/0001-gcov-Add-fprofile-info-section-support.patch
+%hash sha512 0001-gcov-Add-fprofile-info-section-support.patch 284c4eb2180e8a7dac600b5833da5d2f99568b7fc2f873c145665ef56ab72ca3e9ac3da1e8bc88e72dd229f02a28402770d82ddd7a1b836836ae00cdfd1d400f
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch
+%hash sha512 0001-LOCAL-Testsuite-builtins-tests-require-fpic.patch 5373e2a7ea6561263224e8da55318425eee7c91d633c45680183141093c2ea31aa7e7ee11a7ba3bd580a7edb405a162bc8904f48a354b154383fc938036a09c2
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch
+%hash sha512 0002-LOCAL-Quick-fail-g-.dg-opt-memcpy1.C.patch 4bf9df22fe7be735deb2ee4353933eadf13fbee1f23254d4c870d8c99749e76eb8010cacb6143fad71c11b72063a774bd7ed050f61f7e75afe4cc3e945b83441
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch
+%hash sha512 0003-LOCAL-For-dejagnu-static-testing-on-qemu-suppress-wa.patch f8b8ae98a02d1aca64e3f91dad62977e006800b5b24112927fcd02a07fe40947f2209625b3b564cffb77dc6ab6e3db072cf93b26e925fed689b8d34b3cc612bf
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch
+%hash sha512 0004-Patch-testsuite-Add-MicroBlaze-to-target-supports-fo.patch f7823ba440cb3288fa372c690ffb878269915ee75be2693414338817e3bd8e9fd52545df4012b95c736d0a2fcca927bead86d5d9e70952af10b696299e3b2a4f
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch
+%hash sha512 0005-Patch-testsuite-Update-MicroBlaze-strings-test.patch 1d63269e9bf6eb92e6a18a371d8c89c5a7d8735f1483d798a1e486e38d98e9b72fb95515374e8f241ddfa43e6eb90ffb876b1f066fcd3fc230d1370c34db778a
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch
+%hash sha512 0006-Patch-testsuite-Allow-MicroBlaze-.weakext-pattern-in.patch bf858501c97890035b05692c028c5f6fb66f1554cff59249e6af3e9882ab9a87d47e3696aa2e7a175bb1bf5dd38ba328e42474922706b5db93d2d5daaac7b620
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0007-Patch-testsuite-Add-MicroBlaze-to-check_profiling_av.patch
+%hash sha512 0007-Patch-testsuite-Add-MicroBlaze-to-check-profiling-av.patch 5d86cdf759dcf7261ec3d3665fe488a76d1dac47040fa55a9ddd5d7764d6de6ef4848467f3e41aab1ba774d7c59eb1649f7882bd9ef3bfcae84c71fcaba64d81
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0008-Patch-microblaze-Fix-atomic-side-effects.patch
+%hash sha512 0008-Patch-microblaze-Fix-atomic-side-effects.patch 422a48b95dbc4370ae2a07e90a42b7a5eca1757f5396d8c660f134629fed2cc694e2409e5d5cc835d69526a7c5316c94345acfc193faaa6b1caeab45f726bf7f
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch
+%hash sha512 0009-Patch-microblaze-Fix-atomic-boolean-return-value.patch 4c0b452cead51332c2987150009e7c41e4609d0ecc9cb2cecc15cc84a5861787a44adc60ecf27d8314af7d164e87a49a370c398298801043a1499f12f720084d
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch
+%hash sha512 0010-Patch-microblaze-Fix-the-Microblaze-crash-with-msmal.patch 5a0a0bbc9bcb16b97893f681b18900d37c572deb97eebd9849a06e481db77c37df9d2f67f9614ba02163bf7fde2be10fb7f3b43070e1728da27d52f5a0967bc2
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0011-Patch-microblaze-Added-ashrsi3_with_size_opt.patch
+%hash sha512 0011-Patch-microblaze-Added-ashrsi3-with-size-opt.patch 104f0f80138f277ad8869a7a0261c647ee933bd053f4ce8f7f12675145ecabb1bf3015d16968534910e98cf518377beb9939721cd01de677d2c8f5bc3957373d
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch
+%hash sha512 0012-Patch-microblaze-Use-bralid-for-profiler-calls.patch ad05cd7b91db89596394d538fd97833e374ae98b666e25ce5d379f16abe23acca106957404316d43e153375dde699fec8f385d1a6c54174f29649eb4d63604cd
+
+%patch add gcc -p1 https://raw.githubusercontent.com/Xilinx/meta-xilinx/rel-v2021.1/meta-microblaze/recipes-devtools/gcc/gcc-10/0013-Patch-microblaze-Removed-moddi3-routinue.patch
+%hash sha512 0013-Patch-microblaze-Removed-moddi3-routinue.patch 07cde4e4f5b7bfb8cd5c89c865cc4e4c36b943b5b24035df4b18c6e9b30b9513089344105d0c05a31f2c4606ab1034c5dcc3541d6792893027ad5e3dbfb04429
+
+%patch add gcc -p1 https://devel.rtems.org/raw-attachment/ticket/4481/0001-gcc-config-aarch64-rtems.h-Define-__USE_INIT_FINI__.patch
+%hash sha512 0001-gcc-config-aarch64-rtems.h-Define---USE-INIT-FINI--.patch 84253c3c180fbfc6b640ffda72e8574f95661bdf3132503acc3f1b73a8f78aeb0508c06dbb32d1c8363ff083765194eeff14e46445946969c51a4498d2b3a0e7
+
+%patch add gcc -p1 https://devel.rtems.org/raw-attachment/ticket/4481/0002-config-microblaze-crti.S-Add-single-underscore-init-.patch
+%hash sha512 0002-config-microblaze-crti.S-Add-single-underscore-init-.patch bf1ec7eff0dd51d154dd0507edb085458c90a000f5a3ccefb1064147cf8fdafe0111d2094372e164976f2193c289bff9ea63dcad43555c90893272a494b7e779
+
+%define newlib_version 44a3966
+%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 171c32993fe81327391ce8cc4f519583b21270552b89de4b8accc9e7f3219cdf1525e0d3372ecbf3d168363fbc0b8bc2750247cd03add58ee60123dbf639252f
+
+%define with_threads 1
+%define with_plugin 0
+%define with_iconv 1
+
+%include %{_configdir}/gcc-9.cfg
-- 
2.27.0



More information about the devel mailing list