Hello Vimer!
On 2/19/22 15:32, vimer wrote:
I apply patch[1] to sip source and pass for " machine `riscv64' not
recognized" error, but fail at last:
I suggest using qemu-based sbuild environment for building packages for
riscv64. There is an outdated guide I wrote for sh4 [1] which explains
on how to set up such an environment.
Normally, you should be able to create such a changeroot with:
# apt install sbuild
# cd /srv
# debbootstrap --no-check-gpg --include=debian-ports-archive-keyring --arch=riscv64 \
unstable sid-riscv64-sbuild http://ftp.ports.debian.org/debian-ports/
and use this configuration:
glaubitz@nofan:~> cat /etc/schroot/chroot.d/sid-riscv64-sbuild
[sid-riscv64-sbuild]
description=Debian sid chroot for riscv64
type=directory
directory=/srv/sid-riscv64-sbuild
#groups=Debian,guest,d-i
#profile=dsa
#aliases=sid
groups=root,sbuild,glaubitz,buildd
root-groups=root,sbuild,glaubitz,buildd
#command-prefix=
#source-root-users=glaubitz,sbuild,buildd
#run-setup-scripts=true
#run-exec-scripts=true
glaubitz@nofan:~>
Then you can packages virtually natively using --arch=riscv64.