Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / arch / xtensa / boot / boot-elf / Makefile
blob2e1143d03a3ac61f9cf79bce9c17274bc5ffb722
2 # This file is subject to the terms and conditions of the GNU General Public
3 # License. See the file "COPYING" in the main directory of this archive
4 # for more details.
7 GZIP = gzip
8 GZIP_FLAGS = -v9fc
10 ifeq ($(BIG_ENDIAN),1)
11 OBJCOPY_ARGS := -O elf32-xtensa-be
12 else
13 OBJCOPY_ARGS := -O elf32-xtensa-le
14 endif
16 export OBJCOPY_ARGS
17 <<<<<<< HEAD:arch/xtensa/boot/boot-elf/Makefile
18 =======
19 export CPPFLAGS_boot.lds += -P -C
20 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/xtensa/boot/boot-elf/Makefile
22 boot-y := bootstrap.o
24 OBJS := $(addprefix $(obj)/,$(boot-y))
26 <<<<<<< HEAD:arch/xtensa/boot/boot-elf/Makefile
27 Image: vmlinux $(OBJS)
28 $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \
29 =======
30 Image: vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds
31 $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \
32 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/xtensa/boot/boot-elf/Makefile
33 vmlinux vmlinux.tmp
34 $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
35 --add-section image=vmlinux.tmp \
36 --set-section-flags image=contents,alloc,load,load,data \
37 $(OBJS) $@.tmp
38 $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \
39 <<<<<<< HEAD:arch/xtensa/boot/boot-elf/Makefile
40 -T $(srctree)/arch/$(ARCH)/boot/boot-elf/boot.ld \
41 =======
42 -T arch/$(ARCH)/boot/boot-elf/boot.lds \
43 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/xtensa/boot/boot-elf/Makefile
44 -o arch/$(ARCH)/boot/$@.elf $@.tmp
45 rm -f $@.tmp vmlinux.tmp
47 Image.initrd: vmlinux $(OBJS)
48 <<<<<<< HEAD:arch/xtensa/boot/boot-elf/Makefile
49 $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \
50 =======
51 $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \
52 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/xtensa/boot/boot-elf/Makefile
53 --add-section .initrd=arch/$(ARCH)/boot/ramdisk \
54 --set-section-flags .initrd=contents,alloc,load,load,data \
55 vmlinux vmlinux.tmp
56 $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
57 --add-section image=vmlinux.tmp \
58 --set-section-flags image=contents,alloc,load,load,data \
59 $(OBJS) $@.tmp
60 $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \
61 -T $(srctree)/arch/$(ARCH)/boot/boot-elf/boot.ld \
62 -o arch/$(ARCH)/boot/$@.elf $@.tmp
63 rm -f $@.tmp vmlinux.tmp
66 zImage: Image
68 zImage.initrd: Image.initrd