Makefile (42a4f17dc356689075263d7c2bd68456676fa62e) Makefile (c853d945d3e0cadf60da03106f7d9bbf1346a518)
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License.
4#
5# Adapted for MIPS Pete Popov, Dan Malek
6#
7# Copyright (C) 1994 by Linus Torvalds
8# Adapted for PowerPC by Gary Thomas

--- 34 unchanged lines hidden (view full) ---

43vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o
44endif
45
46targets += vmlinux.bin
47OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S
48$(obj)/vmlinux.bin: $(KBUILD_IMAGE) FORCE
49 $(call if_changed,objcopy)
50
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License.
4#
5# Adapted for MIPS Pete Popov, Dan Malek
6#
7# Copyright (C) 1994 by Linus Torvalds
8# Adapted for PowerPC by Gary Thomas

--- 34 unchanged lines hidden (view full) ---

43vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o
44endif
45
46targets += vmlinux.bin
47OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S
48$(obj)/vmlinux.bin: $(KBUILD_IMAGE) FORCE
49 $(call if_changed,objcopy)
50
51suffix_$(CONFIG_KERNEL_GZIP) = gz
52suffix_$(CONFIG_KERNEL_BZIP2) = bz2
53suffix_$(CONFIG_KERNEL_LZMA) = lzma
54suffix_$(CONFIG_KERNEL_LZO) = lzo
55tool_$(CONFIG_KERNEL_GZIP) = gzip
56tool_$(CONFIG_KERNEL_BZIP2) = bzip2
57tool_$(CONFIG_KERNEL_LZMA) = lzma
58tool_$(CONFIG_KERNEL_LZO) = lzo
59
51tool_$(CONFIG_KERNEL_GZIP) = gzip
52tool_$(CONFIG_KERNEL_BZIP2) = bzip2
53tool_$(CONFIG_KERNEL_LZMA) = lzma
54tool_$(CONFIG_KERNEL_LZO) = lzo
55
60targets += vmlinux.gz vmlinux.bz2 vmlinux.lzma vmlinux.lzo
61$(obj)/vmlinux.$(suffix_y): $(obj)/vmlinux.bin FORCE
56targets += vmlinux.bin.z
57$(obj)/vmlinux.bin.z: $(obj)/vmlinux.bin FORCE
62 $(call if_changed,$(tool_y))
63
64targets += piggy.o
58 $(call if_changed,$(tool_y))
59
60targets += piggy.o
65OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.$(suffix_y) \
61OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.bin.z \
66 --set-section-flags=.image=contents,alloc,load,readonly,data
62 --set-section-flags=.image=contents,alloc,load,readonly,data
67$(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.$(suffix_y) FORCE
63$(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE
68 $(call if_changed,objcopy)
69
70LDFLAGS_vmlinuz := $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T
71vmlinuz: $(src)/ld.script $(vmlinuzobjs-y) $(obj)/piggy.o
72 $(call cmd,ld)
73 $(Q)$(OBJCOPY) $(OBJCOPYFLAGS) $@
74
75#

--- 34 unchanged lines hidden ---
64 $(call if_changed,objcopy)
65
66LDFLAGS_vmlinuz := $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T
67vmlinuz: $(src)/ld.script $(vmlinuzobjs-y) $(obj)/piggy.o
68 $(call cmd,ld)
69 $(Q)$(OBJCOPY) $(OBJCOPYFLAGS) $@
70
71#

--- 34 unchanged lines hidden ---