2019-06-25 11:12:58 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2014 Intel Corporation
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# arch:
|
|
|
|
#
|
2018-05-15 09:49:22 +00:00
|
|
|
# - define ARCH variable (overridden by cmdline or by previous
|
2017-04-21 10:43:26 +00:00
|
|
|
# optional define in machine .mk)
|
2018-05-15 09:49:22 +00:00
|
|
|
# - define CROSS variable (overridden by cmdline or previous define
|
2017-04-21 10:43:26 +00:00
|
|
|
# in machine .mk)
|
2018-05-15 09:49:22 +00:00
|
|
|
# - define CPU_CFLAGS variable (overridden by cmdline or previous
|
2017-04-21 10:43:26 +00:00
|
|
|
# define in machine .mk)
|
2018-05-15 09:49:22 +00:00
|
|
|
# - define CPU_LDFLAGS variable (overridden by cmdline or previous
|
2017-04-21 10:43:26 +00:00
|
|
|
# define in machine .mk)
|
2018-05-15 09:49:22 +00:00
|
|
|
# - define CPU_ASFLAGS variable (overridden by cmdline or previous
|
2017-04-21 10:43:26 +00:00
|
|
|
# define in machine .mk)
|
|
|
|
# - may override any previously defined variable
|
|
|
|
#
|
|
|
|
# examples for CONFIG_RTE_ARCH: i686, x86_64, x86_64_32
|
|
|
|
#
|
|
|
|
|
|
|
|
ARCH ?= i386
|
|
|
|
# common arch dir in eal headers
|
|
|
|
ARCH_DIR := x86
|
|
|
|
CROSS ?=
|
|
|
|
|
|
|
|
CPU_CFLAGS ?= -m32
|
|
|
|
CPU_LDFLAGS ?= -melf_i386
|
|
|
|
CPU_ASFLAGS ?= -felf
|
|
|
|
|
|
|
|
export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS
|
|
|
|
|
|
|
|
RTE_OBJCOPY_TARGET = elf32-i386
|
|
|
|
RTE_OBJCOPY_ARCH = i386
|
|
|
|
|
|
|
|
export RTE_OBJCOPY_TARGET RTE_OBJCOPY_ARCH
|