aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/boot/compressed/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris/boot/compressed/Makefile')
-rw-r--r--arch/cris/boot/compressed/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/cris/boot/compressed/Makefile b/arch/cris/boot/compressed/Makefile
new file mode 100644
index 000000000000..8fe9338c1775
--- /dev/null
+++ b/arch/cris/boot/compressed/Makefile
@@ -0,0 +1,38 @@
1#
2# arch/cris/boot/compressed/Makefile
3#
4
5asflags-y += $(LINUXINCLUDE)
6ccflags-y += -O2 $(LINUXINCLUDE)
7
8# asflags-$(CONFIG_ETRAX_ARCH_V32) += -I$(srctree)/include/asm/mach \
9# -I$(srctree)/include/asm/arch
10# ccflags-$(CONFIG_ETRAX_ARCH_V32) += -O2 -I$(srctree)/include/asm/mach
11# -I$(srctree)/include/asm/arch
12
13arch-$(CONFIG_ETRAX_ARCH_V10) = v10
14arch-$(CONFIG_ETRAX_ARCH_V32) = v32
15
16ldflags-y += -T $(srctree)/$(src)/decompress_$(arch-y).lds
17
18OBJECTS-$(CONFIG_ETRAX_ARCH_V32) = $(obj)/head_v32.o
19OBJECTS-$(CONFIG_ETRAX_ARCH_V10) = $(obj)/head_v10.o
20OBJECTS= $(OBJECTS-y) $(obj)/misc.o
21OBJCOPYFLAGS = -O binary --remove-section=.bss
22
23quiet_cmd_image = BUILD $@
24cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
25
26targets := vmlinux piggy.gz decompress.o decompress.bin
27
28$(obj)/decompress.o: $(OBJECTS) FORCE
29 $(call if_changed,ld)
30
31$(obj)/decompress.bin: $(obj)/decompress.o FORCE
32 $(call if_changed,objcopy)
33
34$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
35 $(call if_changed,image)
36
37$(obj)/piggy.gz: $(obj)/../Image FORCE
38 $(call if_changed,gzip)