Bug#850496: nsrp: add support for tilegx
Helmut Grohne
helmut at subdivi.de
Sat Jan 7 08:21:38 UTC 2017
Source: nspr
Version: 2:4.12-6
Tags: patch upstream
User: helmutg at debian.org
Usertags: rebootstrap
tilegx is a new architecture from a Debian pov and nspr does not yet
support it explicitly. A patch for making it work was published as part
of Mellanox' patch bundle at
http://www.mellanox.com/repository/solutions/tile-scm/tilera.tar.xz and
I am attaching their nspr.fixup here as it still applies and fixes the
build. Please include it in your next upload.
Helmut
-------------- next part --------------
Add tilegx/tilepro support.
--- source/mozilla/nsprpub/pr/include/md/_linux.cfg.orig 2011-07-07 17:41:36.341509000 -0400
+++ source/mozilla/nsprpub/pr/include/md/_linux.cfg 2011-07-07 17:41:56.291586000 -0400
@@ -240,7 +240,7 @@
#define PR_BYTES_PER_WORD_LOG2 3
#define PR_BYTES_PER_DWORD_LOG2 3
-#elif defined(__x86_64__)
+#elif defined(__x86_64__) || defined(__tilegx__)
#define IS_LITTLE_ENDIAN 1
#undef IS_BIG_ENDIAN
@@ -422,7 +422,7 @@
#define PR_BYTES_PER_WORD_LOG2 2
#define PR_BYTES_PER_DWORD_LOG2 3
-#elif defined(__i386__)
+#elif defined(__i386__) || defined(__tilepro__)
#define IS_LITTLE_ENDIAN 1
#undef IS_BIG_ENDIAN
--- ./mozilla/nsprpub/pr/include/md/_linux.h.orig 2012-01-30 19:34:02.000000000 -0500
+++ ./mozilla/nsprpub/pr/include/md/_linux.h 2012-01-30 19:37:35.000000000 -0500
@@ -75,6 +75,10 @@
#define _PR_SI_ARCHITECTURE "arm"
#elif defined(__hppa__)
#define _PR_SI_ARCHITECTURE "hppa"
+#elif defined(__tilegx__)
+#define _PR_SI_ARCHITECTURE "tilegx"
+#elif defined(__tile__)
+#define _PR_SI_ARCHITECTURE "tile"
#elif defined(__s390x__)
#define _PR_SI_ARCHITECTURE "s390x"
#elif defined(__s390__)
More information about the pkg-mozilla-maintainers
mailing list