kdump/kdump-enable-fadump-ppc64le.patch

34 lines
917 B
Diff

Date: Wed Sep 24 13:56:42 2014 +0200
From: Petr Tesarik <ptesarik@suse.cz>
Subject: Enable FADUMP on ppc64le
References: bsc#889192
Patch-mainline: v0.8.16
Git-commit: 69bce53e9a02145e857bd4c36effcaf560a8f8cf
The FADUMP feature is only available on IBM POWER systems, but the
new little-endian variant has a new CMAKE_SYSTEM_PROCESSOR value.
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
---
CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,11 +144,11 @@ ENDIF(NOT LIBSSL_FOUND)
# Check for FADUMP
#
-IF(“${CMAKE_SYSTEM_PROCESSOR}” STREQUAL “ppc64”)
+IF("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "ppc64(le)?")
SET(HAVE_FADUMP TRUE)
-ELSE(“${CMAKE_SYSTEM_PROCESSOR}” STREQUAL “ppc64”)
+ELSE()
SET(HAVE_FADUMP FALSE)
-ENDIF(“${CMAKE_SYSTEM_PROCESSOR}” STREQUAL “ppc64”)
+ENDIF()
#
# Configure file