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
8 OBJCOPY_ARGS := -O elf32-xtensa-be
10 OBJCOPY_ARGS := -O elf32-xtensa-le
14 export CPPFLAGS_boot.lds += -P -C
18 OBJS := $(addprefix $(obj)/,$(boot-y))
20 $(obj)/Image.o: vmlinux.bin $(OBJS)
21 $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
22 --add-section image=vmlinux.bin \
23 --set-section-flags image=contents,alloc,load,load,data \
26 $(obj)/../Image.elf: $(obj)/Image.o $(obj)/boot.lds
27 $(Q)$(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \
31 $(Q)$(kecho) ' Kernel: $@ is ready'
33 zImage: $(obj)/../Image.elf