From 085d3bf337f8eb2c1c9229dc7cc1c90d90fb043b Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Sat, 22 Jan 2022 14:17:54 +0100 Subject: [PATCH] update ghdl.mdwn --- HDL_workflow/ghdl.mdwn | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/HDL_workflow/ghdl.mdwn b/HDL_workflow/ghdl.mdwn index f95f7aae6..9dd33fb1e 100644 --- a/HDL_workflow/ghdl.mdwn +++ b/HDL_workflow/ghdl.mdwn @@ -61,3 +61,45 @@ auto-preparation script here: Please adjust the install paths for ghdl. +### Installing ghdl, yosys, and ghdl-yosys-plugin in a Debian chroot + +This has been done on an AMD64 machine, the build failed on my Talos II. + + debootstrap bullseye /var/chroot/bullseye_ghdl + chroot /var/chroot/bullseye_ghdl +put some 'deb-src' URIs in your sources.list + apt-get update + apt-get upgrade + apt-get build-dep ghdl + apt-get install git + cd /root/ + git clone https://github.com/ghdl/ghdl + cd ghdl + ./configure + make + make install + cd .. + + apt-get build-dep yosys + git clone https://github.com/YosysHQ/yosys + cd yosys + make + make install + + git clone https://github.com/ghdl/ghdl-yosys-plugin + cd ghdl-yosys-plugin + make + make install + + [optional] apt-get install verilator + exit # exit the chroot + +Then install schroot and create a config file +nano /etc/schroot/chroot.d/bullseye_ghdl + +[bullseye_ghdl] +description=chroot +type=directory +directory=/var/chroot/bullseye_ghdl +users=your_username + -- 2.30.2