From 6a039d67f0f2f6e29894c9df96560ee8b5562a54 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 11 May 2022 12:26:42 +0000 Subject: [PATCH] Add support for RISC-V Author: David Abdurachmanov Signed-off-by: Nianqing Yao and David Abdurachmanov --- annobin-add-riscv-support.patch | 28 ++++++++++++++++++++++++++++ annobin.spec | 5 +++++ 2 files changed, 33 insertions(+) create mode 100644 annobin-add-riscv-support.patch diff --git a/annobin-add-riscv-support.patch b/annobin-add-riscv-support.patch new file mode 100644 index 0000000..f5bf695 --- /dev/null +++ b/annobin-add-riscv-support.patch @@ -0,0 +1,28 @@ +diff --git a/configure b/configure +index 4ade97a..6028b72 100755 +--- a/configure ++++ b/configure +@@ -17807,6 +17807,9 @@ case ${target} in + s390*-*-*) + target_plugin="s390.annobin.lo" + ;; ++ riscv*-*-*) ++ target_plugin="riscv.annobin.lo" ++ ;; + *) + target_plugin="dummy.annobin.lo" + ;; +diff --git a/configure.ac b/configure.ac +index acbf0a4..10cf53a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -42,6 +42,9 @@ case ${target} in + s390*-*-*) + target_plugin="s390.annobin.lo" + ;; ++ riscv*-*-*) ++ target_plugin="riscv.annobin.lo" ++ ;; + *) + target_plugin="dummy.annobin.lo" + ;; diff --git a/annobin.spec b/annobin.spec index 251fa1e..8a20101 100644 --- a/annobin.spec +++ b/annobin.spec @@ -69,6 +69,8 @@ Source: https://nickc.fedorapeople.org/%{annobin_sources} # Patch01: annobin-foo.patch # Patch01: 0001-Compatibility-patch-for-llvm14.patch +Patch01: annobin-add-riscv-support.patch + #--------------------------------------------------------------------------------- # Make sure that the necessary sub-packages are built. @@ -484,6 +486,9 @@ fi #--------------------------------------------------------------------------------- %changelog +* Thu May 10 2022 Nianqing Yao - 10.70-2 +- Add support for RISC-V. + * Mon May 09 2022 Nick Clifton - 10.70-1 - Annocheck: Add another special case for glibc rpms. (#2083070)