- Timestamp:
- 2005-11-08T00:00:15Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b65205
- Parents:
- 849ba5cb
- Location:
- arch/ia64
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/Makefile.inc
r849ba5cb r6bc4dbd 1 IA-64_TARGET=ia64-pc-linux-gnu 1 # 2 # Copyright (C) 2005 Martin Decky 3 # All rights reserved. 4 # 5 # Redistribution and use in source and binary forms, with or without 6 # modification, are permitted provided that the following conditions 7 # are met: 8 # 9 # - Redistributions of source code must retain the above copyright 10 # notice, this list of conditions and the following disclaimer. 11 # - Redistributions in binary form must reproduce the above copyright 12 # notice, this list of conditions and the following disclaimer in the 13 # documentation and/or other materials provided with the distribution. 14 # - The name of the author may not be used to endorse or promote products 15 # derived from this software without specific prior written permission. 16 # 17 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 # 2 28 3 IA-64_CC_DIR=/usr/local/ia64/bin4 IA-64_BINUTILS_DIR=/usr/local/ia64/bin 29 ## Toolchain configuration 30 # 5 31 6 CC=$(IA-64_CC_DIR)/$(IA-64_TARGET)-gcc 7 AS=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-as 8 LD=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-ld 9 OBJDUMP=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-objdump 10 OBJCOPY=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-objcopy 11 BFD_NAME=elf64-little 12 BFD_ARCH=ia64-elf64 32 BFD_NAME = elf64-little 33 BFD_ARCH = ia64-elf64 34 TARGET = ia64-pc-linux-gnu 35 TOOLCHAIN_DIR = /usr/local/ia64/bin 13 36 37 ## Make some default assumptions 38 # 14 39 15 ASFLAGS=-mconstant-gp 40 CFLAGS += -mconstant-gp -fno-unwind-tables 41 LFLAGS += -EL 42 AFLAGS += -mconstant-gp 16 43 17 DEFS=-DARCH=$(ARCH) 18 CFLAGS=$(DEFS) -mconstant-gp -nostdlib -fno-builtin -fno-unwind-tables -O3 19 LFLAGS=-EL -M 20 21 22 23 arch_sources= \ 24 generic/src/arch/start.S \ 25 generic/src/arch/asm.S \ 26 generic/src/arch/dummy.s \ 27 generic/src/arch/putchar.c \ 28 generic/src/arch/ia64.c \ 29 generic/src/arch/fpu_context.c \ 30 generic/src/arch/context.S \ 31 generic/src/arch/ski/ski.c \ 32 generic/src/arch/cpu/cpu.c \ 33 generic/src/arch/ivt.S \ 34 generic/src/arch/interrupt.c \ 35 generic/src/arch/interrupt_handler.c \ 36 generic/src/arch/fmath.c \ 37 generic/src/arch/mm/frame.c \ 38 generic/src/arch/drivers/it.c 44 ARCH_SOURCES = \ 45 arch/$(ARCH)/src/start.S \ 46 arch/$(ARCH)/src/asm.S \ 47 arch/$(ARCH)/src/dummy.s \ 48 arch/$(ARCH)/src/putchar.c \ 49 arch/$(ARCH)/src/ia64.c \ 50 arch/$(ARCH)/src/fpu_context.c \ 51 arch/$(ARCH)/src/context.S \ 52 arch/$(ARCH)/src/ski/ski.c \ 53 arch/$(ARCH)/src/cpu/cpu.c \ 54 arch/$(ARCH)/src/ivt.S \ 55 arch/$(ARCH)/src/interrupt.c \ 56 arch/$(ARCH)/src/interrupt_handler.c \ 57 arch/$(ARCH)/src/fmath.c \ 58 arch/$(ARCH)/src/mm/frame.c \ 59 arch/$(ARCH)/src/drivers/it.c -
arch/ia64/_link.ld.in
r849ba5cb r6bc4dbd 1 /* 2 * IA-64 linker script 1 /** IA-64 linker script 3 2 * 4 3 * It is ELF format, but its only section looks like this: … … 7 6 * 8 7 */ 8 9 #define __ASM__ 9 10 10 11 OUTPUT_FORMAT(elf64-ia64-little) -
arch/ia64/boot/Makefile
r849ba5cb r6bc4dbd 1 IA-64_BINUTILS_DIR=/usr/local/ia64/bin 2 IA-64_TARGET=ia64-pc-linux-gnu 3 4 .PHONY: nothing build 5 6 nothing: 1 .PHONY: build clean 7 2 8 3 build: boot.bin 9 4 cp boot.bin ../../../load.bin 10 5 11 AS=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-as 12 LD=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-ld 6 boot.bin: boot.o 7 $(LD) -EL -T _link.ld -n boot.o -o $@ 13 8 14 ASFLAGS=-EL 15 LFLAGS=-EL -T _link.ld -n 16 17 boot.bin: boot.o 18 $(LD) $(LFLAGS) boot.o -o $@ 19 20 boot.o: 9 boot.o: boot.s 21 10 $(AS) boot.s -o $@ 22 11 23 12 clean: 24 -rm *.o *.bin13 -rm -f boot.o boot.bin ../../../load.bin
Note:
See TracChangeset
for help on using the changeset viewer.