From bb9d4ade0b677d7f84deec9c354e372edba6a2ec Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Thu, 20 Apr 2017 12:33:16 +0200 Subject: [PATCH] uname_linux: Build for 32bit MIPS too Since Go 1.8 32bit MIPS Big/Little Endian are supported assuming the target runs Linux and the kernel either emulates an FPU or can access the CPU one. This allows the node_collector to build for mips and mipsle opening up the possibility of running it on things like home routers (DD-|Open|ASUS-)Wrt firmware usually has the necessary bits in place. --- collector/uname_linux_int8.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collector/uname_linux_int8.go b/collector/uname_linux_int8.go index 1ba80697..e0a89596 100644 --- a/collector/uname_linux_int8.go +++ b/collector/uname_linux_int8.go @@ -11,7 +11,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build !nouname,linux,386 !nouname,linux,amd64 !nouname,linux,arm64 !nouname,linux,mips64 !nouname,linux,mips64le +// +build 386 amd64 arm64 mips64 mips64le mips mipsle +// +build linux +// +build !nouname package collector