[openwrt/openwrt] apk: add patch adding support for ARM Big-Endian arch
LEDE Commits
lede-commits at lists.infradead.org
Mon Oct 28 16:08:30 PDT 2024
ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f59cbe55d18aad490e9893e45fe1bfaef440574c
commit f59cbe55d18aad490e9893e45fe1bfaef440574c
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Fri Oct 25 01:12:35 2024 +0200
apk: add patch adding support for ARM Big-Endian arch
Add patch adding support for ARM Big-Endian arch like Intel XScale
IXP4xx SoC.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
...fines-add-default-arch-for-ARM-Big-Endian.patch | 29 ++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/package/system/apk/patches/0010-apk_defines-add-default-arch-for-ARM-Big-Endian.patch b/package/system/apk/patches/0010-apk_defines-add-default-arch-for-ARM-Big-Endian.patch
new file mode 100644
index 0000000000..1d031e7783
--- /dev/null
+++ b/package/system/apk/patches/0010-apk_defines-add-default-arch-for-ARM-Big-Endian.patch
@@ -0,0 +1,29 @@
+From ffcda7769279e75993110766555eea6d3c6baae7 Mon Sep 17 00:00:00 2001
+From: Christian Marangi <ansuelsmth at gmail.com>
+Date: Fri, 25 Oct 2024 01:09:41 +0200
+Subject: [PATCH] apk_defines: add default arch for ARM Big-Endian
+
+Add default arch for ARM Big-Endiang named armeb. One example of such
+target are devices based on the Intel XScale IXP4xx SoC.
+
+Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
+---
+ src/apk_defines.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/apk_defines.h b/src/apk_defines.h
+index c92dacd..06351df 100644
+--- a/src/apk_defines.h
++++ b/src/apk_defines.h
+@@ -126,6 +126,8 @@ static inline int IS_ERR(const void *ptr) { return (unsigned long)ptr >= (unsign
+ #define APK_DEFAULT_BASE_ARCH "armhf"
+ #elif defined(__arm__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+ #define APK_DEFAULT_BASE_ARCH "armel"
++#elif defined(__arm__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
++#define APK_DEFAULT_BASE_ARCH "armeb"
+ #elif defined(__aarch64__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+ #define APK_DEFAULT_BASE_ARCH "aarch64"
+ #elif defined(__s390x__)
+--
+2.45.2
+
More information about the lede-commits
mailing list