cd dfu-util
git checkout v0.11
./autogen.sh
- ./configure --prefix=/usr/local/fpga-boot-load-prog
+ ./configure
make -j$(nproc)
make install
cd ..
cd openFPGALoader
git checkout v0.8.0
mkdir build; cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr/local/fpga-boot-load-prog ..
+ cmake .
make -j$(nproc)
make install
cd ..
-e 's@^USBLIB@#USBLIB@' Makefile
sed -i -e 's@usb_reset@ftdi_usb_reset@g' ujprog.c
make
- install -m 4755 ujprog /usr/local/fpga-boot-load-prog/bin
+ install -m 4755 ujprog /usr/local/bin
cat > /etc/udev/rules.d/80-fpga-ulx3s.rules << EOF
# this is for usb-serial tty device
cd fujprog
git checkout v4.8
mkdir build; cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr/local/fpga-boot-load-prog ..
+ cmake ..
make -j$(nproc)
make install
cd ../..
cd xc3sprog
git checkout 99e7de20aa8323712e5f70ff74d2079d5fb45bc7
mkdir build; cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr/local/fpga-boot-load-prog \
+ cmake \
-DLIBFTDI_FOUND=YES -DLIBFTDI_INCLUDE_DIR="/usr/include/libftdi1" \
-DLIBFTDI_LIBRARIES="ftdi1" -DLIBUSB_FOUND=YES \
-DLIBUSB_INCLUDE_DIR="/usr/include" -DLIBUSB_LIBRARIES="usb" \
cd ecpprog
git checkout 7212b56a9d2fc6de534e06636a1c6d8b0c6f80ab
cd ecpprog
- make PREFIX=/usr/local/fpga-boot-load-prog
- make PREFIX=/usr/local/fpga-boot-load-prog install
+ make
+ make install
cd ../..
# Install udev rules for boards