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.
This commit is contained in:
Родитель
1e4cc2c8c7
Коммит
3d6f7871ad
|
@ -1,14 +1,21 @@
|
||||||
#
|
#
|
||||||
# arch/cris/arch-v32/boot/Makefile
|
# 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
|
subdir- := compressed rescue
|
||||||
@$(MAKE) -f $(src)/compressed/Makefile $(objtree)/vmlinuz
|
targets := Image
|
||||||
|
|
||||||
clean:
|
$(obj)/Image: vmlinux FORCE
|
||||||
rm -f zImage tools/build compressed/vmlinux.out
|
$(call if_changed,objcopy)
|
||||||
@$(MAKE) -f $(src)/compressed/Makefile clean
|
@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'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче