From: Luke Kenneth Casson Leighton Date: Fri, 12 Mar 2021 10:34:16 +0000 (+0000) Subject: comment and change build location X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a92c94b588d13209579b5954f113d54f91d99fba;p=dev-env-setup.git comment and change build location --- 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