build: remove obsolete cross build container
The cross build container is not used anymore since the conversion
to github actions. Now the obsolete scripts and makefiles are
cleaned up to remove some confusing leftovers from the
cross container.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 738a300827)
This commit is contained in:
1 parent
585f295655
commit
2f07c19aa8
13 files changed
+5
-538
No files matched your search
@@ -40,18 +40,6 @@ endif
|
||||
|
||||
ALL_PLATFORMS ?= darwin_amd64 windows_amd64 linux_amd64 linux_arm64
|
||||
|
||||
ifeq ($(PLATFORM),linux_amd64)
|
||||
CROSS_TRIPLE = x86_64-linux-gnu
|
||||
endif
|
||||
ifeq ($(PLATFORM),linux_arm64)
|
||||
CROSS_TRIPLE = aarch64-linux-gnu
|
||||
endif
|
||||
ifeq ($(PLATFORM),darwin_amd64)
|
||||
CROSS_TRIPLE=x86_64-apple-darwin15
|
||||
endif
|
||||
ifeq ($(PLATFORM),windows_amd64)
|
||||
CROSS_TRIPLE=x86_64-w64-mingw32
|
||||
endif
|
||||
export GOARM
|
||||
|
||||
# force the build of a linux binary when running on MacOS
|
||||
@@ -59,20 +47,6 @@ GOHOSTOS=linux
|
||||
GOHOSTARCH := $(shell go env GOHOSTARCH)
|
||||
HOST_PLATFORM := $(GOHOSTOS)_$(GOHOSTARCH)
|
||||
|
||||
ifneq ($(PLATFORM),$(HOST_PLATFORM))
|
||||
ifeq (,$(shell go env CC))
|
||||
CC := $(CROSS_TRIPLE)-gcc
|
||||
else
|
||||
CC := $(shell go env CC)
|
||||
endif
|
||||
ifeq (,$(shell go env CXX))
|
||||
CXX := $(CROSS_TRIPLE)-gcc
|
||||
else
|
||||
CXX := $(shell go env CXX)
|
||||
endif
|
||||
export CC CXX
|
||||
endif
|
||||
|
||||
# REAL_HOST_PLATFORM is used to determine the correct url to download the various binary tools from and it does not use
|
||||
# HOST_PLATFORM which is used to build the program.
|
||||
REAL_HOST_PLATFORM=$(shell go env GOHOSTOS)_$(GOHOSTARCH)
|
||||
|
||||
Reference in new issue
Block a user