#13 Add riscv64 support.
Closed a year ago by yangrr. Opened a year ago by imbearchild.
rpms/ imbearchild/kexec-tools rawhide  into  rawhide

Add riscv64 support.
Liu Yang • a year ago  
The added file is too large to be shown here, see it at: kexec-tools-rv64-support.patch
file modified
+32 -22
@@ -5,7 +5,7 @@ 

  

  Name: kexec-tools

  Version: 2.0.26

- Release: 3%{?dist}

+ Release: 4%{?dist}

  License: GPLv2

  Summary: The kexec/kdump userspace component

  
@@ -107,6 +107,9 @@ 

  #

  Patch601: kexec-tools-2.0.26-makedumpfile-Fix-wrong-exclusion-of-slab-pages-on-Linux-6.2.patch

  

+ # riscv64 support patch: https://lore.kernel.org/all/20221020031548.47587-1-xianting.tian@linux.alibaba.com/

+ Patch1000: kexec-tools-rv64-support.patch

+ 

  %description

  kexec-tools provides /sbin/kexec binary that facilitates a new

  kernel to boot using the kernel's kexec feature either on a
@@ -123,6 +126,10 @@ 

  

  %patch601 -p1

  

+ %ifarch riscv64

+ %patch1000 -p1

+ %endif

+ 

  %ifarch ppc

  %define archdef ARCH=ppc

  %endif
@@ -285,8 +292,8 @@ 

  %endif

  

  # This portion of the script is temporary.  Its only here

- # to fix up broken boxes that require special settings 

- # in /etc/sysconfig/kdump.  It will be removed when 

+ # to fix up broken boxes that require special settings

+ # in /etc/sysconfig/kdump.  It will be removed when

  # These systems are fixed.

  

  if [ -d /proc/bus/mckinley ]
@@ -299,7 +306,7 @@ 

  elif [ -d /proc/sgi_sn ]

  then

  	# This is for SGI SN boxes

- 	# They require the --noio option to kexec 

+ 	# They require the --noio option to kexec

  	# since they don't support legacy io

  	sed -e's/\(^KEXEC_ARGS.*\)\("$\)/\1 --noio"/' \

  	/etc/sysconfig/kdump > /etc/sysconfig/kdump.new
@@ -414,7 +421,10 @@ 

  %endif

  

  %changelog

- * Jan 30 2023 Coiby <coxu@redhat.com> - 2.0.26-3

+ * Mon Jan 30 2023 Liu Yang <Yang.Liu.sn@gmail.com> - 2.0.26-4

+ - Add riscv64 support patch.

+ 

+ * Mon Jan 30 2023 Coiby <coxu@redhat.com> - 2.0.26-3

  - kdumpctl: make do_estimate more robust

  - kdumpctl: refractor check_rebuild

  - kdumpctl: cleanup 'stop'
@@ -1120,7 +1130,7 @@ 

  - Revert "dracut-module-setup.sh: pass correct ip= param for ipv6"

  

  * Sat Apr 28 2018 Dave Young <dyoung@redhat.com> - 2.0.17-2

- - pull in makedumpfile 1.6.3 

+ - pull in makedumpfile 1.6.3

  

  * Sat Apr 28 2018 Dave Young <dyoung@redhat.com> - 2.0.17-1

  - pull in 2.0.17
@@ -1180,10 +1190,10 @@ 

  * Tue Aug 8 2017 Dave Young <dyoung@redhat.com> - 2.0.15-10

  - Improve 'cpu add' udev rules

  - module-setup: suppress the early iscsi error messages

- - mkdumprd: use 300s as the default systemd unit timeout for kdump mount 

+ - mkdumprd: use 300s as the default systemd unit timeout for kdump mount

  

  * Mon Aug 7 2017 Dave Young <dyoung@redhat.com> - 2.0.15-9

- - fix makedumpfile bug 1474706 

+ - fix makedumpfile bug 1474706

  

  * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.15-8

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
@@ -1339,9 +1349,9 @@ 

  - module-setup: Use get_ifcfg_filename() to get the proper ifcfg file

  

  * Mon May 30 2016 Dave Young <dyoung@redhat.com> - 2.0.12-4

- - update kdump anaconda addon to add mem range in tui 

+ - update kdump anaconda addon to add mem range in tui

  - .gitignore: Update to make it more generic

- - kdumpctl: check_rebuild improvement 

+ - kdumpctl: check_rebuild improvement

  - kdumpctl: Do not rebuild initramfs when $KDUMP_BOOTDIR is read only

  

  * Tue Mar 29 2016 Dave Young <dyoung@redhat.com> - 2.0.12-3
@@ -1352,7 +1362,7 @@ 

  - ppc64le: fix kexec hang due to ppc64 elf abi breakage

  

  * Tue Mar 22 2016 Dave Young <dyoung@redhat.com> - 2.0.12-1

- - Rebase kexec-tools to 2.0.12 

+ - Rebase kexec-tools to 2.0.12

  

  * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.11-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
@@ -1365,7 +1375,7 @@ 

  - fix bogus date in changelog

  

  * Thu Nov 19 2015 Dave Young <dyoung@redhat.com> - 2.0.11-2

- - Rebase to upstream makedumpfile 1.5.9 

+ - Rebase to upstream makedumpfile 1.5.9

  

  * Mon Nov 9 2015 Dave Young <dyoung@redhat.com> - 2.0.11-1

  - Rebase to upstream kexec-tools 2.0.11
@@ -1375,7 +1385,7 @@ 

  - Remove duplicate prefix path ${initdir}

  

  * Tue Sep 8 2015 Dave Young <dyoung@redhat.com> - 2.0.10-8

- - update kdump addon to fix a kickstart installationi issue 

+ - update kdump addon to fix a kickstart installationi issue

  

  * Wed Aug 19 2015 Dave Young <dyoung@redhat.com> - 2.0.10-7

  - add man page for kdumpctl
@@ -1717,7 +1727,7 @@ 

  

  * Thu Mar 14 2013 Baoquan He <bhe@redhat.com> - 2.0.3-69

  - Support for eppic language as a subpackage

-  

+ 

  * Thu Mar 14 2013 Baoquan He <bhe@redhat.com> - 2.0.3-68

  - tune sysconfig to save memory usage

  - Remove useless codes related to LOGGER in kdumpctl
@@ -1844,7 +1854,7 @@ 

  - do not add fstab-sys module in dracut cmdline

  - omit dash module

  - network dns config fix

- - shell exit value fix 

+ - shell exit value fix

  

  * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-52

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
@@ -2171,7 +2181,7 @@ 

  - Make makedumpfile a dynamic binary

  

  * Mon Jul 06 2009 Neil Horman <nhorman@redhat.com> 2.0.0-19

- - Fix build issue 

+ - Fix build issue

  

  * Mon Jul 06 2009 Neil Horman <nhorman@redhat.com> 2.0.0-18

  - Updated initscript to use mkdumprd2 if manifest is present
@@ -2383,7 +2393,7 @@ 

  - updating mkdumprd to use new kcp syntax

  

  * Wed Aug 23 2006 Neil Horman <nhorman@redhat.com> - 1.101-48

- - Bumping revision number 

+ - Bumping revision number

  

  * Tue Aug 22 2006 Jarod Wilson <jwilson@redhat.com> - 1.101-47

  - ppc64 no-more-platform fix
@@ -2403,7 +2413,7 @@ 

  

  * Tue Aug 15 2006 Neil Horman <nhorman@redhat.com> - 1.101-44

  - updated init script to implement status function/scrub err messages

-  

+ 

  * Wed Aug 09 2006 Jarod Wilson <jwilson@redhat.com> - 1.101-43

  - Misc spec cleanups and macro-ifications

  
@@ -2411,13 +2421,13 @@ 

  - Add %%dir /var/crash, so default kdump setup works

  

  * Thu Aug 03 2006 Neil Horman <nhorman@redhat.com> - 1.101-41

- - fix another silly makefile error for makedumpfile 

+ - fix another silly makefile error for makedumpfile

  

  * Thu Aug 03 2006 Neil Horman <nhorman@redhat.com> - 1.101-40

- - exclude makedumpfile from build on non-x86[_64] arches 

+ - exclude makedumpfile from build on non-x86[_64] arches

  

  * Thu Aug 03 2006 Neil Horman <nhorman@redhat.com> - 1.101-39

- - exclude makedumpfile from build on non-x86[_64] arches 

+ - exclude makedumpfile from build on non-x86[_64] arches

  

  * Thu Aug 03 2006 Neil Horman <nhorman@redhat.com> - 1.101-38

  - updating makedumpfile makefile to use pkg-config on glib-2.0
@@ -2514,7 +2524,7 @@ 

  

  * Wed Nov 16 2005 Thomas Graf <tgraf@redhat.com> - 1.101-5

  - Report missing kdump kernel image as warning

-  

+ 

  * Thu Nov  3 2005 Jeff Moyer <jmoyer@redhat.com> - 1.101-4

  - Build for x86_64 as well.  Kdump support doesn't work there, but users

    should be able to use kexec.

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/4f8e22b179a94c4facb4b270340310d8

Hi Yang,

It seems the patch still has some issues and hasn't been accepted by upstream kexec-tools. Can we wait for the upstream patch to merged first? Or could you post this patch to kexec@lists.fedoraproject.org so more people can help review it?

Hi, please submit it to upstream kexec list first if no strong reason to add Fedora first. The upstream list is kexec@lists.infradead.org; For Fedora we can just rebase to the next upstream kexec-tools version (kexec-tools upstream have similar release cadence as the linux kernel). If it has been merged in upstream kexec-tools, you want it be backported to Fedora kexec-tools before the rebase then please submit the rebase patch to kexec@lists.fedoraproject.org for review, otherwise just wait for the rebase, we will take care of it. Thanks!

Pull-Request has been closed by yangrr

a year ago