diff --git a/SOURCES/ARM32.patch b/SOURCES/ARM32.patch new file mode 100644 index 0000000..737aec6 --- /dev/null +++ b/SOURCES/ARM32.patch @@ -0,0 +1,13 @@ +--- crash-trace-command-2.0/Makefile.orig ++++ crash-trace-command-2.0/Makefile +@@ -30,6 +30,10 @@ ifeq ($(shell arch), aarch64) + TARGET=ARM64 + TARGET_CFLAGS= + endif ++ifeq ($(shell arch), armv7l) ++ TARGET=ARM32 ++ TARGET_CFLAGS= ++endif + + INCDIR=/usr/include/crash + diff --git a/SPECS/crash-trace-command.spec b/SPECS/crash-trace-command.spec index 0e03c1d..3db0ecc 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 ppc64le +ExclusiveArch: x86_64 %{ix86} ppc64 ia64 s390 s390x aarch64 ppc64le %{arm} Buildroot: %{_tmppath}/%{name}-root BuildRequires: zlib-devel lzo-devel snappy-devel BuildRequires: crash-devel >= 7.2.0-2 @@ -32,6 +32,8 @@ Patch10: ppc64_ring_buffer_read.patch Patch11: rhel8_build.patch Patch12: ftrace_event_call_rh_data.patch +Patch1001: ARM32.patch + %description Command for reading ftrace data from a dumpfile. @@ -51,6 +53,8 @@ Command for reading ftrace data from a dumpfile. %patch11 -p1 -b rhel8_build.patch %patch12 -p1 -b ftrace_event_call_rh_data.patch +%patch1001 -p1 -b ARM32.patch + %build make