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 OBJCOPY_ARGS
:= -O elf32-xtensa-be
12 OBJCOPY_ARGS
:= -O elf32-xtensa-le
15 LD_ARGS
= -T
$(srctree
)/$(obj
)/boot.
ld
19 OBJS
:= $(addprefix $(obj
)/,$(boot-y
))
20 LIBS
:= arch
/xtensa
/boot
/lib
/lib.a arch
/xtensa
/lib
/lib.a
22 LIBGCC
:= $(shell $(CC
) $(KBUILD_CFLAGS
) -print-libgcc-file-name
)
24 zImage
: vmlinux
$(OBJS
) $(LIBS
)
25 <<<<<<< HEAD
:arch
/xtensa
/boot
/boot-redboot
/Makefile
26 $(OBJCOPY
) --strip-all
-R .comment
-R .xt.insn
-O binary \
28 $(OBJCOPY
) --strip-all
-R .comment
-R .note.gnu.build-id
-O binary \
29 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:arch
/xtensa
/boot
/boot-redboot
/Makefile
32 $(OBJCOPY
) $(OBJCOPY_ARGS
) -R .comment \
33 --add-section image
=vmlinux.tmp.gz \
34 --set-section-flags image
=contents
,alloc
,load
,load
,data \
36 $(LD
) $(LD_ARGS
) -o
$@.elf
$@.tmp
$(LIBS
) -L
/xtensa-elf
/lib
$(LIBGCC
)
37 $(OBJCOPY
) -S
-O binary
$@.elf arch
/$(ARCH
)/boot
/$@.redboot
38 rm -f
$@.tmp
$@.elf vmlinux.tmp.gz