From af5b606bb31fff0e1cd2488f9b494eedb976da13 Mon Sep 17 00:00:00 2001 From: Andrey Klyachkin Date: Mon, 30 Nov 2020 22:58:03 +0100 Subject: [PATCH] add support for linux/ppc64le (#8432) --- Makefile | 8 ++++++++ README.md | 2 ++ scripts/release.sh | 2 ++ 3 files changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 92e94772576b9..284cbaf86d938 100644 --- a/Makefile +++ b/Makefile @@ -207,12 +207,14 @@ debs += telegraf_$(deb_version)_i386.deb debs += telegraf_$(deb_version)_mips.deb debs += telegraf_$(deb_version)_mipsel.deb debs += telegraf_$(deb_version)_s390x.deb +debs += telegraf_$(deb_version)_ppc64el.deb rpms += telegraf-$(rpm_version).aarch64.rpm rpms += telegraf-$(rpm_version).armel.rpm rpms += telegraf-$(rpm_version).armv6hl.rpm rpms += telegraf-$(rpm_version).i386.rpm rpms += telegraf-$(rpm_version).s390x.rpm +rpms += telegraf-$(rpm_version).ppc64le.rpm rpms += telegraf-$(rpm_version).x86_64.rpm tars += telegraf-$(tar_version)_darwin_amd64.tar.gz @@ -226,6 +228,7 @@ tars += telegraf-$(tar_version)_linux_i386.tar.gz tars += telegraf-$(tar_version)_linux_mips.tar.gz tars += telegraf-$(tar_version)_linux_mipsel.tar.gz tars += telegraf-$(tar_version)_linux_s390x.tar.gz +tars += telegraf-$(tar_version)_linux_ppc64le.tar.gz tars += telegraf-$(tar_version)_static_linux_amd64.tar.gz zips += telegraf-$(tar_version)_windows_amd64.zip @@ -239,6 +242,7 @@ package: $(dists) rpm_amd64 := amd64 rpm_386 := i386 rpm_s390x := s390x +rpm_ppc64le := ppc64le rpm_arm5 := armel rpm_arm6 := armv6hl rpm_arm647 := aarch64 @@ -275,6 +279,7 @@ $(rpms): deb_amd64 := amd64 deb_386 := i386 deb_s390x := s390x +deb_ppc64le := ppc64el deb_arm5 := armel deb_arm6 := armhf deb_arm647 := arm64 @@ -360,6 +365,9 @@ upload-nightly: %s390x.deb %s390x.rpm %linux_s390x.tar.gz: export GOOS := linux %s390x.deb %s390x.rpm %linux_s390x.tar.gz: export GOARCH := s390x +%ppc64el.deb %ppc64le.rpm %linux_ppc64le.tar.gz: export GOOS := linux +%ppc64el.deb %ppc64le.rpm %linux_ppc64le.tar.gz: export GOARCH := ppc64le + %freebsd_amd64.tar.gz: export GOOS := freebsd %freebsd_amd64.tar.gz: export GOARCH := amd64 diff --git a/README.md b/README.md index ca969132d5eb2..6093a253f479f 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,8 @@ These builds are generated from the master branch: - [telegraf-nightly_linux_s390x.tar.gz](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_linux_s390x.tar.gz) - [telegraf_nightly_s390x.deb](https://dl.influxdata.com/telegraf/nightlies/telegraf_nightly_s390x.deb) - [telegraf-nightly.s390x.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.s390x.rpm) +- [telegraf_nightly_ppc64el.deb](https://dl.influxdata.com/telegraf/nightlies/telegraf_nightly_ppc64el.deb) +- [telegraf-nightly.ppc64le.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.ppc64le.rpm) - [telegraf-nightly_windows_amd64.zip](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_windows_amd64.zip) - [telegraf-nightly_windows_i386.zip](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly_windows_i386.zip) - [telegraf-nightly.x86_64.rpm](https://dl.influxdata.com/telegraf/nightlies/telegraf-nightly.x86_64.rpm) diff --git a/scripts/release.sh b/scripts/release.sh index cf29b5c23a0e8..41cb0cd7fddac 100644 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -65,6 +65,8 @@ arch() { echo amd64;; *s390x.*) echo s390x;; + *ppc64le.*) + echo ppc64le;; *mipsel.*) echo mipsel;; *mips.*)