diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-02-08 19:17:40 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-02-08 19:17:40 +0000 |
commit | bff9e9b63be3ff7d453d971cff37c5fa84f3ff95 (patch) | |
tree | 33fd7a004fdadef569b8cbe74054ff1692906e98 /target/linux/rdc/patches-2.6.24/600-x86_lzma.patch | |
parent | 95316451cb8a4d8c63fb5cc7074912f497815f12 (diff) |
[rdc] refresh 2.6.24 patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14451 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rdc/patches-2.6.24/600-x86_lzma.patch')
-rw-r--r-- | target/linux/rdc/patches-2.6.24/600-x86_lzma.patch | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/target/linux/rdc/patches-2.6.24/600-x86_lzma.patch b/target/linux/rdc/patches-2.6.24/600-x86_lzma.patch index 266c042971..9d94950b5c 100644 --- a/target/linux/rdc/patches-2.6.24/600-x86_lzma.patch +++ b/target/linux/rdc/patches-2.6.24/600-x86_lzma.patch @@ -1,7 +1,6 @@ -diff -urN linux-2.6.19.2/scripts/Makefile.lib linux-2.6.19.2.new/scripts/Makefile.lib ---- linux-2.6.19.2/scripts/Makefile.lib 2007-01-10 20:10:37.000000000 +0100 -+++ linux-2.6.19.2.new/scripts/Makefile.lib 2007-04-15 23:51:54.000000000 +0200 -@@ -162,4 +162,9 @@ +--- a/scripts/Makefile.lib ++++ b/scripts/Makefile.lib +@@ -166,4 +166,9 @@ cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) quiet_cmd_gzip = GZIP $@ cmd_gzip = gzip -f -9 < $< > $@ @@ -12,17 +11,15 @@ diff -urN linux-2.6.19.2/scripts/Makefile.lib linux-2.6.19.2.new/scripts/Makefil +cmd_lzma = bash -e scripts/lzma_kern $< $@ -lc7 -lp0 -pb0 +# to use lzmacomp, +# cmd_lzma = lzmacomp $< 700 > $@ -diff -u linux/scripts/lzma_kern linux/scripts/lzma_kern ---- linux/scripts/lzma_kern 2007-07-27 20:18:17.013014750 -0700 -+++ linux/scripts/lzma_kern 2007-07-27 20:18:17.013014750 -0700 +--- /dev/null ++++ b/scripts/lzma_kern @@ -0,0 +1,4 @@ +get-size() { echo "$5" ;} +printf -v len '%.8x' "$(get-size $(ls -l "$1"))" +lzma e "$@" +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" -diff -urN linux-2.6.24/arch/x86/boot/compressed/Makefile_32 linux-2.6.24.new/arch/x86/boot/compressed/Makefile_32 ---- linux-2.6.24/arch/x86/boot/compressed/Makefile_32 2008-01-24 23:58:37.000000000 +0100 -+++ linux-2.6.24.new/arch/x86/boot/compressed/Makefile_32 2008-02-13 15:21:03.000000000 +0100 +--- a/arch/x86/boot/compressed/Makefile_32 ++++ b/arch/x86/boot/compressed/Makefile_32 @@ -4,8 +4,8 @@ # create a compressed vmlinux image from the original vmlinux # @@ -34,7 +31,7 @@ diff -urN linux-2.6.24/arch/x86/boot/compressed/Makefile_32 linux-2.6.24.new/arc EXTRA_AFLAGS := -traditional LDFLAGS_vmlinux := -T -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ KBUILD_CFLAGS := -m32 -D__KERNEL__ $(LI $(call cc-option,-fno-stack-protector) LDFLAGS := -m elf_i386 @@ -43,7 +40,7 @@ diff -urN linux-2.6.24/arch/x86/boot/compressed/Makefile_32 linux-2.6.24.new/arc $(call if_changed,ld) @: -@@ -37,14 +37,14 @@ +@@ -37,14 +37,14 @@ $(obj)/vmlinux.bin.all: $(vmlinux.bin.al $(call if_changed,relocbin) ifdef CONFIG_RELOCATABLE |