brcm47xx: remove support for old kernel versions
[openwrt.git] / target / linux / generic / patches-2.6.34 / 998-openwrt_lzma_options.patch
1 --- a/scripts/Makefile.lib
2 +++ b/scripts/Makefile.lib
3 @@ -238,7 +238,7 @@ cmd_bzip2 = (cat $(filter-out FORCE,$^)
4
5 quiet_cmd_lzma = LZMA $@
6 cmd_lzma = (cat $(filter-out FORCE,$^) | \
7 - lzma -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
8 + lzma e -d20 -lc1 -lp2 -pb2 -eos -si -so && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
9 (rm -f $@ ; false)
10
11 quiet_cmd_lzo = LZO $@
12 --- a/scripts/gen_initramfs_list.sh
13 +++ b/scripts/gen_initramfs_list.sh
14 @@ -225,7 +225,7 @@ cpio_list=
15 output="/dev/stdout"
16 output_file=""
17 is_cpio_compressed=
18 -compr="gzip -9 -f"
19 +compr="gzip -9 -f -"
20
21 arg="$1"
22 case "$arg" in
23 @@ -239,9 +239,9 @@ case "$arg" in
24 output_file="$1"
25 cpio_list="$(mktemp ${TMPDIR:-/tmp}/cpiolist.XXXXXX)"
26 output=${cpio_list}
27 - echo "$output_file" | grep -q "\.gz$" && compr="gzip -9 -f"
28 - echo "$output_file" | grep -q "\.bz2$" && compr="bzip2 -9 -f"
29 - echo "$output_file" | grep -q "\.lzma$" && compr="lzma -9 -f"
30 + echo "$output_file" | grep -q "\.gz$" && compr="gzip -9 -f -"
31 + echo "$output_file" | grep -q "\.bz2$" && compr="bzip2 -9 -f -"
32 + echo "$output_file" | grep -q "\.lzma$" && compr="lzma e -d20 -lc1 -lp2 -pb2 -eos -si -so"
33 echo "$output_file" | grep -q "\.cpio$" && compr="cat"
34 shift
35 ;;
36 @@ -292,7 +292,7 @@ if [ ! -z ${output_file} ]; then
37 if [ "${is_cpio_compressed}" = "compressed" ]; then
38 cat ${cpio_tfile} > ${output_file}
39 else
40 - (cat ${cpio_tfile} | ${compr} - > ${output_file}) \
41 + (cat ${cpio_tfile} | ${compr} > ${output_file}) \
42 || (rm -f ${output_file} ; false)
43 fi
44 [ -z ${cpio_file} ] && rm ${cpio_tfile}
45 --- a/lib/decompress.c
46 +++ b/lib/decompress.c
47 @@ -36,6 +36,7 @@ static const struct compress_format {
48 { {037, 0236}, "gzip", gunzip },
49 { {0x42, 0x5a}, "bzip2", bunzip2 },
50 { {0x5d, 0x00}, "lzma", unlzma },
51 + { {0x6d, 0x00}, "lzma-openwrt", unlzma },
52 { {0x89, 0x4c}, "lzo", unlzo },
53 { {0, 0}, NULL, NULL }
54 };
This page took 0.04882 seconds and 5 git commands to generate.