diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2007-11-30 10:24:07 -0500 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-02-08 05:06:26 -0500 |
commit | 3d6f7871ada50e607fe1dae64d2d726a6764451a (patch) | |
tree | 1a632bd4faf4ca544a97088e6358083a8ff95e9a /arch/cris/arch-v32/boot/Makefile | |
parent | 1e4cc2c8c7cb54ce0e5a7002c68aca9e89607117 (diff) |
CRIS v32: Update boot Kbuild makefile.
- Remove old specific targets, use more generic ones instead.
- Use if_changed to avoid creating new images when no change.
Diffstat (limited to 'arch/cris/arch-v32/boot/Makefile')
-rw-r--r-- | arch/cris/arch-v32/boot/Makefile | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/arch/cris/arch-v32/boot/Makefile b/arch/cris/arch-v32/boot/Makefile index 26f293ab9617..3f91349c5f12 100644 --- a/arch/cris/arch-v32/boot/Makefile +++ b/arch/cris/arch-v32/boot/Makefile | |||
@@ -1,14 +1,21 @@ | |||
1 | # | 1 | # |
2 | # arch/cris/arch-v32/boot/Makefile | 2 | # arch/cris/arch-v32/boot/Makefile |
3 | # | 3 | # |
4 | target = $(target_boot_dir) | ||
5 | src = $(src_boot_dir) | ||
6 | 4 | ||
7 | zImage: compressed/vmlinuz | 5 | OBJCOPY = objcopy-cris |
6 | OBJCOPYFLAGS = -O binary -R .note -R .comment | ||
8 | 7 | ||
9 | compressed/vmlinuz: $(objtree)/vmlinux | 8 | subdir- := compressed rescue |
10 | @$(MAKE) -f $(src)/compressed/Makefile $(objtree)/vmlinuz | 9 | targets := Image |
11 | 10 | ||
12 | clean: | 11 | $(obj)/Image: vmlinux FORCE |
13 | rm -f zImage tools/build compressed/vmlinux.out | 12 | $(call if_changed,objcopy) |
14 | @$(MAKE) -f $(src)/compressed/Makefile clean | 13 | @echo ' Kernel: $@ is ready' |
14 | |||
15 | $(obj)/compressed/vmlinux: $(obj)/Image FORCE | ||
16 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ | ||
17 | $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin | ||
18 | |||
19 | $(obj)/zImage: $(obj)/compressed/vmlinux | ||
20 | @cp $< $@ | ||
21 | @echo ' Kernel: $@ is ready' | ||