!111 Add support for ppc64le
From: @byterzj Reviewed-by: @swf504 Signed-off-by: @swf504
This commit is contained in:
commit
4a925414df
@ -0,0 +1,27 @@
|
|||||||
|
From 219b299eb85d5626e9c2c4da6ca92e6debe8239b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ren Zhijie <zhijie.ren@shingroup.cn>
|
||||||
|
Date: Mon, 4 Mar 2024 18:03:47 +0800
|
||||||
|
Subject: [PATCH] Fix the build error ppc64le-gnu-gcc does not support -march
|
||||||
|
option
|
||||||
|
|
||||||
|
Signed-off-by: Ren Zhijie <zhijie.ren@shingroup.cn>
|
||||||
|
---
|
||||||
|
mk/spdk.common.mk | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk
|
||||||
|
index 1326f83..14777ae 100644
|
||||||
|
--- a/mk/spdk.common.mk
|
||||||
|
+++ b/mk/spdk.common.mk
|
||||||
|
@@ -75,7 +75,7 @@ TARGET_MACHINE := $(firstword $(TARGET_TRIPLET_WORDS))
|
||||||
|
|
||||||
|
COMMON_CFLAGS = -g $(C_OPT) -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wmissing-declarations -fno-strict-aliasing -I$(SPDK_ROOT_DIR)/include
|
||||||
|
|
||||||
|
-ifneq ($(filter powerpc%,$(TARGET_MACHINE)),)
|
||||||
|
+ifneq ($(filter powerpc% ppc%,$(TARGET_MACHINE)),)
|
||||||
|
COMMON_CFLAGS += -mcpu=$(TARGET_ARCHITECTURE)
|
||||||
|
else ifeq ($(TARGET_MACHINE),aarch64)
|
||||||
|
COMMON_CFLAGS += -march=$(TARGET_ARCHITECTURE)
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: spdk
|
Name: spdk
|
||||||
Version: 21.01.1
|
Version: 21.01.1
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: Set of libraries and utilities for high performance user-mode storage
|
Summary: Set of libraries and utilities for high performance user-mode storage
|
||||||
License: BSD and MIT
|
License: BSD and MIT
|
||||||
URL: http://spdk.io
|
URL: http://spdk.io
|
||||||
@ -29,6 +29,7 @@ Patch18: 0018-nvme-pcie-add-memory-barrier-for-LOONGARCH.patch
|
|||||||
Patch19: 0019-build-Specify-the-target-build-architecture-for-LOON.patch
|
Patch19: 0019-build-Specify-the-target-build-architecture-for-LOON.patch
|
||||||
Patch20: 0020-configure-add-CONFIG_HAVE_ARC4RANDOM.patch
|
Patch20: 0020-configure-add-CONFIG_HAVE_ARC4RANDOM.patch
|
||||||
Patch21: 0021-lib-bdev-return-error-when-failing-to-get-resource.patch
|
Patch21: 0021-lib-bdev-return-error-when-failing-to-get-resource.patch
|
||||||
|
Patch22: 0022-Fix-the-build-error-ppc64le-gnu-gcc-does-not-support.patch
|
||||||
|
|
||||||
%define package_version %{version}-%{release}
|
%define package_version %{version}-%{release}
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ Patch21: 0021-lib-bdev-return-error-when-failing-to-get-resource.patch
|
|||||||
%define use_python2 0
|
%define use_python2 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
ExclusiveArch: x86_64 aarch64 loongarch64
|
ExclusiveArch: x86_64 aarch64 loongarch64 ppc64le
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++ make
|
BuildRequires: gcc gcc-c++ make
|
||||||
BuildRequires: dpdk-devel, numactl-devel, ncurses-devel
|
BuildRequires: dpdk-devel, numactl-devel, ncurses-devel
|
||||||
@ -199,6 +200,9 @@ mv doc/output/html/ %{install_docdir}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 4 2024 Ren Zhijie <zhijie.ren@shingroup.cn> - 21.01.1-10
|
||||||
|
- Add support for ppc64le
|
||||||
|
|
||||||
* Thu Dec 14 2023 Hongtao Zhang <zhanghongtao22@huawei.com> - 21.01.1-9
|
* Thu Dec 14 2023 Hongtao Zhang <zhanghongtao22@huawei.com> - 21.01.1-9
|
||||||
- Return error when failing to get resource
|
- Return error when failing to get resource
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user