From: Christian Marangi Date: Thu, 24 Oct 2024 23:12:35 +0000 (+0200) Subject: apk: add patch adding support for ARM Big-Endian arch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f59cbe55d18aad490e9893e45fe1bfaef440574c;p=openwrt%2Fstaging%2Fpepe2k.git 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 --- 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 +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 +--- + 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 +