Merge pull request #6274 from BbolroC/exclude-s390x-ppc64le-from-runtime-rs

CCv0: shim-v2: Only build runtime-rs for the supported arches
This commit is contained in:
Fabiano Fidêncio 2023-02-14 08:11:20 +01:00 committed by GitHub
commit 89e9af2ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,10 +23,23 @@ ARCH_FILE = $(ARCH_DIR)/$(ARCH)$(ARCH_FILE_SUFFIX)
ifeq ($(ARCH), s390x) ifeq ($(ARCH), s390x)
default: default:
@echo "s390x not support currently" @echo "s390x is not currently supported"
exit 0 exit 0
test: test:
@echo "s390x not support currently" @echo "s390x is not currently supported"
exit 0
install:
@echo "s390x is not currently supported"
exit 0
else ifeq ($(ARCH), powerpc64le)
default:
@echo "PowerPC 64 LE is not currently supported"
exit 0
test:
@echo "PowerPC 64 LE is not currently supported"
exit 0
install:
@echo "PowerPC 64 LE is not currently supported"
exit 0 exit 0
else else
##TARGET default: build code ##TARGET default: build code
@ -34,6 +47,7 @@ default: runtime show-header
##TARGET test: run cargo tests ##TARGET test: run cargo tests
test: test:
@cargo test --all --target $(TRIPLE) $(EXTRA_RUSTFEATURES) -- --nocapture @cargo test --all --target $(TRIPLE) $(EXTRA_RUSTFEATURES) -- --nocapture
install: install-runtime install-configs
endif endif
ifeq (,$(realpath $(ARCH_FILE))) ifeq (,$(realpath $(ARCH_FILE)))
@ -484,8 +498,6 @@ codecov: check_tarpaulin
codecov-html: check_tarpaulin codecov-html: check_tarpaulin
cargo tarpaulin $(TARPAULIN_ARGS) -o Html cargo tarpaulin $(TARPAULIN_ARGS) -o Html
install: install-runtime install-configs
install-runtime: runtime install-runtime: runtime
install -D $(TARGET_PATH) $(DESTDIR)$(BINDIR)/$(notdir $(TARGET_PATH)) install -D $(TARGET_PATH) $(DESTDIR)$(BINDIR)/$(notdir $(TARGET_PATH))