genode/repos/base/etc/tools.conf
Norman Feske a804802bcd Let default tools.conf cover each architecture
This patch handles x86_32 and x86_64 separately since this is the SPEC
value directly supplied to the package build tool. This way, we achieve
that a CROSS_DEV_PREFIX is defined for each supported argument.
2016-07-15 11:38:26 +02:00

66 lines
1.8 KiB
Plaintext

#
# The following options let you define non-default tools to use
#
# CUSTOM_LD is only used for the progressive linking of libraries.
# It is not used for linking the final target.
#
#CUSTOM_CC = gcc
#CUSTOM_CXX = g++
#CUSTOM_AS = as
#CUSTOM_LD = ld
#
# For using a cross-compile tool chain, the names of all binutils and compilers
# are typically prefixed by the target platform. Instead of defining CUSTOM_*
# variables individually for each tool, the prefix can be defined via the
# following variable.
#
# We handle all architectures that may be specified as SPEC argument to the
# package build tool.
#
ifeq ($(filter-out $(SPECS),x86_32),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-x86-
endif
ifeq ($(filter-out $(SPECS),x86_64),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-x86-
endif
ifeq ($(filter-out $(SPECS),arm),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-arm-
endif
ifeq ($(filter-out $(SPECS),riscv),)
CROSS_DEV_PREFIX ?= /usr/local/genode-gcc/bin/genode-riscv-
endif
#
# We use libsupc++ from g++ version 3 because
# this version does not use thread-local storage
# via the gs register. This is an interim solution.
#
#CUSTOM_CXX_LIB = g++-3.4
#
# The default optimization level used for compiling is -O2.
# By defining the variable CC_OLEVEL, you can override this
# default value, for example to optimize your binaries for size.
#
#CC_OLEVEL = -Os
#
# If CC_OPT should be extended please use concatenation syntax like:
#
#CC_OPT += -ffunction-sections -fdata-sections
#
# If CXX_LINK_OPT (linker options given to CXX) should be extended please use
# concatenation syntax like:
#
#CXX_LINK_OPT += -Wl,-gc-sections
#
# On non-GNU systems, you may direct the build system to use GNU-
# specific tools.
#
#TAC ?= /opt/gnu/bin/tac
#GNU_FIND ?= /opt/gnu/bin/find
#GNU_XARGS ?= /opt/gnu/bin/xargs