From 43086315371f1939f92069e20a96b21506a348cf Mon Sep 17 00:00:00 2001 From: chendexi Date: Thu, 11 Jan 2024 15:33:26 +0800 Subject: [PATCH] Remove ppc64le and s390x support for kolet --- build.sh | 1 - mantle/Makefile | 14 +++++++------- mantle/build | 3 ++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index ca7c8a67..72a2253a 100755 --- a/build.sh +++ b/build.sh @@ -110,7 +110,6 @@ configure_user(){ # Allow the builder user to run rootless podman # Referenced at: https://github.com/containers/podman/issues/4056#issuecomment-1245715492 # Lifted from: https://github.com/containers/podman/blob/6e382d9ec2e6eb79a72537544341e496368b6c63/contrib/podmanimage/stable/Containerfile#L25-L26 - echo -e "builder:1:999\nbuilder:1001:64535" > /etc/subuid echo -e "builder:1:999\nbuilder:1001:64535" > /etc/subgid } diff --git a/mantle/Makefile b/mantle/Makefile index b7edb6a3..bd9fe776 100644 --- a/mantle/Makefile +++ b/mantle/Makefile @@ -2,14 +2,14 @@ PREFIX ?= /usr DESTDIR ?= MANTLE_BINARIES := ore kola plume -KOLET_ARCHES := aarch64 ppc64le s390x x86_64 +#KOLET_ARCHES := aarch64 ppc64le s390x x86_64 +KOLET_ARCHES := aarch64 x86_64 .PHONY: build -build: $(MANTLE_BINARIES) #kolet +build: $(MANTLE_BINARIES) kolet -.PHONY: $(MANTLE_BINARIES) #kolet -#$(MANTLE_BINARIES) kolet: -$(MANTLE_BINARIES): +.PHONY: $(MANTLE_BINARIES) kolet +$(MANTLE_BINARIES) kolet: ./build cmd/$(basename $@) .PHONY: schema-update @@ -19,7 +19,7 @@ schema-update: .PHONY: install install: cd bin && install -D -t $(DESTDIR)$(PREFIX)/bin $(MANTLE_BINARIES) -# for arch in $(KOLET_ARCHES); do \ + for arch in $(KOLET_ARCHES); do \ install -D -m 0755 -t $(DESTDIR)$(PREFIX)/lib/kola/$${arch} bin/$${arch}/kolet; \ done @@ -38,4 +38,4 @@ vendor: .PHONY: clean clean: - @rm -rfv bin + @rm -rfv bin \ No newline at end of file diff --git a/mantle/build b/mantle/build index 4bd43f8c..82509994 100755 --- a/mantle/build +++ b/mantle/build @@ -11,7 +11,8 @@ if [[ $# -eq 0 ]]; then fi declare -A BASEARCH_TO_GOARCH=([s390x]=s390x [x86_64]=amd64 [aarch64]=arm64 [ppc64le]=ppc64le) -KOLET_ARCHES="${KOLET_ARCHES:-s390x x86_64 aarch64 ppc64le}" +#KOLET_ARCHES="${KOLET_ARCHES:-s390x x86_64 aarch64 ppc64le}" +KOLET_ARCHES="${KOLET_ARCHES:-x86_64 aarch64}" race= if [ -n "${ENABLE_GO_RACE_DETECTOR:-}" ] && [[ ! "$(uname -m)" =~ "s390" ]]; then -- Gitee