m32r: add NOTES to vmlinux.lds.S to remove .note.gnu.build-id section
[deliverable/linux.git] / arch / m32r / boot / compressed / Makefile
CommitLineData
1da177e4
LT
1#
2# linux/arch/sh/boot/compressed/Makefile
3#
4# create a compressed vmlinux image from the original vmlinux
5#
6
7targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o \
8 piggy.o vmlinux.lds
1da177e4
LT
9
10OBJECTS = $(obj)/head.o $(obj)/misc.o
11
12#
13# IMAGE_OFFSET is the load offset of the compression loader
14#
15#IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x2000])
16#IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x00400000])
17
18LDFLAGS_vmlinux := -T
19
20$(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE
21 $(call if_changed,ld)
22 @:
23
24$(obj)/vmlinux.bin: vmlinux FORCE
25 $(call if_changed,objcopy)
26
27$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
28 $(call if_changed,gzip)
29
30CFLAGS_misc.o += -fpic
31
32ifdef CONFIG_MMU
33LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r-linux -T
34else
35LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r -T
36endif
37
38OBJCOPYFLAGS += -R .empty_zero_page
39
40$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
41 $(call if_changed,ld)
This page took 0.408015 seconds and 5 git commands to generate.