Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # arch/cris/boot/compressed/Makefile
  3. #
  4. asflags-y += $(LINUXINCLUDE)
  5. ccflags-y += -O2 $(LINUXINCLUDE)
  6. # asflags-$(CONFIG_ETRAX_ARCH_V32) += -I$(srctree)/include/asm/mach \
  7. # -I$(srctree)/include/asm/arch
  8. # ccflags-$(CONFIG_ETRAX_ARCH_V32) += -O2 -I$(srctree)/include/asm/mach
  9. # -I$(srctree)/include/asm/arch
  10. arch-$(CONFIG_ETRAX_ARCH_V10) = v10
  11. arch-$(CONFIG_ETRAX_ARCH_V32) = v32
  12. ldflags-y += -T $(srctree)/$(src)/decompress_$(arch-y).lds
  13. OBJECTS-$(CONFIG_ETRAX_ARCH_V32) = $(obj)/head_v32.o
  14. OBJECTS-$(CONFIG_ETRAX_ARCH_V10) = $(obj)/head_v10.o
  15. OBJECTS= $(OBJECTS-y) $(obj)/misc.o
  16. OBJCOPYFLAGS = -O binary --remove-section=.bss
  17. quiet_cmd_image = BUILD $@
  18. cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
  19. targets := vmlinux piggy.gz decompress.o decompress.bin
  20. $(obj)/decompress.o: $(OBJECTS) FORCE
  21. $(call if_changed,ld)
  22. $(obj)/decompress.bin: $(obj)/decompress.o FORCE
  23. $(call if_changed,objcopy)
  24. $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
  25. $(call if_changed,image)
  26. $(obj)/piggy.gz: $(obj)/../Image FORCE
  27. $(call if_changed,gzip)