2 # linux/arch/etrax100/boot/compressed/Makefile
4 # create a compressed vmlinux image from the original vmlinux files and romfs
9 HPATH = $(TOPDIR)/include
14 CC = gcc-cris -melf -I $(TOPDIR)/include
17 OBJCOPY = objcopy-cris
19 OBJECTS = head.o misc.o
22 SYSTEM = $(TOPDIR)/vmlinux.bin
26 decompress.bin: $(OBJECTS)
27 $(LD) -T decompress.ld -o decompress.o $(OBJECTS)
28 $(OBJCOPY) -O binary --remove-section=.bss decompress.o decompress.bin
29 # save it for mkprod in the topdir.
30 cp decompress.bin $(TOPDIR)
33 vmlinuz: piggy.img decompress.bin
34 cat decompress.bin piggy.img > vmlinuz
38 $(CC) -D__ASSEMBLY__ -traditional -c head.S -o head.o
40 # gzip the kernel image
43 cat $(SYSTEM) | gzip -f -9 > piggy.img
46 rm -f piggy.img vmlinuz vmlinuz.o
49 $(CC) -M *.S *.c > .depend