mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
66ab3a74c5
Merge the machine dependent boot directories for v10 and v32. This avoids some code duplication and eases the way for further merging later on. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
24 lines
572 B
Makefile
24 lines
572 B
Makefile
#
|
|
# arch/cris/boot/Makefile
|
|
#
|
|
|
|
objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
|
|
objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss
|
|
|
|
OBJCOPYFLAGS = -O binary $(objcopyflags-y)
|
|
|
|
|
|
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'
|