-
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 v10: Update boot Kbuild makefile.
- 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.
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,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' |