2005-04-17 06:20:36 +08:00
|
|
|
#
|
2009-04-21 17:44:57 +08:00
|
|
|
# arch/cris/boot/compressed/Makefile
|
2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
|
2008-06-30 05:15:19 +08:00
|
|
|
asflags-y += $(LINUXINCLUDE)
|
|
|
|
ccflags-y += -O2 $(LINUXINCLUDE)
|
2009-04-21 17:44:57 +08:00
|
|
|
|
|
|
|
# asflags-$(CONFIG_ETRAX_ARCH_V32) += -I$(srctree)/include/asm/mach \
|
|
|
|
# -I$(srctree)/include/asm/arch
|
|
|
|
# ccflags-$(CONFIG_ETRAX_ARCH_V32) += -O2 -I$(srctree)/include/asm/mach
|
|
|
|
# -I$(srctree)/include/asm/arch
|
|
|
|
|
|
|
|
arch-$(CONFIG_ETRAX_ARCH_V10) = v10
|
|
|
|
arch-$(CONFIG_ETRAX_ARCH_V32) = v32
|
|
|
|
|
|
|
|
ldflags-y += -T $(srctree)/$(src)/decompress_$(arch-y).lds
|
|
|
|
|
|
|
|
OBJECTS-$(CONFIG_ETRAX_ARCH_V32) = $(obj)/head_v32.o
|
|
|
|
OBJECTS-$(CONFIG_ETRAX_ARCH_V10) = $(obj)/head_v10.o
|
|
|
|
OBJECTS= $(OBJECTS-y) $(obj)/misc.o
|
2005-04-17 06:20:36 +08:00
|
|
|
OBJCOPYFLAGS = -O binary --remove-section=.bss
|
|
|
|
|
2007-11-30 23:10:30 +08:00
|
|
|
quiet_cmd_image = BUILD $@
|
|
|
|
cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-11-30 23:10:30 +08:00
|
|
|
targets := vmlinux piggy.gz decompress.o decompress.bin
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-11-30 23:10:30 +08:00
|
|
|
$(obj)/decompress.o: $(OBJECTS) FORCE
|
|
|
|
$(call if_changed,ld)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-11-30 23:10:30 +08:00
|
|
|
$(obj)/decompress.bin: $(obj)/decompress.o FORCE
|
|
|
|
$(call if_changed,objcopy)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-11-30 23:10:30 +08:00
|
|
|
$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
|
|
|
|
$(call if_changed,image)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-11-30 23:10:30 +08:00
|
|
|
$(obj)/piggy.gz: $(obj)/../Image FORCE
|
|
|
|
$(call if_changed,gzip)
|