From a92c94b588d13209579b5954f113d54f91d99fba Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 12 Mar 2021 10:34:16 +0000 Subject: [PATCH] comment and change build location --- nextpnr-ecp5-install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nextpnr-ecp5-install b/nextpnr-ecp5-install index 8d8eddc..4d9220b 100755 --- a/nextpnr-ecp5-install +++ b/nextpnr-ecp5-install @@ -1,6 +1,6 @@ #!/bin/bash if [ "$EUID" -ne 0 ] - then echo "Please run as root" + then echo "Please run as root using 'sudo bash'" exit fi @@ -10,9 +10,10 @@ apt-get install -y python3 python3-dev clang cmake libboost-dev \ libboost-program-options-dev libboost-iostreams-dev \ openocd libeigen3-dev -cd /home -mkdir nextpnr -cd nextpnr +# change into $SUDO_USER home directory +cd /home/$SUDO_USER +mkdir -p src/nextpnr +cd src/nextpnr git clone --recursive https://github.com/YosysHQ/prjtrellis git clone --recursive https://github.com/YosysHQ/nextpnr @@ -31,3 +32,4 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 \ make make install +# TODO chown post-amble -- 2.30.2