Browse Source

Build bitmain driver

Luke Dashjr 10 years ago
parent
commit
ce684284e9
3 changed files with 9 additions and 1 deletions
  1. 4 0
      Makefile.am
  2. 4 0
      configure.ac
  3. 1 1
      miner.h

+ 4 - 0
Makefile.am

@@ -261,6 +261,10 @@ if USE_BITFORCE
 bfgminer_SOURCES += driver-bitforce.c
 endif
 
+if USE_BITMAIN
+bfgminer_SOURCES += driver-bitmain.c driver-bitmain.h
+endif
+
 if USE_BIGPIC
 bfgminer_SOURCES += driver-bigpic.c driver-bigpic.h
 endif

+ 4 - 0
configure.ac

@@ -568,6 +568,10 @@ BFG_DRIVER(,BitForce,SHA256d,auto,[
 	have_udevrules=true
 ])
 
+BFG_DRIVER(,BitMain,SHA256d,no,[
+	has_asic=yes
+])
+
 BFG_DRIVER(,Icarus,SHA256d,auto,[
 	need_dynclock=yes
 	need_lowl_vcom=yes

+ 1 - 1
miner.h

@@ -512,7 +512,7 @@ struct cgpu_info {
 		struct ft232r_device_handle *device_ft232r;
 #endif
 	};
-#ifdef USE_AVALON
+#if defined(USE_AVALON) || defined(USE_BITMAIN)
 	struct work **works;
 	int work_array;
 	int queued;