From 8f7bc5f5eb6400ba17e9a80ea271e694e826d6f2 Mon Sep 17 00:00:00 2001 From: nanxiongchao Date: Feb 10 2020 09:24:13 +0000 Subject: Allow building in mips64 Signed-off-by: nanxiongchao --- diff --git a/SOURCES/MIPS.patch b/SOURCES/MIPS.patch new file mode 100644 index 0000000..ef3055e --- /dev/null +++ b/SOURCES/MIPS.patch @@ -0,0 +1,13 @@ +--- crash-trace-command-2.0/Makefile.orig ++++ crash-trace-command-2.0/Makefile +@@ -34,6 +34,10 @@ ifeq ($(shell arch), armv7l) + TARGET=ARM32 + TARGET_CFLAGS= + endif ++ifeq ($(shell arch), mips64) ++ TARGET=MIPS ++ TARGET_CFLAGS= ++endif + + INCDIR=/usr/include/crash + diff --git a/SPECS/crash-trace-command.spec b/SPECS/crash-trace-command.spec index 88025bb..2ab3f85 100644 --- a/SPECS/crash-trace-command.spec +++ b/SPECS/crash-trace-command.spec @@ -12,7 +12,7 @@ URL: http://people.redhat.com/anderson/extensions/%{name}-%{version}.tar.gz # Vendor: Fujitsu Limited # Packager: Qiao Nuohan ExclusiveOS: Linux -ExclusiveArch: x86_64 %{ix86} ppc64 ia64 s390 s390x aarch64 %{arm} ppc64le +ExclusiveArch: x86_64 %{ix86} ppc64 ia64 s390 s390x aarch64 %{arm} ppc64le %{mips} Buildroot: %{_tmppath}/%{name}-root BuildRequires: zlib-devel lzo-devel snappy-devel BuildRequires: crash-devel >= 7.2.0-2 @@ -32,6 +32,7 @@ Patch10: ppc64_ring_buffer_read.patch Patch11: rhel8_build.patch Patch1001: ARM32.patch +Patch1002: MIPS.patch %description Command for reading ftrace data from a dumpfile. @@ -52,6 +53,7 @@ Command for reading ftrace data from a dumpfile. %patch11 -p1 -b rhel8_build.patch %patch1001 -p1 -b ARM32.patch +%patch1002 -p1 -b MIPS.patch %build make @@ -69,6 +71,9 @@ rm -rf %{buildroot} %doc COPYING %changelog +* Mon Feb 10 2020 Nan xiongchao - 2.0-15 +- add mips64 support + * Mon May 20 2019 Pablo Greco - 2.0-15 - Fix for armhfp