-e 's@^USBLIB@#USBLIB@' Makefile
sed -i -e 's@usb_reset@ftdi_usb_reset@g' ujprog.c
make
- install -m 4755 ujprog /usr/local/bin
+ install -v -m 4755 ujprog /usr/local/bin
cat > /etc/udev/rules.d/80-fpga-ulx3s.rules << EOF
# this is for usb-serial tty device
cd xc3sprog
git checkout 99e7de20aa8323712e5f70ff74d2079d5fb45bc7
+ sed -i -e 's@^if(NOT LIBUSB3380_FOUND)@if(NOT LIBUSB3380_FOUND)\n include(FindPkgConfig)@' Findlibusb3380.cmake
mkdir build; cd build
- cmake \
- -DLIBFTDI_FOUND=YES -DLIBFTDI_INCLUDE_DIR="/usr/include/libftdi1" \
+ cmake -DLIBFTDI_FOUND=YES -DLIBFTDI_INCLUDE_DIR="/usr/include/libftdi1" \
-DLIBFTDI_LIBRARIES="ftdi1" -DLIBUSB_FOUND=YES \
-DLIBUSB_INCLUDE_DIR="/usr/include" -DLIBUSB_LIBRARIES="usb" \
-DUSE_FTD2XX=OFF -DUSE_LIBUSB3380=OFF ..