]> err.no Git - linux-2.6/commitdiff
CRIS v32: Update boot Kbuild makefile.
authorJesper Nilsson <jesper.nilsson@axis.com>
Fri, 30 Nov 2007 15:24:07 +0000 (16:24 +0100)
committerJesper Nilsson <jesper.nilsson@axis.com>
Fri, 8 Feb 2008 10:06:26 +0000 (11:06 +0100)
- Remove old specific targets, use more generic ones instead.
- Use if_changed to avoid creating new images when no change.

arch/cris/arch-v32/boot/Makefile

index 26f293ab96178e22034626adf5fdae747e08f557..3f91349c5f121acf2e03c24d3f2d18a706157ed1 100644 (file)
@@ -1,14 +1,21 @@
 #
 # arch/cris/arch-v32/boot/Makefile
 #
-target = $(target_boot_dir)
-src    = $(src_boot_dir)
 
-zImage: compressed/vmlinuz
+OBJCOPY = objcopy-cris
+OBJCOPYFLAGS = -O binary -R .note -R .comment
 
-compressed/vmlinuz: $(objtree)/vmlinux
-       @$(MAKE) -f $(src)/compressed/Makefile $(objtree)/vmlinuz
+subdir- := compressed rescue
+targets := Image
 
-clean:
-       rm -f zImage tools/build compressed/vmlinux.out
-       @$(MAKE) -f $(src)/compressed/Makefile clean
+$(obj)/Image: vmlinux FORCE
+       $(call if_changed,objcopy)
+       @echo '  Kernel: $@ is ready'
+
+$(obj)/compressed/vmlinux: $(obj)/Image FORCE
+       $(Q)$(MAKE) $(build)=$(obj)/compressed $@
+       $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
+
+$(obj)/zImage:  $(obj)/compressed/vmlinux
+       @cp $< $@
+       @echo '  Kernel: $@ is ready'