Votre Nom 3 years ago
parent
commit
89cfdf3166
3 changed files with 17 additions and 35 deletions
  1. 3 28
      build_bfgminer.sh
  2. 10 1
      build_gekko.sh
  3. 4 6
      make_environement.sh

+ 3 - 28
build_bfgminer.sh

@@ -1,33 +1,8 @@
 #!/bin/bash
-export folder=$(pwd)
-sudo apt-get install upx -y
-sudo cp packages/mingw-bundledlls /usr/local/bin
-cd ~
-wget -c https://github.com/troydhanson/uthash/archive/master.zip -O uthash-dev.zip
-unzip uthash-dev.zip
-cd uthash-master
-sudo cp src/* /opt/mxe/usr/i686-w64-mingw32.shared/include/
 cd ~
 git clone https://github.com/wareck/bfgminer.git
 cd bfgminer
-#sudo sed -i -e "s/FutureBit,scrypt,auto/FutureBit,scrypt,no/g" configure.ac
-./autogen.sh
-CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.shared --enable-scrypt --enable-futurebit --disable-other-drivers
+autoreconf -fi
+CFLAGS="-O2 -msse2" ./configure --host=i686-w64-mingw32.static --disable-shared --enable-scrypt
 make
-mkdir ~/out_tmp
-cp *.exe ~/out_tmp
-cd ~/out_tmp
-mingw-bundledlls --copy --upx bfgminer.exe
-mkdir /tmp/bfgminer
-cp ~/out_tmp/* /tmp/bfgminer
-cp $folder/packages/bfgminer/* /tmp/bfgminer/
-cd /tmp
-version=`git ls-remote -h https://github.com/wareck/bfgminer.git | awk '{print $1}' |cut -c1-7 | head -3 | tail -1`
-7z a bfgminer-wrk-$version-win64.7z bfgminer
-lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
-put bfgminer-wrk-$version-win64.7z -o /crypto/bfgminer-wrk-$version-win64.7z
-EOF
-cd ~
-rm -r out_tmp
-rm -r uthash-master
-
+strip bfgminer.exe

+ 10 - 1
build_gekko.sh

@@ -1,10 +1,18 @@
 #!/bin/bash
 export folder=$(pwd)
 cd ~
+if ! [ -d cgminer-gekko ]
+then
 git clone https://github.com/wareck/cgminer-gekko.git
+else
+cd cgminer-gekko
+git pull
+cd ..
+fi
 cd cgminer-gekko
 autoreconf -fi
-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
+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
 strip cgminer.exe
 mkdir /tmp/cgminer-gekko
@@ -18,3 +26,4 @@ version=`git ls-remote -h https://github.com/wareck/cgminer-gekko.git | awk '{pr
 lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
 put cgminer-gekko-$version.7z -o /crypto/cgminer-gekko-$version.7z
 EOF
+cp cgminer-gekko-$version.7z /home/$USER/Bureau

+ 4 - 6
make_environement.sh

@@ -4,18 +4,16 @@ sudo apt-get upgrade -y
 sudo apt-get install -y lzip build-essential git autoconf autopoint bison flex gperf libtool libtool-bin python ruby scons unzip intltool p7zip-full libgtk2.0-dev libssl-dev -y
 sudo apt-get install -y lftp zip pv pixz
 cd /opt
-sudo git clone https://github.com/mxe/mxe.git
+sudo git clone -n https://github.com/mxe/mxe.git
+cd mxe
+sudo git reset --hard 64b283d64891348c92154b8d7eace6a9bff23411
 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
-export MXE_TARGETS='i686-w64-mingw32.shared'
-sudo make -j 4 -C $MXE_DIR MXE_TARGETS="$MXE_TARGETS" curl pthreads pdcurses ncurses libusb1 jansson libevent libmicrohttpd
+sudo make -j 4 -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
-echo 'export PKG_CONFIG_PATH=/opt/mxe/usr/i686-w64-mingw32.shared/lib/pkgconfig/' >> ~/.profile
 export PATH=/opt/mxe/usr/bin:$PATH
 export PKG_CONFIG_PATH=/opt/mxe/usr/i686-w64-mingw32.static/lib/pkgconfig/
-export PKG_CONFIG_PATH=/opt/mxe/usr/i686-w64-mingw32.shared/lib/pkgconfig/
 cd ~
 echo "environement ok"