formatting, remove proc/sys/dev mount in case its run as non-chroot
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 12 Mar 2021 10:27:21 +0000 (10:27 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 12 Mar 2021 10:27:21 +0000 (10:27 +0000)
nextpnr-ecp5-install

index ce99db79fdfe06622fb9379ce6aff497429ccbfa..8d8eddcea121c48d599ee72ba76fac214ce5fa2b 100755 (executable)
@@ -4,12 +4,11 @@ if [ "$EUID" -ne 0 ]
   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
+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
@@ -26,11 +25,9 @@ make install
 cd ../..
 
 cd nextpnr
-cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nextpnr-ecp5 -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local/libtrellis .
+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
-