aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2012-03-19 12:26:04 +0200
committerLasse Collin <lasse.collin@tukaani.org>2012-03-19 12:26:04 +0200
commitecd42d3433f232c8472158e44812a8be1ef20fff (patch)
treed2913d776602d4f81a9a6598a5307ba2258ca0e2
parentdf8539e5818cd66236eb05778f2abb3788c858a1 (diff)
downloadxz-embedded-ecd42d3433f232c8472158e44812a8be1ef20fff.tar.gz
Fix xz_wrap.sh on SPARC and 32-bit x86.
ARCH for 32-bit x86 is i386, not x86. 32-bit and 64-bit SPARC have different ARCH values too. Use SRCARCH instead of ARCH to keep things simple.
-rwxr-xr-xlinux/scripts/xz_wrap.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/scripts/xz_wrap.sh b/linux/scripts/xz_wrap.sh
index 17a5798..7a2d372 100755
--- a/linux/scripts/xz_wrap.sh
+++ b/linux/scripts/xz_wrap.sh
@@ -12,8 +12,8 @@
BCJ=
LZMA2OPTS=
-case $ARCH in
- x86|x86_64) BCJ=--x86 ;;
+case $SRCARCH in
+ x86) BCJ=--x86 ;;
powerpc) BCJ=--powerpc ;;
ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;;
arm) BCJ=--arm ;;