Bug#562502: xine-plugin: Please support Renesas SH
Package: xine-plugin
Version: 1.0.2-2
Severity: important
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org
Hi,
I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?suite=unstable&a=sh4
xine-plugin FTBFS on SH4.
Because xine-plugin does not support Renesas SH.
-----
sh4-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_GNU_SOURCE
-Wall -g -O2 -DXP_UNIX -Wall -MT plugin.lo -MD -MP -MF
.deps/plugin.Tpo -c plugin.c -fPIC -DPIC -o .libs/plugin.o
In file included from ../include/prtypes.h:58,
from ../include/npapi.h:51,
from plugin.c:55:
../include/prcpucfg.h:604:2: error: #error "Unknown CPU architecture"
In file included from ../include/npapi.h:51,
from plugin.c:55:
-----
I made patch to support SH. Could you apply this patch?
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6
--- a/include/prcpucfg.h 2007-01-15 13:37:24.000000000 +0000
+++ b/include/prcpucfg.h 2009-12-24 06:49:57.000000000 +0000
@@ -599,6 +599,47 @@
#define PR_BYTES_PER_WORD_LOG2 2
#define PR_BYTES_PER_DWORD_LOG2 3
+#elif defined(__sh__)
+
+#ifdef __LITTLE_ENDIAN__
+#define IS_LITTLE_ENDIAN 1
+#undef IS_BIG_ENDIAN
+#else
+#define IS_BIG_ENDIAN 1
+#undef IS_LITTLE_ENDIAN
+#endif
+
+#define PR_BYTES_PER_BYTE 1
+#define PR_BYTES_PER_SHORT 2
+#define PR_BYTES_PER_INT 4
+#define PR_BYTES_PER_INT64 8
+#define PR_BYTES_PER_LONG 4
+#define PR_BYTES_PER_FLOAT 4
+#define PR_BYTES_PER_DOUBLE 8
+#define PR_BYTES_PER_WORD 4
+#define PR_BYTES_PER_DWORD 8
+
+#define PR_BITS_PER_BYTE 8
+#define PR_BITS_PER_SHORT 16
+#define PR_BITS_PER_INT 32
+#define PR_BITS_PER_INT64 64
+#define PR_BITS_PER_LONG 32
+#define PR_BITS_PER_FLOAT 32
+#define PR_BITS_PER_DOUBLE 64
+#define PR_BITS_PER_WORD 32
+
+#define PR_ALIGN_OF_SHORT 2
+#define PR_ALIGN_OF_INT 4
+#define PR_ALIGN_OF_LONG 4
+#define PR_ALIGN_OF_INT64 8
+#define PR_ALIGN_OF_FLOAT 4
+#define PR_ALIGN_OF_DOUBLE 8
+#define PR_ALIGN_OF_POINTER 4
+#define PR_ALIGN_OF_WORD 4
+
+#define PR_BYTES_PER_WORD_LOG2 2
+#define PR_BYTES_PER_DWORD_LOG2 3
+
#else
#error "Unknown CPU architecture"
Reply to: