2 # linux/arch/etrax100/boot/compressed/Makefile
4 # create a compressed vmlinux image from the original vmlinux files and romfs
7 CC = gcc-cris -melf -I $(TOPDIR)/include
10 OBJCOPY = objcopy-cris
11 OBJCOPYFLAGS = -O binary --remove-section=.bss
12 OBJECTS = head.o misc.o
15 SYSTEM = $(TOPDIR)/vmlinux.bin
19 decompress.bin: $(OBJECTS)
20 $(LD) -T decompress.ld -o decompress.o $(OBJECTS)
21 $(OBJCOPY) $(OBJCOPYFLAGS) decompress.o decompress.bin
22 # save it for mkprod in the topdir.
23 cp decompress.bin $(TOPDIR)
26 vmlinuz: piggy.img decompress.bin
27 cat decompress.bin piggy.img > vmlinuz
31 $(CC) -D__ASSEMBLY__ -traditional -c head.S -o head.o
33 # gzip the kernel image
36 cat $(SYSTEM) | gzip -f -9 > piggy.img
39 rm -f piggy.img vmlinuz vmlinuz.o