RISC-V Porting Wiki
  • RVPortingTools
  • RVSmartPorting
  • 简体中文
  • English (US)
View on Gitee
  • RVPortingTools
  • RVSmartPorting
  • 简体中文
  • English (US)
View on Gitee
  • Welcome
    • Contributing Guideline
  • Introduction
    • Memory Consistency Model of RISC-V
    • Difference between RV Dev Boards
    • Modules of RISC-V ISA
  • Common Adjustment
    • Check Whether Project is Ready for Multi-arch
    • File Structure Adjustment
    • Directory Structure Adjustment
    • Testcase Adjustment
  • C/C++ Program
    • Inline ASM
    • Macro Definition and Directive
    • Hex Constant
    • Intrinsic Function
    • Function Multiversioning
  • Configuration File
    • rpmbuild
    • Makefile
    • CMake
    • Autoconf
    • QMake
    • Others
  • Other Programming Language
    • Rust
    • Go
    • Python
    • Others

Directory Structure Adjustment

Example: Add support directories for RISC-V in kexec-tools

Project URL: https://gitee.com/src-openeuler/kexec-tools
RISC-V Patch file URL: support_riscv.patch

Partial list of the original project directories:

/purgatory/arch/alpha
/purgatory/arch/arm
/purgatory/arch/arm64
/purgatory/arch/i386
/purgatory/arch/ia64
/purgatory/arch/mips
/purgatory/arch/ppc
/purgatory/arch/ppc64
/purgatory/arch/s390
/purgatory/arch/sh
/purgatory/arch/x86_64

Based on the highlighted architecture keywords, the following additional directories are required to support the RISC-V architecture.

/purgatory/arch/riscv
/purgatory/arch/riscv64
Edit this page
Last Updated:
Contributors: LightningRS
Prev
File Structure Adjustment
Next
Testcase Adjustment

This knowledge base is licensed under a Mulan OWL BY-SA v1.0

Copyright © 2025 RVSmartPorting. | 京ICP备20005262号 | beian京公网安备11010802043677号