-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Jesper Nilsson
committed
Feb 8, 2008
1 parent
1e4cc2c
commit 3d6f787
Showing
1 changed file
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |