[packages] upx: add support for avr32 (closes: #7009)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20647 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6c9f9d8abb
commit
18a255fe8b
21
utils/upx/patches/101-avr32.patch
Normal file
21
utils/upx/patches/101-avr32.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- a/src/miniacc.h
|
||||
+++ b/src/miniacc.h
|
||||
@@ -756,6 +756,9 @@
|
||||
#elif (UINT_MAX <= ACC_0xffffL) && defined(__AVR__)
|
||||
# define ACC_ARCH_AVR 1
|
||||
# define ACC_INFO_ARCH "avr"
|
||||
+#elif defined(__avr32__)
|
||||
+# define ACC_ARCH_AVR32 1
|
||||
+# define ACC_INFO_ARCH "avr32"
|
||||
#elif defined(__bfin__)
|
||||
# define ACC_ARCH_BLACKFIN 1
|
||||
# define ACC_INFO_ARCH "blackfin"
|
||||
@@ -1316,7 +1319,7 @@ extern "C" {
|
||||
# define ACC_ABI_BIG_ENDIAN 1
|
||||
#elif (ACC_ARCH_ALPHA || ACC_ARCH_AMD64 || ACC_ARCH_BLACKFIN || ACC_ARCH_CRIS || ACC_ARCH_I086 || ACC_ARCH_I386 || ACC_ARCH_MSP430)
|
||||
# define ACC_ABI_LITTLE_ENDIAN 1
|
||||
-#elif (ACC_ARCH_M68K || ACC_ARCH_S390)
|
||||
+#elif (ACC_ARCH_AVR32 || ACC_ARCH_M68K || ACC_ARCH_S390)
|
||||
# define ACC_ABI_BIG_ENDIAN 1
|
||||
#elif 1 && defined(__IAR_SYSTEMS_ICC__) && defined(__LITTLE_ENDIAN__)
|
||||
# if (__LITTLE_ENDIAN__ == 1)
|
Loading…
x
Reference in New Issue
Block a user