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
10 ifeq ($(BIG_ENDIAN
),1)
11 OBJCOPY_ARGS
:= -O elf32-xtensa-be
13 OBJCOPY_ARGS
:= -O elf32-xtensa-le
17 <<<<<<< HEAD
:arch
/xtensa
/boot
/boot-elf
/Makefile
19 export CPPFLAGS_boot.lds
+= -P
-C
20 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:arch
/xtensa
/boot
/boot-elf
/Makefile
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 \
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
34 $(OBJCOPY
) $(OBJCOPY_ARGS
) -R .comment \
35 --add-section image
=vmlinux.tmp \
36 --set-section-flags image
=contents
,alloc
,load
,load
,data \
38 $(LD
) $(LDFLAGS
) $(LDFLAGS_vmlinux
) \
39 <<<<<<< HEAD
:arch
/xtensa
/boot
/boot-elf
/Makefile
40 -T
$(srctree
)/arch
/$(ARCH
)/boot
/boot-elf
/boot.
ld \
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 \
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 \
56 $(OBJCOPY
) $(OBJCOPY_ARGS
) -R .comment \
57 --add-section image
=vmlinux.tmp \
58 --set-section-flags image
=contents
,alloc
,load
,load
,data \
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
68 zImage.initrd
: Image.initrd