2011-12-22 15:19:25 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
#
|
2016-05-28 20:47:35 +00:00
|
|
|
# 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.
|
2011-12-22 15:19:25 +00:00
|
|
|
#
|
2016-05-28 20:47:35 +00:00
|
|
|
# We handle all architectures that may be specified as SPEC argument to the
|
|
|
|
# package build tool.
|
|
|
|
#
|
|
|
|
ifeq ($(filter-out $(SPECS),x86_32),)
|
2021-03-29 17:36:20 +00:00
|
|
|
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/21.05/bin/genode-x86-
|
2016-05-28 20:47:35 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(filter-out $(SPECS),x86_64),)
|
2021-03-29 17:36:20 +00:00
|
|
|
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/21.05/bin/genode-x86-
|
2011-12-22 15:19:25 +00:00
|
|
|
endif
|
2019-09-25 14:47:33 +00:00
|
|
|
ifeq ($(filter-out $(SPECS),arm_64),)
|
2021-03-29 17:36:20 +00:00
|
|
|
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/21.05/bin/genode-aarch64-
|
2019-09-25 14:47:33 +00:00
|
|
|
endif
|
2011-12-22 15:19:25 +00:00
|
|
|
ifeq ($(filter-out $(SPECS),arm),)
|
2021-03-29 17:36:20 +00:00
|
|
|
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/21.05/bin/genode-arm-
|
2011-12-22 15:19:25 +00:00
|
|
|
endif
|
2016-02-11 10:37:17 +00:00
|
|
|
ifeq ($(filter-out $(SPECS),riscv),)
|
2021-03-29 17:36:20 +00:00
|
|
|
CROSS_DEV_PREFIX ?= /usr/local/genode/tool/21.05/bin/genode-riscv-
|
2016-02-11 10:37:17 +00:00
|
|
|
endif
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|