Votre Nom 3 years ago
parent
commit
ef3f799069
2 changed files with 14 additions and 1 deletions
  1. 13 0
      build_gekko.sh
  2. 1 1
      make_environement.sh

+ 13 - 0
build_gekko.sh

@@ -10,10 +10,17 @@ git pull
 cd ..
 fi
 cd cgminer-gekko
+
 autoreconf -fi
 CFLAGS="-O2 -msse2 -static -fcommon" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-static --enable-gekko
 #--enable-bflsc  --enable-bitforce --enable-bitfury --enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio --enable-icarus  --enable-klondike  --enable-modminer
 make -j4
+if ! [[ -f cgminer.exe ]]
+then
+echo -e "\nerreur de compilation !!!!\n"
+exit 0
+fi
+
 strip cgminer.exe
 upx cgminer.exe
 mkdir /tmp/cgminer-gekko
@@ -34,6 +41,12 @@ cd ~
 cd cgminer-gekko
 CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-gekko  --enable-bflsc --enable-bitforce --enable-bitfury --enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio --enable-icarus  --enable-klondike  --enable-modminer
 make -j4
+if ! [[ -f cgminer.exe ]]
+then
+echo -e "\nerreur de compilation !!!! (all usb)\n"
+exit 0
+fi
+
 strip cgminer.exe
 upx cgminer.exe
 rm -r /tmp/cgminer-gekko

+ 1 - 1
make_environement.sh

@@ -10,7 +10,7 @@ sudo git reset --hard 64b283d64891348c92154b8d7eace6a9bff23411
 #sudo git pull
 export MXE_DIR=/opt/mxe
 export MXE_TARGETS='i686-w64-mingw32.static'
-sudo make -j 4 -C $MXE_DIR MXE_TARGETS="$MXE_TARGETS" curl pthreads pdcurses ncurses libusb1 jansson libevent libmicrohttpd curl
+sudo make -j 5 -C $MXE_DIR MXE_TARGETS="$MXE_TARGETS" curl pthreads pdcurses ncurses libusb1 jansson libevent libmicrohttpd curl
 echo 'export PATH=/opt/mxe/usr/bin:$PATH' >> ~/.profile
 echo 'export PKG_CONFIG_PATH=/opt/mxe/usr/i686-w64-mingw32.static/lib/pkgconfig/' >> ~/.profile
 export PATH=/opt/mxe/usr/bin:$PATH