1 # 2 # This file is subject to the terms and condit 3 # License. See the file "COPYING" in the main 4 # for more details. 5 # 6 7 OBJCOPY_ARGS := -O $(if $(CONFIG_CPU_BIG_ENDIA 8 9 boot-y := bootstrap.o 10 targets += $(boot-y) 11 12 OBJS := $(addprefix $(obj)/,$(boot-y)) 13 LIBS := arch/xtensa/boot/lib/lib.a arch/xte 14 15 $(obj)/zImage.o: $(obj)/../vmlinux.bin.gz $(OB 16 $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .com 17 --add-section image=$< \ 18 --set-section-flags image=cont 19 $(OBJS) $@ 20 21 $(obj)/zImage.elf: $(obj)/zImage.o $(LIBS) 22 $(Q)$(LD) $(KBUILD_LDFLAGS) \ 23 -T $(srctree)/$(obj)/boot.ld \ 24 --build-id=none \ 25 -o $@ $^ 26 27 $(obj)/../zImage.redboot: $(obj)/zImage.elf 28 $(Q)$(OBJCOPY) -S -O binary $< $@ 29 $(Q)$(kecho) ' Kernel: $@ is ready' 30 31 all zImage: $(obj)/../zImage.redboot
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.