Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Max Filippov <jcmvbkbc@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package/cmake: add support for xtensa
Date: Tue, 17 Mar 2015 22:47:46 +0300	[thread overview]
Message-ID: <1426621666-5446-1-git-send-email-jcmvbkbc@gmail.com> (raw)

Backported from: ded79a976e2b63bbfd7a63f27ec00bd071410e27
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
Changes v1->v2:
- fix path to ABI.h.in in the backported patch

 ...IML-Teach-ABI.h-about-Xtensa-architecture.patch | 30 ++++++++++++++++++++++
 package/cmake/Config.in                            |  2 +-
 2 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 package/cmake/0002-KWIML-Teach-ABI.h-about-Xtensa-architecture.patch

diff --git a/package/cmake/0002-KWIML-Teach-ABI.h-about-Xtensa-architecture.patch b/package/cmake/0002-KWIML-Teach-ABI.h-about-Xtensa-architecture.patch
new file mode 100644
index 0000000..7d8eec6
--- /dev/null
+++ b/package/cmake/0002-KWIML-Teach-ABI.h-about-Xtensa-architecture.patch
@@ -0,0 +1,30 @@
+From ded79a976e2b63bbfd7a63f27ec00bd071410e27 Mon Sep 17 00:00:00 2001
+From: Max Filippov <jcmvbkbc@gmail.com>
+Date: Tue, 17 Mar 2015 15:51:04 +0300
+Subject: [PATCH] KWIML: Teach ABI.h about Xtensa architecture
+
+Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
+---
+ Utilities/KWIML/ABI.h.in | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/Utilities/KWIML/ABI.h.in b/Utilities/KWIML/ABI.h.in
+index 21c9139..6300ada 100644
+--- a/Utilities/KWIML/ABI.h.in
++++ b/Utilities/KWIML/ABI.h.in
+@@ -432,6 +432,12 @@ suppression macro @KWIML at _ABI_NO_VERIFY was defined.
+ #  define @KWIML at _ABI_ENDIAN_ID @KWIML at _ABI_ENDIAN_ID_BIG
+ # endif
+ 
++/* Xtensa */
++#elif defined(__XTENSA_EB__)
++# define @KWIML at _ABI_ENDIAN_ID @KWIML at _ABI_ENDIAN_ID_BIG
++#elif defined(__XTENSA_EL__)
++# define @KWIML at _ABI_ENDIAN_ID @KWIML at _ABI_ENDIAN_ID_LITTLE
++
+ /* Unknown CPU */
+ #elif !defined(@KWIML at _ABI_NO_ERROR_ENDIAN)
+ # error "Byte order of target CPU unknown."
+-- 
+1.8.1.4
+
diff --git a/package/cmake/Config.in b/package/cmake/Config.in
index dbc7d01..f3f0f85 100644
--- a/package/cmake/Config.in
+++ b/package/cmake/Config.in
@@ -5,7 +5,7 @@ config BR2_PACKAGE_CMAKE_ARCH_SUPPORTS
 		BR2_m68k      || BR2_mips        || BR2_mips64   || \
 		BR2_mipsel    || BR2_mips64el    || BR2_powerpc  || \
 		BR2_powerpc64 || BR2_powerpc64le || BR2_sparc    || \
-		BR2_i386      || BR2_x86_64
+		BR2_i386      || BR2_x86_64      || BR2_xtensa
 
 config BR2_PACKAGE_CMAKE
 	bool
-- 
1.8.1.4

             reply	other threads:[~2015-03-17 19:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-17 19:47 Max Filippov [this message]
2015-03-17 22:00 ` [Buildroot] [PATCH v2] package/cmake: add support for xtensa Thomas Petazzoni

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=1426621666-5446-1-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