[OpenBIOS] [PATCH v2] Fix cross compiling sparc64 on arm32 host

Cole Robinson crobinso at redhat.com
Mon Dec 9 22:21:31 CET 2013


Add arm32 to the whitelist for handling lack of int128 type variants.
Otherwise we get errors like:

/target/include/asm/types.h:79:1: error: unknown type name ‘__int128_t’
    typedef __int128_t dcell;

This may introduce issues building on aarch64 but I have no way to test.

Signed-off-by: Cole Robinson <crobinso at redhat.com>
---

v2:
    Break out arm check to its own 'if' line

 config/scripts/switch-arch | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config/scripts/switch-arch b/config/scripts/switch-arch
index 44f2df4..868eae6 100755
--- a/config/scripts/switch-arch
+++ b/config/scripts/switch-arch
@@ -79,6 +79,8 @@ crosscflags()
          -o "$target" = "alpha"; then
         if test "$host" = "x86"; then
             cflags="$cflags -DNEED_FAKE_INT128_T"
+        elif test "$host" = "arm"; then
+            cflags="$cflags -DNEED_FAKE_INT128_T"
         elif test "$host" = "ppc" -a `uname -s` = "Darwin"; then
             cflags="$cflags -DNEED_FAKE_INT128_T"
         fi
-- 
1.8.4.2




More information about the OpenBIOS mailing list