diff options
Diffstat (limited to 'src/spdk/dpdk/mk/arch')
-rw-r--r-- | src/spdk/dpdk/mk/arch/arm/rte.vars.mk | 16 | ||||
-rw-r--r-- | src/spdk/dpdk/mk/arch/arm64/rte.vars.mk | 37 | ||||
-rw-r--r-- | src/spdk/dpdk/mk/arch/i686/rte.vars.mk | 36 | ||||
-rw-r--r-- | src/spdk/dpdk/mk/arch/ppc_64/rte.vars.mk | 17 | ||||
-rw-r--r-- | src/spdk/dpdk/mk/arch/x86_64/rte.vars.mk | 36 | ||||
-rw-r--r-- | src/spdk/dpdk/mk/arch/x86_x32/rte.vars.mk | 40 |
6 files changed, 182 insertions, 0 deletions
diff --git a/src/spdk/dpdk/mk/arch/arm/rte.vars.mk b/src/spdk/dpdk/mk/arch/arm/rte.vars.mk new file mode 100644 index 000000000..dc8c10a24 --- /dev/null +++ b/src/spdk/dpdk/mk/arch/arm/rte.vars.mk @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2015 RehiveTech. All rights reserved. + +ARCH ?= arm +CROSS ?= + +CPU_CFLAGS ?= -marm -munaligned-access -D_FILE_OFFSET_BITS=64 +CPU_LDFLAGS ?= +CPU_ASFLAGS ?= -felf + +export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS + +RTE_OBJCOPY_TARGET = elf32-littlearm +RTE_OBJCOPY_ARCH = arm + +export RTE_OBJCOPY_TARGET RTE_OBJCOPY_ARCH diff --git a/src/spdk/dpdk/mk/arch/arm64/rte.vars.mk b/src/spdk/dpdk/mk/arch/arm64/rte.vars.mk new file mode 100644 index 000000000..a75b80c22 --- /dev/null +++ b/src/spdk/dpdk/mk/arch/arm64/rte.vars.mk @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2015 Cavium, Inc +# + +# +# 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 ?= arm64 +# common arch dir in eal headers +ARCH_DIR := arm +CROSS ?= + +CPU_CFLAGS ?= +CPU_LDFLAGS ?= +CPU_ASFLAGS ?= -felf + +export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS + +RTE_OBJCOPY_TARGET = elf64-littleaarch64 +RTE_OBJCOPY_ARCH = aarch64 + +export RTE_OBJCOPY_TARGET RTE_OBJCOPY_ARCH diff --git a/src/spdk/dpdk/mk/arch/i686/rte.vars.mk b/src/spdk/dpdk/mk/arch/i686/rte.vars.mk new file mode 100644 index 000000000..c867883f1 --- /dev/null +++ b/src/spdk/dpdk/mk/arch/i686/rte.vars.mk @@ -0,0 +1,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 -D_FILE_OFFSET_BITS=64 +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 diff --git a/src/spdk/dpdk/mk/arch/ppc_64/rte.vars.mk b/src/spdk/dpdk/mk/arch/ppc_64/rte.vars.mk new file mode 100644 index 000000000..9f7ab22f4 --- /dev/null +++ b/src/spdk/dpdk/mk/arch/ppc_64/rte.vars.mk @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) IBM Corporation 2014. + +ARCH ?= powerpc +ARCH_DIR := ppc +CROSS ?= + +CPU_CFLAGS ?= -m64 +CPU_LDFLAGS ?= +CPU_ASFLAGS ?= -felf64 + +export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS + +RTE_OBJCOPY_TARGET = elf64-powerpcle +RTE_OBJCOPY_ARCH = powerpc:common64 + +export RTE_OBJCOPY_TARGET RTE_OBJCOPY_ARCH diff --git a/src/spdk/dpdk/mk/arch/x86_64/rte.vars.mk b/src/spdk/dpdk/mk/arch/x86_64/rte.vars.mk new file mode 100644 index 000000000..e1689be9b --- /dev/null +++ b/src/spdk/dpdk/mk/arch/x86_64/rte.vars.mk @@ -0,0 +1,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 ?= x86_64 +# common arch dir in eal headers +ARCH_DIR := x86 +CROSS ?= + +CPU_CFLAGS ?= -m64 +CPU_LDFLAGS ?= +CPU_ASFLAGS ?= -felf64 + +export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS + +RTE_OBJCOPY_TARGET = elf64-x86-64 +RTE_OBJCOPY_ARCH = i386:x86-64 + +export RTE_OBJCOPY_TARGET RTE_OBJCOPY_ARCH diff --git a/src/spdk/dpdk/mk/arch/x86_x32/rte.vars.mk b/src/spdk/dpdk/mk/arch/x86_x32/rte.vars.mk new file mode 100644 index 000000000..c59b37a2c --- /dev/null +++ b/src/spdk/dpdk/mk/arch/x86_x32/rte.vars.mk @@ -0,0 +1,40 @@ +# 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 ?= x86_64 +ARCH_DIR := x86 +CROSS ?= + +CPU_CFLAGS ?= -mx32 +CPU_LDFLAGS ?= -melf32_x86_64 +#CPU_ASFLAGS ?= -felf64 +# x32 is supported by Linux distribution with gcc4.8 and newer in some +# cases there is backported support in gcc4.6 +ifneq ($(shell echo | $(CC) $(CPU_CFLAGS) -E - 2>/dev/null 1>/dev/null && echo 0), 0) + $(error This version of GCC does not support x32 ABI) +endif + +export ARCH CROSS CPU_CFLAGS CPU_LDFLAGS CPU_ASFLAGS + +RTE_OBJCOPY_TARGET = elf32-x86-64 +RTE_OBJCOPY_ARCH = i386:x86-64 + +export RTE_OBJCOPY_TARGET RTE_OBJCOPY_ARCH |