Important correction for xc3sprog build instructions
authorR Veera Kumar <vklr@vkten.in>
Fri, 8 Apr 2022 09:39:14 +0000 (15:09 +0530)
committerR Veera Kumar <vklr@vkten.in>
Fri, 8 Apr 2022 09:39:14 +0000 (15:09 +0530)
HDL_workflow/fpga-boot-loaders-progs.mdwn

index a7070ce866bb83cee74dfa10cde6d23cf0d4a0f3..94ad8c1c5571cccf939fadb2cbd06501cb0805dc 100644 (file)
@@ -89,7 +89,7 @@ auto-preparation script here:
      -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
@@ -119,9 +119,9 @@ auto-preparation script here:
 
     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 ..