Add basic defines for building for bitfury devices.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
diff --git a/configure.ac b/configure.ac
index 0b6c9ba..24e6872 100644
--- a/configure.ac
+++ b/configure.ac
@@ -242,6 +242,17 @@ if test "x$bitforce" = xyes; then
fi
AM_CONDITIONAL([HAS_BITFORCE], [test x$bitforce = xyes])
+bitfury="no"
+
+AC_ARG_ENABLE([bitfury],
+ [AC_HELP_STRING([--enable-bitfury],[Compile support for BitFury ASICs (default disabled)])],
+ [bitfury=$enableval]
+ )
+if test "x$bitfury" = xyes; then
+ AC_DEFINE([USE_BITFURY], [1], [Defined to 1 if BitForce support is wanted])
+fi
+AM_CONDITIONAL([HAS_BITFURY], [test x$bitfury = xyes])
+
icarus="no"
AC_ARG_ENABLE([icarus],
@@ -310,7 +321,7 @@ else
])
fi
-if test x$avalon$bitforce$modminer$bflsc$icarus != xnonononono; then
+if test x$avalon$bitforce$bitfury$modminer$bflsc$icarus != xnononononono; then
want_usbutils=true
else
want_usbutils=false
@@ -482,14 +493,14 @@ if test "x$opencl" != xno; then
else
echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
- if test "x$bitforce$avalon$icarus$ztex$modminer$bflsc" = xnononononono; then
+ if test "x$avalon$bitforce$bitfury$icarus$ztex$modminer$bflsc" = xnonononononono; then
AC_MSG_ERROR([No mining configured in])
fi
echo " scrypt...............: Disabled (needs OpenCL)"
fi
else
echo " OpenCL...............: Detection overrided. GPU mining support DISABLED"
- if test "x$bitforce$icarus$avalon$ztex$modminer$bflsc" = xnononononono; then
+ if test "x$avalon$bitforce$bitfury$icarus$ztex$modminer$bflsc" = xnonononononono; then
AC_MSG_ERROR([No mining configured in])
fi
echo " scrypt...............: Disabled (needs OpenCL)"
@@ -524,6 +535,12 @@ else
echo " BitForce.FPGAs.......: Disabled"
fi
+if test "x$bitfury" = xyes; then
+ echo " BitFury.ASICs........: Enabled"
+else
+ echo " BitFury.ASICs........: Disabled"
+fi
+
if test "x$icarus" = xyes; then
echo " Icarus.FPGAs.........: Enabled"
else