mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 09:06:55 +07:00
3d6f7871ad
- Remove old specific targets, use more generic ones instead. - Use if_changed to avoid creating new images when no change.
22 lines
480 B
Makefile
22 lines
480 B
Makefile
#
|
|
# arch/cris/arch-v32/boot/Makefile
|
|
#
|
|
|
|
OBJCOPY = objcopy-cris
|
|
OBJCOPYFLAGS = -O binary -R .note -R .comment
|
|
|
|
subdir- := compressed rescue
|
|
targets := Image
|
|
|
|
$(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'
|