wareck 2 years ago
parent
commit
5e1ce45e02
4 changed files with 37 additions and 2 deletions
  1. 5 2
      build_bfgminer.sh
  2. 28 0
      build_erupter.sh
  3. 2 0
      build_gekko.sh
  4. 2 0
      build_lketc.sh

+ 5 - 2
build_bfgminer.sh

@@ -1,6 +1,7 @@
 #!/bin/bash
 #!/bin/bash
+echo "Bfgminer Win32 builder:"
+echo ""
 export folder=$(pwd)
 export folder=$(pwd)
-
 function libraries {
 function libraries {
 cd ~
 cd ~
 #pkg-config --libs libevent_pthreads PKG_CONFIG_PATH=/home/wareck/event
 #pkg-config --libs libevent_pthreads PKG_CONFIG_PATH=/home/wareck/event
@@ -22,8 +23,10 @@ cd bfgminer
 git submodule init
 git submodule init
 git submodule update
 git submodule update
 autoreconf -fi
 autoreconf -fi
-CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static libevent_CFLAGS="-I/home/wareck/event/include/" libevent_LIBS="-I/home/wareck/event/lib" --disable-shared --enable-scrypt --without-libevent
+#CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static libevent_CFLAGS="-I/home/wareck/event/include/" libevent_LIBS="-I/home/wareck/event/lib" --enable-scrypt --without-libevent --prefix=/home/wareck/zob
+CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --enable-scrypt --without-libevent --prefix=/home/wareck/zob
 make
 make
+make install
 strip bfgminer.exe
 strip bfgminer.exe
 upx bfgminer.exe
 upx bfgminer.exe
 }
 }

+ 28 - 0
build_erupter.sh

@@ -0,0 +1,28 @@
+#!/bin/bash
+echo "Cgminer BlockErupter Win32 builder:"
+echo ""
+export folder=$(pwd)
+cd ~
+if ! [ -d cgminer-blockerupter ]
+then
+git clone https://github.com/wareck/cgminer-gekko.git cgminer-blockerupter
+fi
+cd cgminer-blockerupter
+autoreconf -fi
+CFLAGS="-O2 -msse2 -fcommon " ./configure --host=i686-w64-mingw32.static --disable-shared --enable-blockerupter
+make
+strip cgminer.exe
+if [ -d /tmp/cgminer-blockerupter ]; then rm -r -f /tmp/cgminer-blockerupter ;fi
+mkdir /tmp/cgminer-blockerupter
+cp cgminer.exe /tmp/cgminer-blockerupter
+cp $folder/packages/blockerupter/manual.pdf /tmp/cgminer-blockerupter/
+cp $folder/packages/blockerupter/start.bat /tmp/cgminer-blockerupter/
+cp $folder/packages/blockerupter/zadig-2.7.exe /tmp/cgminer-blockerupter/
+cp $folder/packages/blockerupter/cgminer.conf /tmp/cgminer-blockerupter/
+cd /tmp/
+version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{print $1}' |cut -c1-7`
+7z a -tzip cgminer-blockerupter-$version.zip cgminer-blockerupter
+lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
+put cgminer-blockerupter-$version.zip -o /crypto/cgminer/cgminer-blockerupter-$version.zip
+EOF
+cp cgminer-blockerupter-$version.zip /home/$USER/Bureau

+ 2 - 0
build_gekko.sh

@@ -1,4 +1,6 @@
 #!/bin/bash
 #!/bin/bash
+echo "Cgminer Gekko Win32 builder:"
+echo ""
 export folder=$(pwd)
 export folder=$(pwd)
 cd ~
 cd ~
 if ! [ -d cgminer-gekko ]
 if ! [ -d cgminer-gekko ]

+ 2 - 0
build_lketc.sh

@@ -1,4 +1,6 @@
 #!/bin/bash
 #!/bin/bash
+echo "Cgminer Lketc Win32 builder:"
+echo ""
 export folder=$(pwd)
 export folder=$(pwd)
 cd ~
 cd ~
 git clone https://github.com/wareck/cgminer-lketc.git
 git clone https://github.com/wareck/cgminer-lketc.git