build_prisma.sh 615 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. echo "Cgminer BlockErupter Win32 builder:"
  3. echo ""
  4. export folder=$(pwd)
  5. cd ~
  6. if ! [ -d cgminer-blockerupter ]
  7. then
  8. git clone https://github.com/wareck/cgminer-gekko.git cgminer-blockerupter
  9. fi
  10. cd cgminer-blockerupter
  11. echo "Patch:"
  12. sed -i -e "s/BlockErupter BROKEN DRIVER/BlockErupter Prisma/g" configure.ac
  13. sed -i -e "s/int opt_bet_clk = 0;/int opt_bet_clk = 27;/g" cgminer.c
  14. sed -i -e "s/.name = \"BET\"/.name = \"PRS\"/g" usbutils.c
  15. sed -i -e "s/\"Blockerupter \"/\"Prisma Cube \"/g" cgminer.c
  16. echo "Done"
  17. echo "Compilation"
  18. autoreconf -fi
  19. ./configure --disable-shared --enable-blockerupter
  20. make -j4