Browse Source

Compile usbutils into avalon driver.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
9650bfd6a3
  1. 5
      cgminer.c
  2. 8
      configure.ac
  3. 1
      driver-avalon.c

5
cgminer.c

@ -60,9 +60,6 @@ @@ -60,9 +60,6 @@
#if defined(USE_BITFORCE) || defined(USE_ICARUS) || defined(USE_AVALON) || defined(USE_MODMINER)
# define USE_FPGA
#if defined(USE_AVALON)
# define USE_FPGA_SERIAL
#endif
#elif defined(USE_ZTEX)
# define USE_FPGA
#endif
@ -1089,7 +1086,7 @@ static struct opt_table opt_config_table[] = { @@ -1089,7 +1086,7 @@ static struct opt_table opt_config_table[] = {
#ifdef USE_FPGA_SERIAL
OPT_WITH_ARG("--scan-serial|-S",
add_serial, NULL, NULL,
"Serial port to probe for Avalon Mining device"),
"Serial port to probe for Serial FPGA Mining device"),
#endif
OPT_WITH_ARG("--scan-time|-s",
set_int_0_to_9999, opt_show_intval, &opt_scantime,

8
configure.ac

@ -303,14 +303,14 @@ else @@ -303,14 +303,14 @@ else
])
fi
AM_CONDITIONAL([NEED_FPGAUTILS], [test x$avalon$modminer$ztex != xnonono])
AM_CONDITIONAL([NEED_USBUTILS_C], [test x$bitforce$modminer$bflsc$icarus != xnononono])
AM_CONDITIONAL([NEED_FPGAUTILS], [test x$modminer$ztex != xnono])
AM_CONDITIONAL([NEED_USBUTILS_C], [test x$avalon$bitforce$modminer$bflsc$icarus != xnonononono])
AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
AM_CONDITIONAL([WANT_JANSSON], [test x$request_jansson = xtrue])
AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
if test "x$bitforce$modminer$bflsc$icarus" != xnononono; then
if test "x$avalon$bitforce$modminer$bflsc$icarus" != xnonononono; then
AC_DEFINE([USE_USBUTILS], [1], [Defined to 1 if usbutils support required])
fi
@ -333,7 +333,7 @@ if test "x$have_cgminer_sdk" = "xtrue"; then @@ -333,7 +333,7 @@ if test "x$have_cgminer_sdk" = "xtrue"; then
PKG_CONFIG_PATH="$CGMINER_SDK/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
fi
if test "x$ztex$modminer$bitforce$bflsc$icarus" != xnonononono; then
if test "x$avalon$ztex$modminer$bitforce$bflsc$icarus" != xnononononono; then
case $target in
*-*-freebsd*)
LIBUSB_LIBS="-lusb"

1
driver-avalon.c

@ -35,6 +35,7 @@ @@ -35,6 +35,7 @@
#include "elist.h"
#include "miner.h"
#include "usbutils.h"
#include "fpgautils.h"
#include "driver-avalon.h"
#include "hexdump.c"

Loading…
Cancel
Save