build: add emag(arm64) platform and default config
cover build: add emag(arm64) platform and default config
*** BLURB HERE ***
Jerry Hao OS (1):
build: add emag(arm64) platform and default config
config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 8 ++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk
Signature · 1 line
2.17.1
PATCH 1/1 build: add emag(arm64) platform and default config
This patch is to add the emag default CACHE_LINE_SIZE settings and ARCH variable definitions
--- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 8 ++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk
config/defconfig_arm64-emag-linux-gcc new file +1 -0
@@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gcc
config/defconfig_arm64-emag-linuxapp-gcc new file +8 -0
@@ -0,0 +1,8 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="emag" +CONFIG_RTE_CACHE_LINE_SIZE=64
mk/machine/emag/rte.vars.mk new file +31 -0
@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# + +# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+crypto
Signature · 1 line
2.17.1
Quoted 12 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Jerry Hao OS
Sent: Thursday, September 12, 2019 10:22 AM
To: [email protected]
Cc: [email protected]; Jerry Hao OS <[email protected]>
Subject: [dpdk-dev] [PATCH 1/1] build: add emag(arm64) platform and default configThis patch is to add the emag default
CACHE_LINE_SIZEsettings and ARCH variable definitionsSigned-off-by Jerry Hao OS <[email protected]>
Quoted 8 lines
--- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 8 ++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk
Add meson build support as well. See config/arm/*
mk/machine/emag/rte.vars.mk line 31
Quoted 11 lines
mk/machine/emag/rte.vars.mk new file +11
-0+ +# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+crypto
Is emag platform is only armv8? If it is supports lse then add that as well. See mk/machine/octeontx2/rte.vars.mk as example
If it has dedicated mcpu support then add the following MACHINE_CFLAGS += $(call rte_cc_has_argument, -mcpu=your_cpu)
Quoted 2 lines
--
2.17.1