Skip to contentSkip to conversation

poco: Add upstream patch to add support for aarch64.

PATCH New Will Newton 3 participants 4 messages May 22, 2013 – May 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 poco: Add upstream patch to add support for aarch64.

---
 package/poco/poco-aarch64.patch | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/poco/poco-aarch64.patch
package/poco/poco-aarch64.patch new file +11 -0
new file mode 100644
index 0000000..f629f7b
@@ -0,0 +1,39 @@
+From 37899eda9563d9134cb5864751b6432cabfaac3e Mon Sep 17 00:00:00 2001
+From: Will Newton <[email protected]>
+Date: Tue, 21 May 2013 22:11:05 +0100
+Subject: [PATCH] Foundation/include/Poco/Platform.h: Add support for AArch64.
+
+Add support for big and little endian AArch64 preprocessor defines.
+---
+ Foundation/include/Poco/Platform.h | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Foundation/include/Poco/Platform.h

b/Foundation/include/Poco/Platform.h
+index f34f277..8ddb4cb 100644
+--- a/Foundation/include/Poco/Platform.h
++++ b/Foundation/include/Poco/Platform.h
+@@ -145,6 +145,7 @@

+ #define POCO_ARCH_S390    0x0c
+ #define POCO_ARCH_SH      0x0d
+ #define POCO_ARCH_NIOS2   0x0e

++#define POCO_ARCH_AARCH64 0x0f
+
+
+ #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) || defined(_M_ALPHA)
+@@ -207,7 +208,12 @@
+ #else
+ #define POCO_ARCH_BIG_ENDIAN 1
+ #endif
+-
++#elif defined(__AARCH64EL__)
++ #define POCO_ARCH POCO_ARCH_AARCH64
++ #define POCO_ARCH_LITTLE_ENDIAN 1
++#elif defined(__AARCH64EB__)
++ #define POCO_ARCH POCO_ARCH_AARCH64
++ #define POCO_ARCH_BIG_ENDIAN 1
+ #endif
+
+
+--
+1.8.1.4
+
--
1.8.1.4

#1 lore raw

PATCH 1/1 poco: Add upstream patch to add support for aarch64.

Add attachment version of the patch to avoid whitespace damage.

Quoted 54 lines · Will Newton
---
 package/poco/poco-aarch64.patch | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/poco/poco-aarch64.patch
package/poco/poco-aarch64.patch new file +11 -0
new file mode 100644
index 0000000..f629f7b
@@ -0,0 +1,39 @@
+From 37899eda9563d9134cb5864751b6432cabfaac3e Mon Sep 17 00:00:00 2001
+From: Will Newton <[email protected]>
+Date: Tue, 21 May 2013 22:11:05 +0100
+Subject: [PATCH] Foundation/include/Poco/Platform.h: Add support for AArch64.
+
+Add support for big and little endian AArch64 preprocessor defines.
+---
+ Foundation/include/Poco/Platform.h | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Foundation/include/Poco/Platform.h

b/Foundation/include/Poco/Platform.h

package/poco/poco-aarch64.patch new file +11 -0
+index f34f277..8ddb4cb 100644
+--- a/Foundation/include/Poco/Platform.h
++++ b/Foundation/include/Poco/Platform.h
+@@ -145,6 +145,7 @@
+ #define POCO_ARCH_S390    0x0c
+ #define POCO_ARCH_SH      0x0d
+ #define POCO_ARCH_NIOS2   0x0e
++#define POCO_ARCH_AARCH64 0x0f
+
+
+ #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) ||

defined(_M_ALPHA)
+@@ -207,7 +208,12 @@

package/poco/poco-aarch64.patch new file +16 -1
+     #else
+         #define POCO_ARCH_BIG_ENDIAN 1
+     #endif
+-
++#elif defined(__AARCH64EL__)
++    #define POCO_ARCH POCO_ARCH_AARCH64
++    #define POCO_ARCH_LITTLE_ENDIAN 1
++#elif defined(__AARCH64EB__)
++    #define POCO_ARCH POCO_ARCH_AARCH64
++    #define POCO_ARCH_BIG_ENDIAN 1
+ #endif
+
+
+--
+1.8.1.4
+
--
Quoted 1 line

1.8.1.4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-poco-Add-upstream-patch-to-add-support-for-aarch64.patch
Type: application/octet-stream
Size: 1828 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130522/56123634/attachment.obj>

#2 lore raw

PATCH 1/1 poco: Add upstream patch to add support for aarch64.

In reply to Will Newton

Hi Will,

Quoted 5 lines · Will Newton
---
 package/poco/poco-aarch64.patch | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/poco/poco-aarch64.patch

This patch conflicts with the one posted by Gustavo last week
(http://lists.busybox.net/pipermail/buildroot/2013-May/072343.html). Both patches should be combined into a single one.

baruch

Quoted 48 lines
package/poco/poco-aarch64.patch new file +11 -0
new file mode 100644
index 0000000..f629f7b
@@ -0,0 +1,39 @@
+From 37899eda9563d9134cb5864751b6432cabfaac3e Mon Sep 17 00:00:00 2001
+From: Will Newton <[email protected]>
+Date: Tue, 21 May 2013 22:11:05 +0100
+Subject: [PATCH] Foundation/include/Poco/Platform.h: Add support for AArch64.
+
+Add support for big and little endian AArch64 preprocessor defines.
+---
+ Foundation/include/Poco/Platform.h | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Foundation/include/Poco/Platform.h

b/Foundation/include/Poco/Platform.h

package/poco/poco-aarch64.patch new file +11 -0
+index f34f277..8ddb4cb 100644
+--- a/Foundation/include/Poco/Platform.h
++++ b/Foundation/include/Poco/Platform.h
+@@ -145,6 +145,7 @@
+ #define POCO_ARCH_S390    0x0c
+ #define POCO_ARCH_SH      0x0d
+ #define POCO_ARCH_NIOS2   0x0e
++#define POCO_ARCH_AARCH64 0x0f
+
+
+ #if defined(__ALPHA) || defined(__alpha) || defined(__alpha__) ||

defined(_M_ALPHA)
+@@ -207,7 +208,12 @@

package/poco/poco-aarch64.patch new file +16 -0
+     #else
+         #define POCO_ARCH_BIG_ENDIAN 1
+     #endif
+-
++#elif defined(__AARCH64EL__)
++    #define POCO_ARCH POCO_ARCH_AARCH64
++    #define POCO_ARCH_LITTLE_ENDIAN 1
++#elif defined(__AARCH64EB__)
++    #define POCO_ARCH POCO_ARCH_AARCH64
++    #define POCO_ARCH_BIG_ENDIAN 1
+ #endif
+
+
+--
+1.8.1.4
+
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#3 lore raw

PATCH 1/1 poco: Add upstream patch to add support for aarch64.

In reply to Will Newton

Dear Will Newton,

Quoted 5 lines · Will Newton
---
 package/poco/poco-aarch64.patch | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/poco/poco-aarch64.patch

Thanks, I've applied and tested that one here, after making the necessary changes following 1c3afe4bc14a55aa491be270c24f31d1c5d4d8f1.

I will send the patch as part of a pull request to Peter later today.

Thanks,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com