From 64a976e2168522d7ebe1cc3962f6cbb028f10a78 Mon Sep 17 00:00:00 2001 From: Ren Zhijie Date: Mon, 4 Mar 2024 18:23:15 +0800 Subject: [PATCH] Add support for ppc64le Signed-off-by: Ren Zhijie --- ...ror-ppc64le-gnu-gcc-does-not-support.patch | 27 +++++++++++++++++++ spdk.spec | 8 ++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 0022-Fix-the-build-error-ppc64le-gnu-gcc-does-not-support.patch diff --git a/0022-Fix-the-build-error-ppc64le-gnu-gcc-does-not-support.patch b/0022-Fix-the-build-error-ppc64le-gnu-gcc-does-not-support.patch new file mode 100644 index 0000000..9253ca6 --- /dev/null +++ b/0022-Fix-the-build-error-ppc64le-gnu-gcc-does-not-support.patch @@ -0,0 +1,27 @@ +From 219b299eb85d5626e9c2c4da6ca92e6debe8239b Mon Sep 17 00:00:00 2001 +From: Ren Zhijie +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 +--- + 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 + diff --git a/spdk.spec b/spdk.spec index cf84d8b..6567fd6 100644 --- a/spdk.spec +++ b/spdk.spec @@ -3,7 +3,7 @@ Name: spdk Version: 21.01.1 -Release: 9 +Release: 10 Summary: Set of libraries and utilities for high performance user-mode storage License: BSD and MIT 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 Patch20: 0020-configure-add-CONFIG_HAVE_ARC4RANDOM.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} @@ -43,7 +44,7 @@ Patch21: 0021-lib-bdev-return-error-when-failing-to-get-resource.patch %define use_python2 0 %endif -ExclusiveArch: x86_64 aarch64 loongarch64 +ExclusiveArch: x86_64 aarch64 loongarch64 ppc64le BuildRequires: gcc gcc-c++ make BuildRequires: dpdk-devel, numactl-devel, ncurses-devel @@ -199,6 +200,9 @@ mv doc/output/html/ %{install_docdir} %changelog +* Mon Mar 4 2024 Ren Zhijie - 21.01.1-10 +- Add support for ppc64le + * Thu Dec 14 2023 Hongtao Zhang - 21.01.1-9 - Return error when failing to get resource -- Gitee