aboutsummaryrefslogtreecommitdiffstats
path: root/mk/arch/i686/rte.vars.mk
blob: 3f48f6744026b84d73ca8b2518a1a0aed98634c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2010-2014 Intel Corporation

#
# arch:
#
#   - define ARCH variable (overridden by cmdline or by previous
#     optional define in machine .mk)
#   - define CROSS variable (overridden by cmdline or previous define
#     in machine .mk)
#   - define CPU_CFLAGS variable (overridden by cmdline or previous
#     define in machine .mk)
#   - define CPU_LDFLAGS variable (overridden by cmdline or previous
#     define in machine .mk)
#   - define CPU_ASFLAGS variable (overridden by cmdline or previous
#     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