From: Max Filippov <jcmvbkbc@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] xserver_xorg-server: add support for xtensa architecture
Date: Tue, 3 Jun 2014 01:41:46 +0400 [thread overview]
Message-ID: <1401745306-2162-3-git-send-email-jcmvbkbc@gmail.com> (raw)
In-Reply-To: <1401745306-2162-1-git-send-email-jcmvbkbc@gmail.com>
Fixes:
http://autobuild.buildroot.net/results/143/14308a9d1806574f06ab2a7d222f53119fab1c90/
http://autobuild.buildroot.net/results/5cc/5cceb96ac29a410316fd7d8f7de0615ba33e3f2c/
Backported from: dc8d0688471695ec5a8db5fef93fbcfc064891d5
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
...tensa-add-support-for-xtensa-architecture.patch | 74 ++++++++++++++++++++
1 files changed, 74 insertions(+), 0 deletions(-)
create mode 100644 package/x11r7/xserver_xorg-server/300-xserver_xorg-server-xtensa-add-support-for-xtensa-architecture.patch
diff --git a/package/x11r7/xserver_xorg-server/300-xserver_xorg-server-xtensa-add-support-for-xtensa-architecture.patch b/package/x11r7/xserver_xorg-server/300-xserver_xorg-server-xtensa-add-support-for-xtensa-architecture.patch
new file mode 100644
index 0000000..67bce1c
--- /dev/null
+++ b/package/x11r7/xserver_xorg-server/300-xserver_xorg-server-xtensa-add-support-for-xtensa-architecture.patch
@@ -0,0 +1,74 @@
+From dc8d0688471695ec5a8db5fef93fbcfc064891d5 Mon Sep 17 00:00:00 2001
+From: Max Filippov <jcmvbkbc@gmail.com>
+Date: Mon, 2 Jun 2014 01:17:31 +0400
+Subject: [PATCH] xtensa: add support for xtensa architecture
+
+Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
+Reviewed-by: Adam Jackson <ajax@redhat.com>
+Signed-off-by: Keith Packard <keithp@keithp.com>
+---
+Backported from: dc8d0688471695ec5a8db5fef93fbcfc064891d5
+
+ hw/xfree86/common/compiler.h | 5 ++++-
+ hw/xfree86/os-support/linux/lnx_video.c | 3 ++-
+ include/servermd.h | 14 ++++++++++++++
+ 3 files changed, 20 insertions(+), 2 deletions(-)
+
+diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
+index 0319de0..1bd8def 100644
+--- a/hw/xfree86/common/compiler.h
++++ b/hw/xfree86/common/compiler.h
+@@ -1352,7 +1352,10 @@ stl_u(unsigned long val, unsigned int *p)
+ #else /* ix86 */
+
+ #if !defined(__SUNPRO_C)
+-#if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && !defined(__m32r__) && !defined(__aarch64__) && !defined(__arc__)
++#if !defined(FAKEIT) && !defined(__mc68000__) && !defined(__arm__) && \
++ !defined(__sh__) && !defined(__hppa__) && !defined(__s390__) && \
++ !defined(__m32r__) && !defined(__aarch64__) && !defined(__arc__) && \
++ !defined(__xtensa__)
+ #ifdef GCCUSESGAS
+
+ /*
+diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
+index 40765fc..652f963 100644
+--- a/hw/xfree86/os-support/linux/lnx_video.c
++++ b/hw/xfree86/os-support/linux/lnx_video.c
+@@ -60,7 +60,8 @@ static Bool ExtendedEnabled = FALSE;
+ !defined(__nds32__) && \
+ !defined(__arm__) && \
+ !defined(__aarch64__) && \
+- !defined(__arc__)
++ !defined(__arc__) && \
++ !defined(__xtensa__)
+
+ /*
+ * Due to conflicts with "compiler.h", don't rely on <sys/io.h> to declare
+diff --git a/include/servermd.h b/include/servermd.h
+index 2d1ccb1..081123b 100644
+--- a/include/servermd.h
++++ b/include/servermd.h
+@@ -313,6 +313,20 @@ SOFTWARE.
+
+ #endif /* ARC */
+
++#ifdef __xtensa__
++
++#ifdef __XTENSA_EL__
++#define IMAGE_BYTE_ORDER LSBFirst
++#define BITMAP_BIT_ORDER LSBFirst
++#endif
++#ifdef __XTENSA_EB__
++#define IMAGE_BYTE_ORDER MSBFirst
++#define BITMAP_BIT_ORDER MSBFirst
++#endif
++#define GLYPHPADBYTES 4
++
++#endif /* __xtensa__ */
++
+ /* size of buffer to use with GetImage, measured in bytes. There's obviously
+ * a trade-off between the amount of heap used and the number of times the
+ * ddx routine has to be called.
+--
+1.7.7.6
+
--
1.7.7.6
prev parent reply other threads:[~2014-06-02 21:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-02 21:41 [Buildroot] [PATCH 0/2] xserver_xorg-server: add support for xtensa architecture Max Filippov
2014-06-02 21:41 ` [Buildroot] [PATCH 1/2] xserver_xorg-server: add ordering prefix to patches Max Filippov
2014-06-02 21:57 ` Thomas Petazzoni
2014-06-02 22:26 ` Max Filippov
2014-06-02 21:41 ` Max Filippov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1401745306-2162-3-git-send-email-jcmvbkbc@gmail.com \
--to=jcmvbkbc@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox