|
|
@@ -166,6 +166,9 @@ bool opt_worktime;
|
|
|
#ifdef USE_AVALON
|
|
|
char *opt_avalon_options = NULL;
|
|
|
#endif
|
|
|
+#ifdef USE_KLONDIKE
|
|
|
+char *opt_klondike_options = NULL;
|
|
|
+#endif
|
|
|
#ifdef USE_USBUTILS
|
|
|
char *opt_usb_select = NULL;
|
|
|
int opt_usbdump = -1;
|
|
|
@@ -1026,6 +1029,15 @@ static char *set_avalon_options(const char *arg)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+#ifdef USE_KLONDIKE
|
|
|
+static char *set_klondike_options(const char *arg)
|
|
|
+{
|
|
|
+ opt_set_charp(arg, &opt_klondike_options);
|
|
|
+
|
|
|
+ return NULL;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef USE_USBUTILS
|
|
|
static char *set_usb_select(const char *arg)
|
|
|
{
|
|
|
@@ -1231,6 +1243,11 @@ static struct opt_table opt_config_table[] = {
|
|
|
OPT_WITH_ARG("--bitburner-voltage",
|
|
|
opt_set_intval, NULL, &opt_bitburner_core_voltage,
|
|
|
"Set BitBurner core voltage, in millivolts"),
|
|
|
+#endif
|
|
|
+#ifdef USE_KLONDIKE
|
|
|
+ OPT_WITH_ARG("--klondike-options",
|
|
|
+ set_klondike_options, NULL, NULL,
|
|
|
+ "Set klondike options clock:temp1:temp2:fan"),
|
|
|
#endif
|
|
|
OPT_WITHOUT_ARG("--load-balance",
|
|
|
set_loadbalance, &pool_strategy,
|
|
|
@@ -1572,6 +1589,9 @@ static char *opt_verusage_and_exit(const char *extra)
|
|
|
#ifdef USE_ICARUS
|
|
|
"icarus "
|
|
|
#endif
|
|
|
+#ifdef USE_KLONDIKE
|
|
|
+ "klondike "
|
|
|
+#endif
|
|
|
#ifdef USE_MODMINER
|
|
|
"modminer "
|
|
|
#endif
|
|
|
@@ -4430,6 +4450,10 @@ void write_config(FILE *fcfg)
|
|
|
fprintf(fcfg, ",\n\"icarus-options\" : \"%s\"", json_escape(opt_icarus_options));
|
|
|
if (opt_icarus_timing)
|
|
|
fprintf(fcfg, ",\n\"icarus-timing\" : \"%s\"", json_escape(opt_icarus_timing));
|
|
|
+#ifdef USE_KLONDIKE
|
|
|
+ if (opt_klondike_options)
|
|
|
+ fprintf(fcfg, ",\n\"klondike-options\" : \"%s\"", json_escape(opt_icarus_options));
|
|
|
+#endif
|
|
|
#ifdef USE_USBUTILS
|
|
|
if (opt_usb_select)
|
|
|
fprintf(fcfg, ",\n\"usb\" : \"%s\"", json_escape(opt_usb_select));
|