linux-2.6.22.1-002-lzma-vmlinuz.01.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. diff -rdup linux-2.6.21.5.oorig/arch/i386/boot/compressed/Makefile linux-2.6.21.5/arch/i386/boot/compressed/Makefile
  2. --- linux-2.6.21.5.oorig/arch/i386/boot/compressed/Makefile 2007-07-24 13:08:51.000000000 +0200
  3. +++ linux-2.6.21.5/arch/i386/boot/compressed/Makefile 2007-07-24 14:54:38.000000000 +0200
  4. @@ -4,7 +4,7 @@
  5. # create a compressed vmlinux image from the original vmlinux
  6. #
  7. -tragets := head.o lzma_misc.o piggy.o \
  8. +targets := head.o lzma_misc.o piggy.o \
  9. vmlinux.bin.all vmlinux.relocs \
  10. vmlinux vmlinux.bin vmlinux.bin.gz
  11. EXTRA_AFLAGS := -traditional
  12. diff -rdup linux-2.6.21.5.oorig/scripts/gen_lzma_initramfs_list.sh linux-2.6.21.5/scripts/gen_lzma_initramfs_list.sh
  13. --- linux-2.6.21.5.oorig/scripts/gen_lzma_initramfs_list.sh 2007-07-24 13:08:51.000000000 +0200
  14. +++ linux-2.6.21.5/scripts/gen_lzma_initramfs_list.sh 2007-07-24 15:12:10.000000000 +0200
  15. @@ -253,7 +253,7 @@ while [ $# -gt 0 ]; do
  16. shift
  17. ;;
  18. "-s")
  19. - opt="-d16"
  20. + #opt="-d16" ? what was that supposed to do?
  21. ;;
  22. "-d") # display default initramfs list
  23. default_list="$arg"
  24. @@ -286,7 +286,7 @@ if [ ! -z ${output_file} ]; then
  25. cpio_tfile=${cpio_file}
  26. fi
  27. rm ${cpio_list}
  28. - lzma e ${cpio_tfile} ${output_file} ${opt}
  29. + lzma -z ${cpio_tfile} ${opt} -c > ${output_file}
  30. [ -z ${cpio_file} ] && rm ${cpio_tfile}
  31. fi
  32. exit 0
  33. --- linux-2.6.21.5.oorig/arch/i386/boot/compressed/lzma_misc.c 2007-07-24 15:24:44.000000000 +0200
  34. +++ linux-2.6.21.5/arch/i386/boot/compressed/lzma_misc.c 2007-07-24 17:09:40.000000000 +0200
  35. @@ -241,7 +241,6 @@ static int lzma_unzip(uch* output)
  36. static int read_byte(void *object, const unsigned char **buffer, SizeT *bufferSize)
  37. {
  38. - static unsigned int i = 0;
  39. static unsigned char val;
  40. *bufferSize = 1;
  41. val = get_byte();
  42. --- linux-2.6.21.5.oorig/scripts/Makefile.lib 2007-07-24 15:24:44.000000000 +0200
  43. +++ linux-2.6.21.5/scripts/Makefile.lib 2007-07-24 18:03:57.000000000 +0200
  44. @@ -165,6 +165,7 @@ cmd_gzip = gzip -f -9 < $< > $@
  45. # LZMA
  46. #
  47. quiet_cmd_lzma = LZMA $@
  48. -cmd_lzma = lzma e $< $@ -lc7 -lp0 -pb0 2>/dev/null
  49. +#cmd_lzma = lzma e $< $@ -lc7 -lp0 -pb0 2>/dev/null
  50. +cmd_lzma = lzma -z $< -c > $@