aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Max Filippov <jcmvbkbc@gmail.com>2015-03-17 22:47:46 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-17 23:00:28 +0100
commitf8cd961f5fc5444dc645b6b6d324d45c0ca221c6 (patch)
tree2d46ee0c8199280a4eaf7df1d7a6914ebe96387e
parentb969918b989cd2d4e2b98d1e4733702f12edef45 (diff)
downloadbuildroot-f8cd961f5fc5444dc645b6b6d324d45c0ca221c6.tar.gz
buildroot-f8cd961f5fc5444dc645b6b6d324d45c0ca221c6.tar.bz2
package/cmake: add support for xtensa
Backported from: ded79a976e2b63bbfd7a63f27ec00bd071410e27 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/cmake/0002-KWIML-Teach-ABI.h-about-Xtensa-architecture.patch30
-rw-r--r--package/cmake/Config.in2
2 files changed, 31 insertions, 1 deletions
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 0000000000..7d8eec638c
--- /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@_ABI_NO_VERIFY was defined.
+ # define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
+ # endif
+
++/* Xtensa */
++#elif defined(__XTENSA_EB__)
++# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
++#elif defined(__XTENSA_EL__)
++# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE
++
+ /* Unknown CPU */
+ #elif !defined(@KWIML@_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 dbc7d015f4..f3f0f85a93 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