From f82b26df476fb1301d76d64675bf8fd38319dd53 Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Fri, 12 Mar 2021 11:32:12 +0530 Subject: [PATCH] Add new install script for nextpnr with ecp5 support --- nextpnr-ecp5-install | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 nextpnr-ecp5-install diff --git a/nextpnr-ecp5-install b/nextpnr-ecp5-install new file mode 100755 index 0000000..ce99db7 --- /dev/null +++ b/nextpnr-ecp5-install @@ -0,0 +1,36 @@ +#!/bin/bash +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + +mount -t proc proc /proc +mount -t sysfs sysfs /sys +mount -t devpts -o rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 devpts /dev/pts + +apt-get update -y +apt-get install -y python3 python3-dev clang cmake libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-iostreams-dev openocd libeigen3-dev + +cd /home +mkdir nextpnr +cd nextpnr + +git clone --recursive https://github.com/YosysHQ/prjtrellis +git clone --recursive https://github.com/YosysHQ/nextpnr + +cd prjtrellis +cd libtrellis +cmake -DCMAKE_INSTALL_PREFIX=/usr/local/libtrellis . +make +make install +cd ../.. + +cd nextpnr +cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local/libtrellis . +make +make install + +umount /dev/pts +umount /sys +umount /proc + -- 2.30.2