-
Notifications
You must be signed in to change notification settings - Fork 1
Setup Debian riscv32 sbuild
vimer edited this page Jul 5, 2023
·
6 revisions
Assuming the build environment is on an amd64 host, you need to install the components that support riscv32 in advance:
a. mmdebstrap
b. arch-test
c. dpkg
sudo sbuild-createchroot --debootstrap=mmdebstrap --arch=riscv32 \
--include=debian-ports-archive-keyring,ca-certificates,apt,apt-transport-https,init-system-helpers,debconf,usrmerge \
--make-sbuild-tarball=/srv/sid-riscv32-sbuild.tgz \
sid /tmp/chroots/sid-riscv32-sbuild/ \
http://vimer.f3322.net:63017/yubos-repo/
After you created riscv32 chroot then you can replace riscv32 chroot tar with mmdebstrap directly:
sudo mmdebstrap --arch=riscv32 \
--variant=buildd --include=ca-certificates,apt-transport-https,init-system-helpers,usrmerge,apt,systemd,udev,debian-ports-archive-keyring \
sid sid-riscv32-yubos-rootfs.tar.xz \
"deb http://vimer.f3322.net:63017/yubos-repo/ sid main" \
"deb http://vimer.f3322.net:63017/yubos-base-all/ sid main"
Explanation: The yubos-repo/ is riscv32 packages repo, yubos-base-all/ is all packages repo.