runtime: remove overriding ARCH value by default for ppc64le

Currently, ARCH value is being set to powerpc64le by default.
powerpc64le is only right in context of rust and any operation
which might use this variable for a different purpose would fail on ppc64le.

Fixes: #6741

Signed-off-by: Amulyam24 <amulmek1@in.ibm.com>
This commit is contained in:
Amulyam24 2023-04-27 14:56:11 +05:30
parent 509bc8b6c8
commit defb643346
6 changed files with 22 additions and 3 deletions

View File

@ -33,6 +33,12 @@ ifeq ($(SECCOMP),yes)
override EXTRA_RUSTFEATURES += seccomp
endif
include ../../utils.mk
ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif
##VAR STANDARD_OCI_RUNTIME=yes|no define if agent enables standard oci runtime feature
STANDARD_OCI_RUNTIME := no
@ -45,8 +51,6 @@ ifneq ($(EXTRA_RUSTFEATURES),)
override EXTRA_RUSTFEATURES := --features "$(EXTRA_RUSTFEATURES)"
endif
include ../../utils.mk
TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET)
##VAR DESTDIR=<path> is a directory prepended to each installed target file

View File

@ -17,6 +17,10 @@ CONTAINERD_RUNTIME_NAME = io.containerd.kata.v2
include ../../utils.mk
ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif
ARCH_DIR = arch
ARCH_FILE_SUFFIX = -options.mk
ARCH_FILE = $(ARCH_DIR)/$(ARCH)$(ARCH_FILE_SUFFIX)

View File

@ -5,6 +5,10 @@
include ../../../utils.mk
ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif
.DEFAULT_GOAL := default
default: build

View File

@ -8,6 +8,10 @@ LIBC ?= gnu
include ../../../utils.mk
ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif
TARGET = runk
TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET)
AGENT_SOURCE_PATH = ../../agent

View File

@ -5,6 +5,10 @@
include ../../../utils.mk
ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
endif
.DEFAULT_GOAL := default
default: build

View File

@ -146,7 +146,6 @@ ifneq ($(LIBC),musl)
endif
ifeq ($(ARCH), ppc64le)
override ARCH = powerpc64le
override LIBC = gnu
$(warning "WARNING: powerpc64le-unknown-linux-musl target is unavailable")
endif