Changeset 177e4ea in mainline


Ignore:
Timestamp:
2010-03-18T23:34:00Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c80f2b
Parents:
3ad309d
Message:

move from a simple sanity check tool to a more feature-rich configuration autotool (generates Makefile.common)
check for the presence of cross-compiler toolchain
correct prefixing of GNU binutils on Solaris
remove redundant toolchain definitions from makefiles

Files:
1 added
1 deleted
59 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r3ad309d r177e4ea  
    3232CSCOPE = cscope
    3333CONFIG = tools/config.py
    34 SANITY = tools/sanity.py
     34AUTOTOOL = tools/autotool.py
    3535
    36 .PHONY: all config config_default distclean clean cscope precheck
     36.PHONY: all precheck cscope autotool config_default config distclean clean
    3737
    38 all: Makefile.config config.h config.defs
    39         $(SANITY)
     38all: Makefile.common Makefile.config config.h config.defs
    4039        $(MAKE) -C kernel PRECHECK=$(PRECHECK)
    4140        $(MAKE) -C uspace PRECHECK=$(PRECHECK)
     
    4746cscope:
    4847        find kernel boot uspace -regex '^.*\.[chsS]$$' | xargs $(CSCOPE) -b -k -u -f$(CSCOPE).out
     48
     49Makefile.common: autotool
     50
     51autotool: Makefile.config
     52        $(AUTOTOOL)
    4953
    5054Makefile.config: config_default
     
    6165
    6266distclean: clean
    63         rm -f $(CSCOPE).out Makefile.config config.h config.defs tools/*.pyc tools/checkers/*.pyc
     67        rm -f $(CSCOPE).out Makefile.common Makefile.config config.h config.defs tools/*.pyc tools/checkers/*.pyc
    6468
    6569clean:
  • boot/Makefile

    r3ad309d r177e4ea  
    3030#
    3131
     32-include ../Makefile.common
    3233-include ../Makefile.config
    3334-include ../config.defs
     
    4243.PHONY: all build clean generic_clean
    4344
    44 all: ../Makefile.config ../config.h ../config.defs build
     45all: ../Makefile.common ../Makefile.config ../config.h ../config.defs build
    4546
    4647-include arch/$(BARCH)/Makefile.inc
  • boot/Makefile.common

    r3ad309d r177e4ea  
    2727#
    2828
     29-include ../Makefile.common
    2930-include ../Makefile.config
    3031
  • boot/arch/arm32/loader/Makefile

    r3ad309d r177e4ea  
    3232.PHONY: all clean
    3333
    34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
     34all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3636        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • boot/arch/arm32/loader/Makefile.build

    r3ad309d r177e4ea  
    3232
    3333include ../../../../version
     34include ../../../../Makefile.common
    3435include ../../../../Makefile.config
    3536include ../../../../config.defs
  • boot/arch/arm32/loader/Makefile.toolchain

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3629BFD_NAME = elf32-littlearm
    3730BFD_ARCH = arm
    38 TARGET = arm-linux-gnu
    39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin
    4031
    4132JOBFILE = ../../../../tools/jobfile.py
    42 
    43 ifeq ($(COMPILER),gcc_native)
    44         CC = gcc
    45         AS = as
    46         LD = ld
    47         OBJCOPY = objcopy
    48         OBJDUMP = objdump
    49 endif
    50 
    51 ifeq ($(COMPILER),gcc_cross)
    52         CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
    53         AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
    54         LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
    55         OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    56         OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
    57 endif
    5833
    5934CFLAGS = \
  • boot/arch/ia64/loader/Makefile

    r3ad309d r177e4ea  
    2929
    3030include Makefile.common
     31include ../../../../Makefile.common
    3132include ../../../../Makefile.config
    3233
    3334.PHONY: all clean
    3435
    35 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
     36all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3637        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3738        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • boot/arch/ia64/loader/Makefile.build

    r3ad309d r177e4ea  
    3232
    3333include ../../../../version
     34include ../../../../Makefile.common
    3435include ../../../../Makefile.config
    3536include ../../../../config.defs
     
    6061$(OUTPUT): $(OBJECTS) $(COMPONENT_OBJECTS) $(LINK)
    6162        $(LD) -no-check-sections -N -T $(LINK) $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
    62         $(MAKE) -C gefi/HelenOS PREFIX=$(GEFI_PREFIX)
     63        $(MAKE) -C gefi/HelenOS
    6364        cp gefi/HelenOS/hello.efi ../../../../
    6465        cp gefi/HelenOS/image.bin ../../../../
  • boot/arch/ia64/loader/Makefile.common

    r3ad309d r177e4ea  
    3131#
    3232
     33include ../../../../Makefile.common
    3334include ../../../../Makefile.config
    3435include ../../../Makefile.common
  • boot/arch/ia64/loader/Makefile.toolchain

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3629BFD_NAME = elf64-ia64-little
    3730BFD_ARCH = ia64
    38 TARGET = ia64-pc-linux-gnu
    39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin
    4031
    4132JOBFILE = ../../../../tools/jobfile.py
    42 
    43 ifeq ($(COMPILER),gcc_native)
    44         CC = gcc
    45         AS = as
    46         LD = ld
    47         OBJCOPY = objcopy
    48         OBJDUMP = objdump
    49         GEFI_PREFIX =
    50 endif
    51 
    52 ifeq ($(COMPILER),icc)
    53         CC = icc
    54         AS = as
    55         LD = ld
    56         OBJCOPY = objcopy
    57         OBJDUMP = objdump
    58         GEFI_PREFIX =
    59 endif
    60 
    61 ifeq ($(COMPILER),gcc_cross)
    62         CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
    63         AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
    64         LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
    65         OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    66         OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
    67         GEFI_PREFIX = $(TOOLCHAIN_DIR)/$(TARGET)-
    68 endif
    6933
    7034CFLAGS = \
  • boot/arch/ia64/loader/gefi/HelenOS/Makefile

    r3ad309d r177e4ea  
    2222#
    2323
    24 prefix=$(PREFIX)
    2524include ../Make.defaults
    2625CDIR=$(TOPDIR)/..
     
    6968
    7069gefi:
    71         $(MAKE) -C .. prefix=$(PREFIX)
     70        $(MAKE) -C ..
  • boot/arch/ia64/loader/gefi/Make.defaults

    r3ad309d r177e4ea  
    2626# lib and include under the root
    2727#
     28
     29include ../../../../../Makefile.common
     30
    2831INSTALLROOT=/usr/local
    2932
     
    3134
    3235ARCH       = ia64
    33 INCDIR     = -I. -I$(CDIR)/inc -I$(CDIR)/inc/$(ARCH) -I$(CDIR)/inc/protocol 
     36INCDIR     = -I. -I$(CDIR)/inc -I$(CDIR)/inc/$(ARCH) -I$(CDIR)/inc/protocol
    3437CPPFLAGS   = -DCONFIG_$(ARCH)
    3538CFLAGS     = -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -frename-registers -mfixed-range=f32-f127
    3639LDFLAGS    = -nostdlib
    3740INSTALL    = install
    38 
    39 CC         = $(prefix)gcc
    40 AS         = $(prefix)as
    41 LD         = $(prefix)ld
    42 AR         = $(prefix)ar
    43 RANLIB     = $(prefix)ranlib
    44 OBJCOPY    = $(prefix)objcopy
    45 OBJDUMP    = $(prefix)objdump
  • boot/arch/mips32/loader/Makefile

    r3ad309d r177e4ea  
    3232.PHONY: all clean
    3333
    34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
     34all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3636        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • boot/arch/mips32/loader/Makefile.build

    r3ad309d r177e4ea  
    3232
    3333include ../../../../version
     34include ../../../../Makefile.common
    3435include ../../../../Makefile.config
    3536include ../../../../config.defs
  • boot/arch/mips32/loader/Makefile.toolchain

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3629BFD_ARCH = mips
    37 TARGET = mipsel-linux-gnu
    38 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin
    3930
    4031JOBFILE = ../../../../tools/jobfile.py
     
    4839        BFD_NAME = elf32-tradbigmips
    4940        BFD = ecoff-bigmips
    50         TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb/bin
    51         TARGET = mips-linux-gnu
    5241endif
    5342
     
    5544        BFD_NAME = elf32-tradlittlemips
    5645        BFD = binary
    57 endif
    58 
    59 ifeq ($(COMPILER),gcc_native)
    60         CC = gcc
    61         AS = as
    62         LD = ld
    63         OBJCOPY = objcopy
    64         OBJDUMP = objdump
    65 endif
    66 
    67 ifeq ($(COMPILER),gcc_cross)
    68         CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
    69         AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
    70         LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
    71         OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    72         OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
    7346endif
    7447
  • boot/arch/ppc32/loader/Makefile

    r3ad309d r177e4ea  
    3232.PHONY: all clean
    3333
    34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
     34all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3636        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • boot/arch/ppc32/loader/Makefile.build

    r3ad309d r177e4ea  
    3232
    3333include ../../../../version
     34include ../../../../Makefile.common
    3435include ../../../../Makefile.config
    3536include ../../../../config.defs
  • boot/arch/ppc32/loader/Makefile.toolchain

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3629BFD_NAME = elf32-powerpc
    3730BFD_ARCH = powerpc:common
    38 TARGET = ppc-linux-gnu
    39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin
    4031
    4132JOBFILE = ../../../../tools/jobfile.py
    42 
    43 ifeq ($(COMPILER),gcc_native)
    44         CC = gcc
    45         AS = as
    46         LD = ld
    47         OBJCOPY = objcopy
    48         OBJDUMP = objdump
    49 endif
    50 
    51 ifeq ($(COMPILER),gcc_cross)
    52         CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
    53         AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
    54         LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
    55         OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    56         OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
    57 endif
    5833
    5934CFLAGS = \
  • boot/arch/sparc64/loader/Makefile

    r3ad309d r177e4ea  
    3232.PHONY: all clean
    3333
    34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
     34all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3636        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • boot/arch/sparc64/loader/Makefile.build

    r3ad309d r177e4ea  
    3232
    3333include ../../../../version
     34include ../../../../Makefile.common
    3435include ../../../../Makefile.config
    3536include ../../../../config.defs
  • boot/arch/sparc64/loader/Makefile.toolchain

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 ifndef CROSS_PREFIX
    33         CROSS_PREFIX = /usr/local
    34 endif
    35 
    3629BFD_NAME = elf64-sparc
    3730BFD_ARCH = sparc
    38 TARGET = sparc64-linux-gnu
    39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin
    4031
    4132JOBFILE = ../../../../tools/jobfile.py
    42 
    43 ifeq ($(COMPILER),gcc_native)
    44         CC = gcc
    45         AS = as
    46         LD = ld
    47         OBJCOPY = objcopy
    48         OBJDUMP = objdump
    49 endif
    50 
    51 ifeq ($(COMPILER),gcc_cross)
    52         CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
    53         AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
    54         LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
    55         OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    56         OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
    57 endif
    5833
    5934CFLAGS = \
  • kernel/Makefile

    r3ad309d r177e4ea  
    3131.PHONY: all clean
    3232
    33 all: ../version ../Makefile.config ../config.h ../config.defs
     33all: ../version ../Makefile.common ../Makefile.config ../config.h ../config.defs
    3434        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3535        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • kernel/Makefile.build

    r3ad309d r177e4ea  
    3333include Makefile.common
    3434include ../version
     35include ../Makefile.common
    3536include ../Makefile.config
    3637include ../config.defs
     
    4243INCLUDES = generic/include
    4344OPTIMIZATION = 3
    44 
    45 ifndef CROSS_PREFIX
    46         CROSS_PREFIX = /usr/local
    47 endif
    4845
    4946## Common compiler flags
     
    8986# Makefile.inc.
    9087#
     88
    9189ATSIGN ?= @
    9290
    9391## Cross-platform assembly to start a symtab.data section
    9492#
     93
    9594SYMTAB_SECTION = ".section symtab.data, \"a\", $(ATSIGN)progbits;"
    9695
    97 ## Simple detection for the type of the host system
    98 #
    99 HOST = $(shell uname)
    100 
    101 ## On Solaris, some utilities have slightly different names
    102 #
    103 ifeq ($(HOST),SunOS)
    104         BINUTILS_PREFIX = "g"
    105 else
    106         BINUTILS_PREFIX = ""
    107 endif
    108 
    109 ## Toolchain configuration
     96## Compilation options
    11097#
    11198
    11299ifeq ($(COMPILER),gcc_native)
    113         CC = gcc
    114         GCC = gcc
    115         AS = $(BINUTILS_PREFIX)as
    116         LD = $(BINUTILS_PREFIX)ld
    117         OBJCOPY = $(BINUTILS_PREFIX)objcopy
    118         OBJDUMP = $(BINUTILS_PREFIX)objdump
    119100        CFLAGS = $(GCC_CFLAGS)
    120101        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     
    122103
    123104ifeq ($(COMPILER),gcc_cross)
    124         CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc
    125         GCC = $(CC)
    126         AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as
    127         LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld
    128         OBJCOPY = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objcopy
    129         OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump
    130105        CFLAGS = $(GCC_CFLAGS)
    131106        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     
    133108
    134109ifeq ($(COMPILER),icc)
    135         CC = icc
    136         GCC = gcc
    137         AS = as
    138         LD = ld
    139         OBJCOPY = objcopy
    140         OBJDUMP = objdump
    141110        CFLAGS = $(ICC_CFLAGS)
    142111        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     
    144113
    145114ifeq ($(COMPILER),suncc)
    146         CC = suncc
    147         GCC = gcc
    148         AS = $(BINUTILS_PREFIX)as
    149         LD = $(BINUTILS_PREFIX)ld
    150         OBJCOPY = $(BINUTILS_PREFIX)objcopy
    151         OBJDUMP = $(BINUTILS_PREFIX)objdump
    152115        CFLAGS = $(SUNCC_CFLAGS)
    153116        DEFS += $(CONFIG_DEFS)
     
    156119
    157120ifeq ($(COMPILER),clang)
    158         CC = clang
    159         GCC = gcc
    160         AS = $(BINUTILS_PREFIX)as
    161         LD = $(BINUTILS_PREFIX)ld
    162         OBJCOPY = $(BINUTILS_PREFIX)objcopy
    163         OBJDUMP = $(BINUTILS_PREFIX)objdump
    164121        CFLAGS = $(CLANG_CFLAGS)
    165122        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
  • kernel/arch/abs32le/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    3229BFD = binary
    3330
    3431ifeq ($(COMPILER),gcc_cross)
    35         TOOLCHAIN_DIR = $(CROSS_PREFIX)/$(CROSS_TARGET)
    36        
    3732        ifeq ($(CROSS_TARGET),arm32)
    38                 TARGET = arm-linux-gnu
    3933                ATSIGN = %
    4034        endif
    4135       
    42         ifeq ($(CROSS_TARGET),ia32)
    43                 TARGET = i686-pc-linux-gnu
    44         endif
    45        
    4636        ifeq ($(CROSS_TARGET),mips32)
    47                 TARGET = mipsel-linux-gnu
    4837                GCC_CFLAGS += -mno-abicalls
    4938        endif
  • kernel/arch/amd64/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    3229BFD_NAME = elf64-x86-64
    3330BFD_ARCH = i386:x86-64
    3431BFD = binary
    35 TARGET = amd64-linux-gnu
    3632CLANG_ARCH = x86_64
    37 TOOLCHAIN_DIR = $(CROSS_PREFIX)/amd64
    3833
    3934FPU_NO_CFLAGS = -mno-sse -mno-sse2
  • kernel/arch/arm32/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    3229BFD_NAME = elf32-littlearm
    3330BFD_ARCH = arm
    3431BFD = binary
    35 TARGET = arm-linux-gnu
    36 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32
    3732
    3833ATSIGN = %
  • kernel/arch/ia32/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    3229BFD_NAME = elf32-i386
    3330BFD_ARCH = i386
    3431BFD = binary
    35 TARGET = i686-pc-linux-gnu
    3632CLANG_ARCH = i386
    37 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia32
    3833
    3934BITS = 32
  • kernel/arch/ia64/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    3229BFD_NAME = elf64-little
    3330BFD_ARCH = ia64-elf64
    34 TARGET = ia64-pc-linux-gnu
    35 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64
    3631
    3732CMN1 = -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127
  • kernel/arch/mips32/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    3229BFD_ARCH = mips
    3330BFD = binary
    34 TARGET = mipsel-linux-gnu
    35 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32
    36 
    3731GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mips3
    3832
     
    4842ifeq ($(MACHINE),bgxemul)
    4943        BFD_NAME = elf32-tradbigmips
    50         TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb
    51         TARGET = mips-linux-gnu
    5244        ENDIANESS = BE
    5345        GCC_CFLAGS += -D__BE__
  • kernel/arch/ppc32/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    3229BFD_NAME = elf32-powerpc
    3330BFD_ARCH = powerpc:common
    3431BFD = binary
    35 TARGET = ppc-linux-gnu
    36 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32
    3732
    3833GCC_CFLAGS += -mcpu=powerpc -msoft-float -m32
  • kernel/arch/sparc64/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    3229BFD_NAME = elf64-sparc
    3330BFD_ARCH = sparc
    3431BFD = binary
    35 TARGET = sparc64-linux-gnu
    36 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64
    3732
    3833GCC_CFLAGS += -m64 -mcpu=ultrasparc
  • uspace/Makefile

    r3ad309d r177e4ea  
    3030#
    3131
     32-include ../Makefile.common
    3233-include ../Makefile.config
    3334
  • uspace/app/Makefile.common

    r3ad309d r177e4ea  
    6060all: \
    6161    $(LIBC_PREFIX)/../../../version \
     62    $(LIBC_PREFIX)/../../../Makefile.common \
    6263    $(LIBC_PREFIX)/../../../Makefile.config \
    6364    $(LIBC_PREFIX)/../../../config.h \
  • uspace/lib/Makefile.common

    r3ad309d r177e4ea  
    5050OBJECTS = $(addsuffix .o,$(basename $(SOURCES)))
    5151
     52-include $(USPACE_PREFIX)/../Makefile.common
    5253-include $(USPACE_PREFIX)/../Makefile.config
    5354include $(LIBC_PREFIX)/Makefile.toolchain
     
    5960all: \
    6061    $(LIBC_PREFIX)/../../../version \
     62    $(LIBC_PREFIX)/../../../Makefile.common \
    6163    $(LIBC_PREFIX)/../../../Makefile.config \
    6264    $(LIBC_PREFIX)/../../../config.h \
  • uspace/lib/libc/Makefile

    r3ad309d r177e4ea  
    2828#
    2929
     30-include ../../../Makefile.common
    3031-include ../../../Makefile.config
    3132
  • uspace/lib/libc/Makefile.toolchain

    r3ad309d r177e4ea  
    5353AFLAGS =
    5454
    55 ## Cross-toolchain prefix
    56 #
    57 
    58 ifndef CROSS_PREFIX
    59         CROSS_PREFIX = /usr/local
    60 endif
    61 
    6255## Setup platform configuration
    6356#
    6457
     58-include $(LIBC_PREFIX)/../../../Makefile.common
    6559-include $(LIBC_PREFIX)/../../../Makefile.config
    6660-include $(LIBC_PREFIX)/../../../config.defs
    6761-include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc
    6862
    69 ## Simple detection of the host system
    70 #
    71 HOST = $(shell uname)
    72 
    73 ## On Solaris, some utilities have different names
    74 #
    75 ifeq ($(HOST),SunOS)
    76         BINUTILS_PREFIX = "g"
    77 else
    78         BINUTILS_PREFIX = ""
    79 endif
    80 
    81 ## Toolchain configuration
     63## Compilation options
    8264#
    8365
     
    8567
    8668ifeq ($(COMPILER),gcc_cross)
    87         CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
    88         GCC = $(CC)
    89         AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
    90         LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
    91         AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar
    92         OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    93         OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
    9469        CFLAGS = $(GCC_CFLAGS)
    9570        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     
    9772
    9873ifeq ($(COMPILER),gcc_native)
    99         CC = gcc
    100         GCC = $(CC)
    101         AS = $(BINUTILS_PREFIX)as
    102         LD = $(BINUTILS_PREFIX)ld
    103         AR = $(BINUTILS_PREFIX)ar
    104         OBJCOPY = $(BINUTILS_PREFIX)objcopy
    105         OBJDUMP = $(BINUTILS_PREFIX)objdump
    10674        CFLAGS = $(GCC_CFLAGS)
    10775        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     
    10977
    11078ifeq ($(COMPILER),icc)
    111         CC = icc
    112         GCC = gcc
    113         AS = as
    114         LD = ld
    115         AR = ar
    116         OBJCOPY = objcopy
    117         OBJDUMP = objdump
    11879        CFLAGS = $(ICC_CFLAGS)
    11980        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     
    12182
    12283ifeq ($(COMPILER),clang)
    123         CC = clang
    124         GCC = gcc
    125         AS = $(BINUTILS_PREFIX)as
    126         LD = $(BINUTILS_PREFIX)ld
    127         AR = $(BINUTILS_PREFIX)ar
    128         OBJCOPY = $(BINUTILS_PREFIX)objcopy
    129         OBJDUMP = $(BINUTILS_PREFIX)objdump
    13084        CFLAGS = $(CLANG_CFLAGS)
    13185        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
  • uspace/lib/libc/arch/abs32le/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 ifeq ($(COMPILER),gcc_cross)
    33         TOOLCHAIN_DIR = $(CROSS_PREFIX)/$(CROSS_TARGET)/bin
    34        
    35         ifeq ($(CROSS_TARGET),arm32)
    36                 TARGET = arm-linux-gnu
    37         endif
    38        
    39         ifeq ($(CROSS_TARGET),ia32)
    40                 TARGET = i686-pc-linux-gnu
    41         endif
    42        
    43         ifeq ($(CROSS_TARGET),mips32)
    44                 TARGET = mipsel-linux-gnu
    45         endif
    46 endif
    47 
    4829ifeq ($(COMPILER),clang)
    4930        CLANG_ARCH = i386
  • uspace/lib/libc/arch/amd64/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 TARGET = amd64-linux-gnu
    3329CLANG_ARCH = x86_64
    34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/amd64/bin
    3530
    3631ARCH_SOURCES = \
  • uspace/lib/libc/arch/arm32/Makefile.inc

    r3ad309d r177e4ea  
    2828#
    2929
    30 ## Toolchain configuration
    31 #
    32 
    33 TARGET = arm-linux-gnu
    34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin
    35 
    3630ARCH_SOURCES = \
    3731        arch/$(UARCH)/src/entry.s \
  • uspace/lib/libc/arch/ia32/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 TARGET = i686-pc-linux-gnu
    3329CLANG_ARCH = i386
    34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia32/bin
    3530
    3631ARCH_SOURCES = \
  • uspace/lib/libc/arch/ia64/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 TARGET = ia64-pc-linux-gnu
    33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin
    34 
    3529ARCH_SOURCES = \
    3630        arch/$(UARCH)/src/entry.s \
  • uspace/lib/libc/arch/mips32/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 TARGET = mipsel-linux-gnu
    33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin
    34 
    3529ARCH_SOURCES = \
    3630        arch/$(UARCH)/src/entry.s \
  • uspace/lib/libc/arch/mips32eb/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 TARGET = mips-linux-gnu
    33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb/bin
    34 
    3529ARCH_SOURCES = \
    3630        arch/$(UARCH)/src/entry.s \
  • uspace/lib/libc/arch/ppc32/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 TARGET = ppc-linux-gnu
    33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin
    34 
    3529ARCH_SOURCES = \
    3630        arch/$(UARCH)/src/entry.s \
  • uspace/lib/libc/arch/sparc64/Makefile.inc

    r3ad309d r177e4ea  
    2727#
    2828
    29 ## Toolchain configuration
    30 #
    31 
    32 TARGET = sparc64-linux-gnu
    33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin
    34 
    3529ARCH_SOURCES = \
    3630        arch/$(UARCH)/src/entry.s \
  • uspace/srv/Makefile.common

    r3ad309d r177e4ea  
    6464all: \
    6565    $(LIBC_PREFIX)/../../../version \
     66    $(LIBC_PREFIX)/../../../Makefile.common \
    6667    $(LIBC_PREFIX)/../../../Makefile.config \
    6768    $(LIBC_PREFIX)/../../../config.h \
  • uspace/srv/hid/console/Makefile

    r3ad309d r177e4ea  
    3232.PHONY: all clean
    3333
    34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
     34all: $(LIBC_PREFIX)/../../../Makefile.common $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3636        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • uspace/srv/hid/fb/Makefile

    r3ad309d r177e4ea  
    3232.PHONY: all clean
    3333
    34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
     34all: $(LIBC_PREFIX)/../../../Makefile.common $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3636        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • uspace/srv/hid/kbd/Makefile

    r3ad309d r177e4ea  
    3232.PHONY: all clean
    3333
    34 all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
     34all: $(LIBC_PREFIX)/../../../Makefile.common $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    3636        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
  • uspace/srv/loader/Makefile

    r3ad309d r177e4ea  
    2828#
    2929
     30-include ../../../Makefile.common
    3031-include ../../../Makefile.config
    3132-include arch/$(UARCH)/Makefile.inc
  • uspace/srv/net/Makefile

    r3ad309d r177e4ea  
    2727#
    2828
     29include ../../../Makefile.common
    2930include ../../../Makefile.config
    3031
  • uspace/srv/net/app/echo/Makefile

    r3ad309d r177e4ea  
    3232STRUCTURES = $(NET_BASE)structures/
    3333
     34include ../../../../../Makefile.common
    3435include ../../../../../Makefile.config
    3536
  • uspace/srv/net/app/nettest1/Makefile

    r3ad309d r177e4ea  
    3232STRUCTURES = $(NET_BASE)structures/
    3333
     34include ../../../../../Makefile.common
    3435include ../../../../../Makefile.config
    3536
  • uspace/srv/net/app/nettest2/Makefile

    r3ad309d r177e4ea  
    3232STRUCTURES = $(NET_BASE)structures/
    3333
     34include ../../../../../Makefile.common
    3435include ../../../../../Makefile.config
    3536
  • uspace/srv/net/app/ping/Makefile

    r3ad309d r177e4ea  
    3232STRUCTURES = $(NET_BASE)structures/
    3333
     34include ../../../../../Makefile.common
    3435include ../../../../../Makefile.config
    3536
  • uspace/srv/net/net/Makefile

    r3ad309d r177e4ea  
    3232STRUCTURES = $(NET_BASE)structures/
    3333
     34include $(NET_BASE)../../../Makefile.common
    3435include $(NET_BASE)../../../Makefile.config
    3536
  • uspace/srv/net/net/start/Makefile

    r3ad309d r177e4ea  
    3232STRUCTURES = $(NET_BASE)structures/
    3333
     34include ../../../../../Makefile.common
    3435include ../../../../../Makefile.config
    3536
  • uspace/srv/net/netif/dp8390/Makefile

    r3ad309d r177e4ea  
    3232STRUCTURES = $(NET_BASE)structures/
    3333
     34include $(NET_BASE)../../../Makefile.common
    3435include $(NET_BASE)../../../Makefile.config
    3536
  • uspace/srv/net/netif/lo/Makefile

    r3ad309d r177e4ea  
    3232STRUCTURES = $(NET_BASE)structures/
    3333
     34include $(NET_BASE)../../../Makefile.common
    3435include $(NET_BASE)../../../Makefile.config
    3536
Note: See TracChangeset for help on using the changeset viewer.