From 31c4d88add7b5f8fd3aa066d54d4d8cdcd2e8750 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: May 20 2019 17:23:00 +0000 Subject: Allow building in armhfp --- 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 de12e57..88025bb 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 %{arm} ppc64le Buildroot: %{_tmppath}/%{name}-root BuildRequires: zlib-devel lzo-devel snappy-devel BuildRequires: crash-devel >= 7.2.0-2 @@ -31,6 +31,8 @@ Patch9: big_endian_nr_pages.patch Patch10: ppc64_ring_buffer_read.patch Patch11: rhel8_build.patch +Patch1001: ARM32.patch + %description Command for reading ftrace data from a dumpfile. @@ -49,6 +51,8 @@ Command for reading ftrace data from a dumpfile. %patch10 -p1 -b ppc64_ring_buffer_read.patch %patch11 -p1 -b rhel8_build.patch +%patch1001 -p1 -b ARM32.patch + %build make @@ -65,6 +69,9 @@ rm -rf %{buildroot} %doc COPYING %changelog +* Mon May 20 2019 Pablo Greco - 2.0-15 +- Fix for armhfp + * Wed Sep 19 2018 Dave Anderson - 2.0-15 - annocheck: link with -Wl,-z,now Resolves: rhbz#1630558