1 Star 0 Fork 32

Ren Zhijie/gazelle

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0149-Add-support-for-ppc64le.patch 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
Ren Zhijie 提交于 2024-03-07 14:51 . Add support for ppc64le
From 127940cbfec218633464a03e01b21236635ec781 Mon Sep 17 00:00:00 2001
From: Ren Zhijie <[email protected]>
Date: Thu, 7 Mar 2024 14:44:07 +0800
Subject: [PATCH] Add support for ppc64le
Signed-off-by: Ren Zhijie <[email protected]>
---
src/ltran/CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ltran/CMakeLists.txt b/src/ltran/CMakeLists.txt
index f739ceb..c31aed0 100644
--- a/src/ltran/CMakeLists.txt
+++ b/src/ltran/CMakeLists.txt
@@ -58,6 +58,9 @@ if (DPDK_VERSION GREATER_EQUAL 23.11)
set(DPDK_LINK_FLAGS "${DPDK_LINK_FLAGS} -lrte_log -larchive -Wl,-lrte_eal")
else()
set(DPDK_LINK_FLAGS "${DPDK_LINK_FLAGS} -lrte_kni -Wl,-Bstatic -lrte_eal -Wl,-Bdynamic")
+ if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "ppc64le")
+ set(DPDK_LINK_FLAGS "${DPDK_LINK_FLAGS} -Wl,-larchive")
+ endif()
endif()
add_executable(ltran main.c ltran_param.c ltran_config.c ltran_ethdev.c ltran_stat.c ltran_errno.c
@@ -74,7 +77,7 @@ target_compile_options(ltran PRIVATE -fno-strict-aliasing -D__ARM_FEATURE_CRC32=
-Wdeprecated -Wwrite-strings -Wno-implicit-fallthrough -D_FORTIFY_SOURCE=2 -Wno-error=deprecated-declarations)
# gcc coredump in openEuler-20.03-LTS-XX aarch64 when add -march=native
-if(NOT CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "sw_64|aarch64" )
+if(NOT CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "sw_64|aarch64|ppc64le" )
target_compile_options(ltran PRIVATE -march=native -Wcast-align)
endif()
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/byterzj/gazelle.git
[email protected]:byterzj/gazelle.git
byterzj
gazelle
gazelle
master

搜索帮助