build_bitaxe.sh 569 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. echo "Cgminer Bitaxe builder:"
  3. echo ""
  4. export folder=$(pwd)
  5. cd ~
  6. if ! [ -d cgminer-bitaxe ]
  7. then
  8. git clone https://github.com/wareck/cgminer-gekko.git cgminer-bitaxe
  9. fi
  10. cd cgminer-bitaxe
  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/\"gekko \"/\"Bitaxe \"/g" cgminer.c
  16. echo "Done"
  17. echo "Compilation"
  18. autoreconf -fi
  19. ./configure --disable-shared --enable-gekko
  20. make -j4