mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-23 02:06:47 +00:00
Makefile: Set ARCH in GOPATH not set mode
In GOPATH not set mode got: make: go: Command not found Makefile:38: arch/-options.mk: No such file or directory make: go: Command not found Makefile:237: *** "ERROR: No hypervisors known for architecture (looked for: firecracker qemu)". Stop. The root cause is GOPATH not set mode is not set ARCH. Set it to fix the issue. Fixes: #1224 Signed-off-by: Hui Zhu <teawater@hyper.sh>
This commit is contained in:
parent
d3c63e66e3
commit
81c7a968ed
8
Makefile
8
Makefile
@ -23,10 +23,18 @@ ifeq ($(SKIP_GO_VERSION_CHECK),)
|
||||
include golang.mk
|
||||
endif
|
||||
|
||||
#Get ARCH.
|
||||
ifneq ($(GOPATH),)
|
||||
GOARCH=$(shell go env GOARCH)
|
||||
ifeq ($(ARCH),)
|
||||
ARCH = $(GOARCH)
|
||||
endif
|
||||
else
|
||||
ARCH = $(shell uname -m)
|
||||
ifeq ($(ARCH),x86_64)
|
||||
ARCH = amd64
|
||||
endif
|
||||
endif
|
||||
|
||||
ARCH_DIR = arch
|
||||
ARCH_FILE_SUFFIX = -options.mk
|
||||
|
Loading…
Reference in New Issue
Block a user