kernel/scripts/xz_wrap.sh
.. .. @@ -9,6 +9,8 @@ 9 9 # You can do whatever you want with this file. 10 10 # 11 11 12 +. include/config/auto.conf13 +12 14 BCJ= 13 15 LZMA2OPTS= 14 16 .. .. @@ -20,4 +22,8 @@ 20 22 sparc) BCJ=--sparc ;; 21 23 esac 22 24 23 -exec xz --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB25 +if [ -n "${CONFIG_THUMB2_KERNEL}" ]; then26 + BCJ=--armthumb27 +fi28 +29 +exec $XZ --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB