1 diff -urN linux-2.6.19.2/scripts/Makefile.lib linux-2.6.19.2.new/scripts/Makefile.lib
2 --- linux-2.6.19.2/scripts/Makefile.lib 2007-01-10 20:10:37.000000000 +0100
3 +++ linux-2.6.19.2.new/scripts/Makefile.lib 2007-04-15 23:51:54.000000000 +0200
5 quiet_cmd_gzip = GZIP $@
6 cmd_gzip = gzip -f -9 < $< > $@
11 +quiet_cmd_lzma = LZMA $@
12 +cmd_lzma = bash -e scripts/lzma_kern $< $@ -lc7 -lp0 -pb0
14 +# cmd_lzma = lzmacomp $< 700 > $@
15 diff -u linux/scripts/lzma_kern linux/scripts/lzma_kern
16 --- linux/scripts/lzma_kern 2007-07-27 20:18:17.013014750 -0700
17 +++ linux/scripts/lzma_kern 2007-07-27 20:18:17.013014750 -0700
19 +get-size() { echo "$5" ;}
20 +printf -v len '%.8x' "$(get-size $(ls -l "$1"))"
22 +echo -ne "\x$(echo $len | cut -c 7,8)\x$(echo $len | cut -c 5,6)\x$(echo $len | cut -c 3,4)\x$(echo $len | cut -c 1,2)" >> "$2"
23 diff -urN linux-2.6.24/arch/x86/boot/compressed/Makefile_32 linux-2.6.24.new/arch/x86/boot/compressed/Makefile_32
24 --- linux-2.6.24/arch/x86/boot/compressed/Makefile_32 2008-01-24 23:58:37.000000000 +0100
25 +++ linux-2.6.24.new/arch/x86/boot/compressed/Makefile_32 2008-02-13 15:21:03.000000000 +0100
27 # create a compressed vmlinux image from the original vmlinux
30 -targets := vmlinux vmlinux.bin vmlinux.bin.gz head_32.o misc_32.o piggy.o \
31 - vmlinux.bin.all vmlinux.relocs
32 +targets := vmlinux vmlinux.bin vmlinux.bin.lzma head_32.o piggy.o \
33 + vmlinux.bin.all vmlinux.relocs lzma_misc.o
34 EXTRA_AFLAGS := -traditional
38 $(call cc-option,-fno-stack-protector)
39 LDFLAGS := -m elf_i386
41 -$(obj)/vmlinux: $(src)/vmlinux_32.lds $(obj)/head_32.o $(obj)/misc_32.o $(obj)/piggy.o FORCE
42 +$(obj)/vmlinux: $(src)/vmlinux_32.lds $(obj)/head_32.o $(obj)/lzma_misc.o $(obj)/piggy.o FORCE
47 $(call if_changed,relocbin)
49 ifdef CONFIG_RELOCATABLE
50 -$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin.all FORCE
51 - $(call if_changed,gzip)
52 +$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin.all FORCE
53 + $(call if_changed,lzma)
55 -$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
56 - $(call if_changed,gzip)
57 +$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
58 + $(call if_changed,lzma)
61 LDFLAGS_piggy.o := -r --format binary --oformat elf32-i386 -T
63 -$(obj)/piggy.o: $(src)/vmlinux_32.scr $(obj)/vmlinux.bin.gz FORCE
64 +$(obj)/piggy.o: $(src)/vmlinux_32.scr $(obj)/vmlinux.bin.lzma FORCE