Skip to content

Commit

Permalink
CRIS v10: Update boot Kbuild makefile.
Browse files Browse the repository at this point in the history
- Remove old specific targets, use more generic ones instead.
  • Loading branch information
Jesper Nilsson committed Feb 8, 2008
1 parent 2c2314b commit 87f5a7f
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions arch/cris/arch-v10/boot/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
#
# arch/cris/boot/Makefile
# arch/cris/arch-v10/boot/Makefile
#
target = $(target_boot_dir)
src = $(src_boot_dir)

zImage: compressed/vmlinuz
OBJCOPY = objcopy-cris
OBJCOPYFLAGS = -O binary --remove-section=.bss

compressed/vmlinuz:
@$(MAKE) -f $(src)/compressed/Makefile $(target_compressed_dir)/vmlinuz
subdir- := compressed rescue
targets := Image

clean:
@$(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'

0 comments on commit 87f5a7f

Please sign in to comment.