Skip to content

Commit

Permalink
Merge pull request kata-containers#396 from abdasgupta/ppc64le-support
Browse files Browse the repository at this point in the history
PPC64LE Support
  • Loading branch information
fidencio authored Jul 9, 2020
2 parents 5a68e34 + ae83c96 commit b9f0f57
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion src/agent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,19 @@ ifdef proto
endif

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)

TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET)
Expand Down
2 changes: 1 addition & 1 deletion src/agent/src/linux_abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_RESCAN_FILE: &str = "/sys/bus/pci/rescan";
#[cfg(any(
target_arch = "powerpc64le",
target_arch = "powerpc64",
target_arch = "s390x",
target_arch = "x86_64",
target_arch = "x86"
Expand Down

0 comments on commit b9f0f57

Please sign in to comment.