Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1333a694836cb7e561b1b70d60ccceb8fabeead2
Commit:     1333a694836cb7e561b1b70d60ccceb8fabeead2
Parent:     87f5a7f7033ce4bbad082983332bbce43e849c84
Author:     Jesper Nilsson <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 30 16:10:30 2007 +0100
Committer:  Jesper Nilsson <[EMAIL PROTECTED]>
CommitDate: Fri Feb 8 11:06:25 2008 +0100

    CRIS v10: Update boot/compressed Kbuild makefile.
    
    - Remove old specific targets, use more generic ones instead.
    - Use if_changed to avoid creating new images when no change.
    - Use EXTRA_CFLAGS instead of CFLAGS.
---
 arch/cris/arch-v10/boot/compressed/Makefile |   80 ++++++++++++---------------
 1 files changed, 35 insertions(+), 45 deletions(-)

diff --git a/arch/cris/arch-v10/boot/compressed/Makefile 
b/arch/cris/arch-v10/boot/compressed/Makefile
dissimilarity index 88%
index 6584a44..17ba271 100644
--- a/arch/cris/arch-v10/boot/compressed/Makefile
+++ b/arch/cris/arch-v10/boot/compressed/Makefile
@@ -1,45 +1,35 @@
-#
-# create a compressed vmlinuz image from the binary vmlinux.bin file
-#
-target = $(target_compressed_dir)
-src    = $(src_compressed_dir)
-
-CC = gcc-cris -melf $(LINUXINCLUDE)
-CFLAGS = -O2
-LD = ld-cris
-OBJCOPY = objcopy-cris
-OBJCOPYFLAGS = -O binary --remove-section=.bss
-OBJECTS = $(target)/head.o $(target)/misc.o
-
-# files to compress
-SYSTEM = $(objtree)/vmlinux.bin
-
-all: $(target_compressed_dir)/vmlinuz
-
-$(target)/decompress.bin: $(OBJECTS)
-       $(LD) -T $(src)/decompress.ld -o $(target)/decompress.o $(OBJECTS)
-       $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/decompress.o 
$(target)/decompress.bin
-
-# Create vmlinuz image in top-level build directory
-$(target_compressed_dir)/vmlinuz: $(target) piggy.img $(target)/decompress.bin
-       @echo "  COMPR   vmlinux.bin --> vmlinuz"
-       @cat $(target)/decompress.bin piggy.img > 
$(target_compressed_dir)/vmlinuz
-       @rm -f piggy.img
-
-$(target)/head.o: $(src)/head.S
-       $(CC) -D__ASSEMBLY__ -traditional -c $< -o $@
-
-$(target)/misc.o: $(src)/misc.c
-       $(CC) -D__KERNEL__ -c $< -o $@
-
-# gzip the kernel image
-
-piggy.img: $(SYSTEM)
-       @cat $(SYSTEM) | gzip -f -9 > piggy.img
-
-$(target):
-       mkdir -p $(target)
-
-clean:
-       rm -f piggy.img $(objtree)/vmlinuz
-
+#
+# arch/cris/arch-v10/boot/compressed/Makefile
+#
+
+CC = gcc-cris -melf $(LINUXINCLUDE)
+EXTRA_CFLAGS = -O2
+LD = ld-cris
+LDFLAGS = -T $(obj)/decompress.ld
+OBJECTS = $(obj)/head.o $(obj)/misc.o
+OBJCOPY = objcopy-cris
+OBJCOPYFLAGS = -O binary --remove-section=.bss
+
+quiet_cmd_image = BUILD   $@
+cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
+
+targets := vmlinux piggy.gz decompress.o decompress.bin
+
+$(obj)/decompress.o: $(OBJECTS) FORCE
+       $(call if_changed,ld)
+
+$(obj)/decompress.bin: $(obj)/decompress.o FORCE
+       $(call if_changed,objcopy)
+
+$(obj)/head.o: $(obj)/head.S .config
+       @$(CC) -D__ASSEMBLY__ -traditional -c $< -o $@
+
+$(obj)/misc.o: $(obj)/misc.c .config
+       @$(CC) -D__KERNEL__ -c $< -o $@
+
+$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
+       $(call if_changed,image)
+
+$(obj)/piggy.gz: $(obj)/../Image FORCE
+       $(call if_changed,gzip)
+
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to