Changeset 6bc4dbd in mainline for arch/ia64


Ignore:
Timestamp:
2005-11-08T00:00:15Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b65205
Parents:
849ba5cb
Message:

new build system upgrade
finished work for IA-32, IA-64, PPC-32, SPARC-64

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#
    228
    3 IA-64_CC_DIR=/usr/local/ia64/bin
    4 IA-64_BINUTILS_DIR=/usr/local/ia64/bin
     29## Toolchain configuration
     30#
    531
    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
     32BFD_NAME = elf64-little
     33BFD_ARCH = ia64-elf64
     34TARGET = ia64-pc-linux-gnu
     35TOOLCHAIN_DIR = /usr/local/ia64/bin
    1336
     37## Make some default assumptions
     38#
    1439
    15 ASFLAGS=-mconstant-gp
     40CFLAGS += -mconstant-gp -fno-unwind-tables
     41LFLAGS += -EL
     42AFLAGS += -mconstant-gp
    1643
    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
     44ARCH_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
    32 *
    43 *  It is ELF format, but its only section looks like this:
     
    76 *
    87 */
     8
     9#define __ASM__
    910
    1011OUTPUT_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
    72
    83build: boot.bin
    94        cp boot.bin ../../../load.bin
    105
    11 AS=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-as
    12 LD=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-ld
     6boot.bin: boot.o
     7        $(LD) -EL -T _link.ld -n boot.o -o $@
    138
    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:
     9boot.o: boot.s
    2110        $(AS) boot.s -o $@
    2211
    2312clean:
    24         -rm *.o *.bin
     13        -rm -f boot.o boot.bin ../../../load.bin
Note: See TracChangeset for help on using the changeset viewer.