forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] xtensa: Removed local copy of zlib and fixed O= support
Removed an unnecessary local copy of zlib (sorry for the add'l traffic). Fixed 'O=' support (thanks to Jan Dittmer for pointing it out). Some minor clean-ups in the make files. Signed-off-by: Chris Zankel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Chris Zankel
authored and
Linus Torvalds
committed
Jun 30, 2005
1 parent
82300bf
commit e7d163f
Showing
9 changed files
with
53 additions
and
2,671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,24 +12,24 @@ else | |
OBJCOPY_ARGS := -O elf32-xtensa-le | ||
endif | ||
|
||
LD_ARGS = -T $(obj)/boot.ld | ||
LD_ARGS = -T $(srctree)/$(obj)/boot.ld | ||
|
||
boot-y := bootstrap.o | ||
|
||
OBJS := $(addprefix $(obj)/,$(boot-y)) | ||
LIBS := arch/$(ARCH)/boot/lib/lib.a arch/$(ARCH)/lib/lib.a | ||
LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a | ||
|
||
LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) | ||
|
||
zImage: vmlinux $(OBJS) $(LIBS) | ||
$(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ | ||
$(TOPDIR)/vmlinux vmlinux.tmp | ||
vmlinux vmlinux.tmp | ||
gzip -vf9 vmlinux.tmp | ||
$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ | ||
--add-section image=vmlinux.tmp.gz \ | ||
--set-section-flags image=contents,alloc,load,load,data \ | ||
$(OBJS) $@.tmp | ||
$(LD) $(LD_ARGS) -o $@.elf $@.tmp $(LIBS) -L/xtensa-elf/lib $(LIBGCC) | ||
$(OBJCOPY) -S -O binary $@.elf arch/$(ARCH)/boot/images/$@.redboot | ||
# rm -f [email protected] [email protected] vmlinux.tmp.gz | ||
$(OBJCOPY) -S -O binary $@.elf arch/$(ARCH)/boot/$@.redboot | ||
rm -f $@.tmp $@.elf vmlinux.tmp.gz | ||
|
Oops, something went wrong.