1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
7 # - define ARCH variable (overridden by cmdline or by previous
8 # optional define in machine .mk)
9 # - define CROSS variable (overridden by cmdline or previous define
11 # - define CPU_CFLAGS variable (overridden by cmdline or previous
12 # define in machine .mk)
13 # - define CPU_LDFLAGS variable (overridden by cmdline or previous
14 # define in machine .mk)
15 # - define CPU_ASFLAGS variable (overridden by cmdline or previous
16 # define in machine .mk)
17 # - may override any previously defined variable
19 # examples for CONFIG_RTE_ARCH: i686, x86_64, x86_64_32
27 CPU_LDFLAGS ?= -melf32_x86_64
28 #CPU_ASFLAGS ?= -felf64
29 # x32 is supported by Linux distribution with gcc4.8 and newer in some
30 # cases there is backported support in gcc4.6
31 ifneq ($(shell echo | $(CC) $(CPU_CFLAGS) -E - 2>/dev/null 1>/dev/null && echo 0), 0)
32 $(error This version of GCC does not support x32 ABI)
35 export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS
37 RTE_OBJCOPY_TARGET = elf32-x86-64
38 RTE_OBJCOPY_ARCH = i386:x86-64
40 export RTE_OBJCOPY_TARGET RTE_OBJCOPY_ARCH