From 13381936af6445fd79a840265d94cf1559a5b70c Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Wed, 10 Feb 2021 19:54:24 +0300 Subject: [PATCH] make: Correct ppc detection gcc -dumpmachine may provide the following output: ppc64le-redhat-linux To detect PowerPC system we should check for both "powerpc%" and "ppc%" strings Signed-off-by: Alexey Marchuk Change-Id: Ifb5afe743797177afa4f1b541a0c8ccaf4befbda Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6378 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Community-CI: Mellanox Build Bot --- mk/spdk.common.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk index f3fe5c248..5656b0b7b 100644 --- a/mk/spdk.common.mk +++ b/mk/spdk.common.mk @@ -3,7 +3,7 @@ # # Copyright (c) Intel Corporation. # Copyright (c) 2017, IBM Corporation. -# Copyright (c) 2019, Mellanox Corporation. +# Copyright (c) 2019, 2021 Mellanox Corporation. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -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) ifeq ($(TARGET_ARCHITECTURE),native)