Blame view

kernel/linux-imx6_3.14.28/arch/cris/boot/Makefile 608 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  #
  # arch/cris/boot/Makefile
  #
  
  objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
  objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss --remove-section=.note.gnu.build-id
  
  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'