mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 07:03:58 -05:00
* updating the goethereum dependency * fixing dependencies * reverting workspace * more fixes, work in progress * trying with upgraded geth version * fixing deprecated functions except for the time related ones on eth1 distance due to time issues * fixing time issues * gaz * fixing test and upgrading some dependencies and reverting others * Disable cgo in hid, delete old vendored usb library * changelog * rolling back dependencies * fixing go mod tidy * Geth v1.13.6 * fix tests * Add ping interval, set to 500ms for tests. This didnt work * Update to v1.14.8 * Spread it out to different bootnodes * Fix it * Remove Memsize * Update all out of date dependencies * Fix geth body change * Fix Test * Fix Build * Fix Tests * Fix Tests Again * Fix Tests Again * Fix Tests * Fix Test * Copy USB Package for HID * Push it up * Finally fix all tests with felix's changes * updating geth dependency * Update go-ethereum to v1.14.11 * fixing import * reverting blob change * fixing Implicit memory aliasing in for loop. * WIP changes * wip getting a little further on e2e runs * getting a little further * getting a little further * setting everything to capella * more partial fixes * more fixes but still WIP * fixing access list transactions" * some cleanup * making configs dynamic * reverting time * skip lower bound in builder * updating to geth v1.14.12 * fixing verify blob to pointer * go mod tidy * fixing linting * missed removing another terminal difficulty item * another missed update * updating more dependencies to fix cicd * fixing holiman dependency update * downgrading geth to 1.14.11 due to p2p loop issue * reverting builder middleware caused by downgrade * fixing more rollback issues * upgrading back to 1.14.12 after discussing with preston * mod tidy * gofmt * partial review feedback * trying to start e2e from bellatrix instead * reverting some changes --------- Co-authored-by: Preston Van Loon <preston@pvl.dev> Co-authored-by: nisdas <nishdas93@gmail.com>
78 lines
2.5 KiB
Diff
78 lines
2.5 KiB
Diff
diff --git a/BUILD.bazel b/BUILD.bazel
|
|
index 9be80a1..0e78457 100755
|
|
--- a/BUILD.bazel
|
|
+++ b/BUILD.bazel
|
|
@@ -8,58 +8,7 @@ go_library(
|
|
srcs = [
|
|
"hid.go",
|
|
"hid_disabled.go",
|
|
- "hid_enabled.go",
|
|
- "wchar.go",
|
|
],
|
|
- cgo = True,
|
|
- clinkopts = select({
|
|
- "@io_bazel_rules_go//go/platform:darwin": [
|
|
- "-framework CoreFoundation -framework IOKit -lobjc",
|
|
- ],
|
|
- "@io_bazel_rules_go//go/platform:freebsd": [
|
|
- "-lusb",
|
|
- ],
|
|
- "@io_bazel_rules_go//go/platform:linux": [
|
|
- "-lrt",
|
|
- ],
|
|
- "@io_bazel_rules_go//go/platform:windows": [
|
|
- "-lsetupapi",
|
|
- ],
|
|
- "//conditions:default": [],
|
|
- }),
|
|
- copts = select({
|
|
- "@io_bazel_rules_go//go/platform:android": [
|
|
- "-DDEFAULT_VISIBILITY=",
|
|
- "-DPOLL_NFDS_TYPE=int",
|
|
- "-Ihidapi/hidapi",
|
|
- "-Ilibusb/libusb -DOS_LINUX -D_GNU_SOURCE -DHAVE_SYS_TIME_H -DHAVE_CLOCK_GETTIME",
|
|
- ],
|
|
- "@io_bazel_rules_go//go/platform:darwin": [
|
|
- "-DDEFAULT_VISIBILITY=",
|
|
- "-DOS_DARWIN -DHAVE_SYS_TIME_H",
|
|
- "-DPOLL_NFDS_TYPE=int",
|
|
- "-Ihidapi/hidapi",
|
|
- ],
|
|
- "@io_bazel_rules_go//go/platform:freebsd": [
|
|
- "-DDEFAULT_VISIBILITY=",
|
|
- "-DOS_FREEBSD",
|
|
- "-DPOLL_NFDS_TYPE=int",
|
|
- "-Ihidapi/hidapi",
|
|
- ],
|
|
- "@io_bazel_rules_go//go/platform:linux": [
|
|
- "-DDEFAULT_VISIBILITY=",
|
|
- "-DPOLL_NFDS_TYPE=int",
|
|
- "-Ihidapi/hidapi",
|
|
- "-Ilibusb/libusb -DOS_LINUX -D_GNU_SOURCE -DHAVE_SYS_TIME_H -DHAVE_CLOCK_GETTIME",
|
|
- ],
|
|
- "@io_bazel_rules_go//go/platform:windows": [
|
|
- "-DDEFAULT_VISIBILITY=",
|
|
- "-DOS_WINDOWS",
|
|
- "-DPOLL_NFDS_TYPE=int",
|
|
- "-Ihidapi/hidapi",
|
|
- ],
|
|
- "//conditions:default": [],
|
|
- }),
|
|
importpath = "github.com/karalabe/hid",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
diff --git a/hid_disabled.go b/hid_disabled.go
|
|
index fa2c504..0091853 100644
|
|
--- a/hid_disabled.go
|
|
+++ b/hid_disabled.go
|
|
@@ -4,9 +4,6 @@
|
|
// This file is released under the 3-clause BSD license. Note however that Linux
|
|
// support depends on libusb, released under GNU LGPL 2.1 or later.
|
|
|
|
-//go:build (!freebsd && !linux && !darwin && !windows) || ios || !cgo
|
|
-// +build !freebsd,!linux,!darwin,!windows ios !cgo
|
|
-
|
|
package hid
|
|
|
|
// Supported returns whether this platform is supported by the HID library or not.
|