Remove and add yosys and nextpnr-xilinx pkg dependencies
[dev-env-setup.git] / nextpnr-xilinx-install
index 12aca7fe1371c33626e0e14f98c52487ee7fb9bb..41d9f432962957402f2a2b5bdef7ca28a0a3a874 100755 (executable)
@@ -15,19 +15,14 @@ git clone https://github.com/f4pga/prjxray.git
 git clone https://github.com/SymbiFlow/prjxray-db.git
 git clone https://github.com/gatecat/nextpnr-xilinx.git
 
-## Steps to compile Yosys
-
-### Necessary software to install
-
-apt-get install -y build-essential make g++ cmake bison flex python3 \
- clang libreadline-dev gawk tcl-dev libffi-dev pkg-config zlib1g-dev \
- libboost-system-dev libboost-python-dev libboost-filesystem-dev
-
 ## Steps to compile prjxray
 
 ### Necessary software to install
 
-apt-get install -y python3-pip
+apt-get install -y build-essential make cmake python3 python3-setuptools \
+ python3-dev python3-numpy cython3 python3-pip
+
+pip3 install textx fasm
 
 ### Build prjxray
 
@@ -44,7 +39,7 @@ install -m 0755 tools/{bitread,bittool,frame_address_decoder,gen_part_base_yaml,
 cd ..
 cp -dpr utils /usr/local/nextpnr-xilinx
 sed -i -e '/^# Vivado /,$d' /usr/local/nextpnr-xilinx/utils/environment.sh
-pip3 install .
+python3 setup.py develop
 cd ..
 
 ## Steps to compile prjxray-db
@@ -62,7 +57,8 @@ cd ..
 ### Necessary software to install
 
 apt-get install -y libboost-thread-dev libboost-iostreams-dev \
- libboost-program-options-dev libeigen3-dev
+ libboost-program-options-dev libeigen3-dev libboost-python-dev \
+ libboost-filesystem-dev
 
 ### Build nextpnr-xilinx