m68knommu: move ColdFire pit.c to its own coldfire directory
[wrt350n-kernel.git] / arch / m32r / boot / compressed / Makefile
blobd908e1d3c07f11f79759e92020ce779a1360e507
2 # linux/arch/sh/boot/compressed/Makefile
4 # create a compressed vmlinux image from the original vmlinux
7 targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o \
8 piggy.o vmlinux.lds
9 EXTRA_AFLAGS := -traditional
11 OBJECTS = $(obj)/head.o $(obj)/misc.o
14 # IMAGE_OFFSET is the load offset of the compression loader
16 #IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x2000])
17 #IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x00400000])
19 LDFLAGS_vmlinux := -T
21 $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE
22 $(call if_changed,ld)
25 $(obj)/vmlinux.bin: vmlinux FORCE
26 $(call if_changed,objcopy)
28 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
29 $(call if_changed,gzip)
31 CFLAGS_misc.o += -fpic
33 ifdef CONFIG_MMU
34 LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r-linux -T
35 else
36 LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r -T
37 endif
39 OBJCOPYFLAGS += -R .empty_zero_page
41 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
42 $(call if_changed,ld)