OMAP3 SRF: Add CORE rate table param in OMAP-PM
[linux-ginger.git] / arch / m32r / boot / compressed / Makefile
blob560484ae35ec6add544d0cb4cf1c514853ec4a57
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
10 OBJECTS = $(obj)/head.o $(obj)/misc.o
13 # IMAGE_OFFSET is the load offset of the compression loader
15 #IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x2000])
16 #IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x00400000])
18 LDFLAGS_vmlinux := -T
20 $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE
21 $(call if_changed,ld)
24 $(obj)/vmlinux.bin: vmlinux FORCE
25 $(call if_changed,objcopy)
27 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
28 $(call if_changed,gzip)
30 CFLAGS_misc.o += -fpic
32 ifdef CONFIG_MMU
33 LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r-linux -T
34 else
35 LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r -T
36 endif
38 OBJCOPYFLAGS += -R .empty_zero_page
40 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
41 $(call if_changed,ld)