Makefile (c1b054d03f5b31c33eaa0b267c629b118eaf3790) | Makefile (36dffadb7f19671aab58be43c5896ea87d5fb1bf) |
---|---|
1# 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. 5# 6 7GZIP = gzip 8GZIP_FLAGS = -v9fc 9 10ifeq ($(BIG_ENDIAN),1) 11OBJCOPY_ARGS := -O elf32-xtensa-be 12else 13OBJCOPY_ARGS := -O elf32-xtensa-le 14endif 15 16export OBJCOPY_ARGS | 1# 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. 5# 6 7GZIP = gzip 8GZIP_FLAGS = -v9fc 9 10ifeq ($(BIG_ENDIAN),1) 11OBJCOPY_ARGS := -O elf32-xtensa-be 12else 13OBJCOPY_ARGS := -O elf32-xtensa-le 14endif 15 16export OBJCOPY_ARGS |
17export CPPFLAGS_boot.lds += -P -C |
|
17 18boot-y := bootstrap.o 19 20OBJS := $(addprefix $(obj)/,$(boot-y)) 21 | 18 19boot-y := bootstrap.o 20 21OBJS := $(addprefix $(obj)/,$(boot-y)) 22 |
22Image: vmlinux $(OBJS) | 23Image: vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds |
23 $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ 24 vmlinux vmlinux.tmp 25 $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ 26 --add-section image=vmlinux.tmp \ 27 --set-section-flags image=contents,alloc,load,load,data \ 28 $(OBJS) $@.tmp 29 $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \ | 24 $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ 25 vmlinux vmlinux.tmp 26 $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ 27 --add-section image=vmlinux.tmp \ 28 --set-section-flags image=contents,alloc,load,load,data \ 29 $(OBJS) $@.tmp 30 $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \ |
30 -T $(srctree)/arch/$(ARCH)/boot/boot-elf/boot.ld \ | 31 -T arch/$(ARCH)/boot/boot-elf/boot.lds \ |
31 -o arch/$(ARCH)/boot/$@.elf $@.tmp 32 rm -f $@.tmp vmlinux.tmp 33 34Image.initrd: vmlinux $(OBJS) 35 $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ 36 --add-section .initrd=arch/$(ARCH)/boot/ramdisk \ 37 --set-section-flags .initrd=contents,alloc,load,load,data \ 38 vmlinux vmlinux.tmp --- 14 unchanged lines hidden --- | 32 -o arch/$(ARCH)/boot/$@.elf $@.tmp 33 rm -f $@.tmp vmlinux.tmp 34 35Image.initrd: vmlinux $(OBJS) 36 $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ 37 --add-section .initrd=arch/$(ARCH)/boot/ramdisk \ 38 --set-section-flags .initrd=contents,alloc,load,load,data \ 39 vmlinux vmlinux.tmp --- 14 unchanged lines hidden --- |