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.
This commit is contained in:
Norman Feske 2016-05-28 22:47:35 +02:00
parent a15a86b024
commit a804802bcd
1 changed files with 11 additions and 6 deletions

View File

@ -10,13 +10,18 @@
#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.
# 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.
#
ifeq ($(filter-out $(SPECS),x86),)
# 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),)