diff options
author | Paul Gier <pgier@redhat.com> | 2018-12-13 09:07:22 -0600 |
---|---|---|
committer | Ben Kochie <superq@gmail.com> | 2018-12-13 16:07:22 +0100 |
commit | 03bb276deb98bf2f76bf6019d2591a4b6e619a20 (patch) | |
tree | c54dcd87ebd80b20bb8a23671d0c6ff7bda6e2e1 /Makefile.common | |
parent | 614b815e0032185031500c03a79944e17064c3e6 (diff) | |
download | prometheus_node_collector-03bb276deb98bf2f76bf6019d2591a4b6e619a20.tar.bz2 prometheus_node_collector-03bb276deb98bf2f76bf6019d2591a4b6e619a20.tar.xz prometheus_node_collector-03bb276deb98bf2f76bf6019d2591a4b6e619a20.zip |
Makefile.common: fix promu download path for arm32 (#1196)
Signed-off-by: Paul Gier <pgier@redhat.com>
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common index dabf0e5..f26a788 100644 --- a/Makefile.common +++ b/Makefile.common | |||
@@ -62,8 +62,14 @@ PROMU := $(FIRST_GOPATH)/bin/promu | |||
62 | STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck | 62 | STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck |
63 | pkgs = ./... | 63 | pkgs = ./... |
64 | 64 | ||
65 | GO_VERSION ?= $(shell $(GO) version) | 65 | GOHOSTOS ?= $(shell $(GO) env GOHOSTOS) |
66 | GO_BUILD_PLATFORM ?= $(subst /,-,$(lastword $(GO_VERSION))) | 66 | GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH) |
67 | ifeq (arm, $(GOHOSTARCH)) | ||
68 | GOHOSTARM ?= $(shell GOARM= $(GO) env GOARM) | ||
69 | GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)v$(GOHOSTARM) | ||
70 | else | ||
71 | GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH) | ||
72 | endif | ||
67 | 73 | ||
68 | PROMU_VERSION ?= 0.2.0 | 74 | PROMU_VERSION ?= 0.2.0 |
69 | PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz | 75 | PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz |