Add initial riscv64 support

Notes:
- No bootloader is configured; images must be booted via direct kernel
  - Tested via qemu + opensbi fw_jump.elf + kernel/initrd
- As riscv64 is currently in ports, the following options are required:
    --distribution unstable
    --mirror-bootstrap http://ftp.ports.debian.org/debian-ports/
    --security false
    --debootstrap-options --keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg
- Normally ports require stacking two dists, unstable and unreleased.
  debootstrap does not support doing this, but as of this writing, there
  is nothing in riscv64 unreleased which is required to bootstrap.
  However, this would not have been possible a year ago.
This commit is contained in:
Ryan Finnie 2021-11-14 09:22:41 -08:00
parent bcc4ab97c6
commit 5da4ff53be
No known key found for this signature in database
GPG Key ID: 7E60A3A686AE8D98
3 changed files with 6 additions and 2 deletions

View File

@ -251,6 +251,10 @@ Prepare_config ()
LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-powerpc64le}"
;;
riscv64)
LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-riscv64}"
;;
s390x)
LB_LINUX_FLAVOURS_WITH_ARCH="${LB_LINUX_FLAVOURS_WITH_ARCH:-s390x}"
;;

View File

@ -48,7 +48,7 @@ case "${LB_INITRAMFS}" in
esac
case "${LB_ARCHITECTURE}" in
powerpc|ppc64el)
powerpc|ppc64el|riscv64)
LINUX="vmlinux"
;;

View File

@ -37,7 +37,7 @@ case "${LB_ARCHITECTURE}" in
LINUX="vmlinuz"
;;
powerpc|ppc64el)
powerpc|ppc64el|riscv64)
LINUX="vmlinux"
;;
esac