Skip to contentSkip to conversation

utils/genrandconfig: add default setting for bare-metal toolchain arch

PATCH Applied Thomas Petazzoni via buildroot 2 participants 2 messages Feb 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/genrandconfig: add default setting for bare-metal toolchain arch

We recently added support for building a bare-metal toolchain, and the autobuilders are therefore trying to build such toolchains. However, by default the BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH option is empty, causing the target tuple to be empty, and therefore host-gcc-bare-metal tries to build a toolchain for the target "x86_64-pc-linux-gnu", which isn't a bare-metal target, and fails badly.

In order to properly test this bare-metal support, this commit adjusts the genrandconfig script so that it injects a valid target architecture tuple.

Fixes:

http://autobuild.buildroot.net/results/6cb1514b19bfe056fb984d3538bdccdda5e174c1/

---
 utils/genrandconfig | 4 ++++
 1 file changed, 4 insertions(+)
utils/genrandconfig +4 -0
index 52edad06d8..eb1f8cbd4a 100755
@@ -315,6 +315,10 @@ def fixup_config(sysinfo, configfile):
        'BR2_TOOLCHAIN_BUILDROOT=y' in configlines:
         return False
 
+    if 'BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y' in configlines:
+        configlines.remove('BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH=""')
+        configlines.add('BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"')
+
     if 'BR2_PACKAGE_AUFS_UTIL=y\n' in configlines and \
        'BR2_PACKAGE_AUFS_UTIL_VERSION=""\n' in configlines:
         return False
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Thomas, All,

On 2024-02-07 08:05 +0100, Thomas Petazzoni via buildroot spake thusly:

Quoted 12 lines

We recently added support for building a bare-metal toolchain, and the autobuilders are therefore trying to build such toolchains. However, by default the BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH option is empty, causing the target tuple to be empty, and therefore host-gcc-bare-metal tries to build a toolchain for the target "x86_64-pc-linux-gnu", which isn't a bare-metal target, and fails badly.

In order to properly test this bare-metal support, this commit adjusts the genrandconfig script so that it injects a valid target architecture tuple.

Quoted 5 lines

Fixes:

http://autobuild.buildroot.net/results/6cb1514b19bfe056fb984d3538bdccdda5e174c1/

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 26 lines
---
 utils/genrandconfig | 4 ++++
 1 file changed, 4 insertions(+)
utils/genrandconfig +4 -0
index 52edad06d8..eb1f8cbd4a 100755
@@ -315,6 +315,10 @@ def fixup_config(sysinfo, configfile):
        'BR2_TOOLCHAIN_BUILDROOT=y' in configlines:
         return False
 
+    if 'BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y' in configlines:
+        configlines.remove('BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH=""')
+        configlines.add('BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"')
+
     if 'BR2_PACKAGE_AUFS_UTIL=y\n' in configlines and \
        'BR2_PACKAGE_AUFS_UTIL_VERSION=""\n' in configlines:
         return False
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot