From 3a7ee4c6c90128183573161feac03e033de20ca9 Mon Sep 17 00:00:00 2001 From: U2FsdGVkX1 Date: Wed, 21 Feb 2024 13:33:37 +0800 Subject: [PATCH] Add riscv64 support --- autoconf.h | 6 ++++++ libecap.spec | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/autoconf.h b/autoconf.h index aa5de1c..a41d765 100644 --- a/autoconf.h +++ b/autoconf.h @@ -44,6 +44,12 @@ #include "libecap/common/autoconf-sparc.h" #elif defined(__aarch64__) #include "libecap/common/autoconf-aarch64.h" +#elif defined(__riscv) +#if __riscv_xlen == 64 +#include "libecap/common/autoconf-riscv64.h" +#else +#include "libecap/common/autoconf-riscv32.h" +#endif #else #error "The libecap-devel package is not usable with the architecture." #endif diff --git a/libecap.spec b/libecap.spec index d6669ae..1b906b2 100644 --- a/libecap.spec +++ b/libecap.spec @@ -1,6 +1,6 @@ Name: libecap Version: 1.0.1 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Squid interface for embedded adaptation modules License: BSD-2-Clause URL: http://www.e-cap.org/ @@ -65,6 +65,9 @@ install -pm644 %{SOURCE1} %{buildroot}%{_includedir}/%{name}/common/autoconf.h %{_includedir}/libecap %changelog +* Wed Feb 21 2024 Songsong Zhang - 1.0.1-17 +- Add riscv64 support + * Thu Jan 25 2024 Fedora Release Engineering - 1.0.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild