mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 04:42:16 +00:00
Merge pull request #396 from abdasgupta/ppc64le-support
PPC64LE Support
This commit is contained in:
commit
b9f0f57f1a
@ -31,7 +31,19 @@ ifdef proto
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ARCH = $(shell uname -m)
|
ARCH = $(shell uname -m)
|
||||||
LIBC = musl
|
LIBC ?= musl
|
||||||
|
ifneq ($(LIBC),musl)
|
||||||
|
ifeq ($(LIBC),gnu)
|
||||||
|
override LIBC = gnu
|
||||||
|
else
|
||||||
|
$(error "ERROR: A non supported LIBC value was passed. Supported values are musl and gnu")
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ARCH), ppc64le)
|
||||||
|
override ARCH = powerpc64le
|
||||||
|
endif
|
||||||
|
|
||||||
TRIPLE = $(ARCH)-unknown-linux-$(LIBC)
|
TRIPLE = $(ARCH)-unknown-linux-$(LIBC)
|
||||||
|
|
||||||
TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET)
|
TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET)
|
||||||
|
@ -10,7 +10,7 @@ pub const SYSFS_DIR: &str = "/sys";
|
|||||||
pub const SYSFS_PCI_BUS_PREFIX: &str = "/sys/bus/pci/devices";
|
pub const SYSFS_PCI_BUS_PREFIX: &str = "/sys/bus/pci/devices";
|
||||||
pub const SYSFS_PCI_BUS_RESCAN_FILE: &str = "/sys/bus/pci/rescan";
|
pub const SYSFS_PCI_BUS_RESCAN_FILE: &str = "/sys/bus/pci/rescan";
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
target_arch = "powerpc64le",
|
target_arch = "powerpc64",
|
||||||
target_arch = "s390x",
|
target_arch = "s390x",
|
||||||
target_arch = "x86_64",
|
target_arch = "x86_64",
|
||||||
target_arch = "x86"
|
target_arch = "x86"
|
||||||
|
Loading…
Reference in New Issue
Block a user