diff --git a/.travis.yml b/.travis.yml index 098388b..514123f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,6 +40,7 @@ allow_failures: matrix: - ARCH="x86_64" SRC="redis" # unable to reproduce locally, weird.. - ARCH="aarch64" SRC="redis" # unable to reproduce locally, weird.. + - ARCH="riscv32" SRC="redis" # unable to reproduce locally, weird.. # too slow or homebrew too old - os: osx diff --git a/Makefile b/Makefile index 5e29b8c..d5621e4 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,6 @@ # mode = {debug, release} arch ?= riscv32 mode ?= debug -ifeq ($(arch), riscv64) - biscuit ?= no -else - biscuit ?= yes -endif out_dir ?= build/$(arch) out_img ?= build/$(arch).img out_qcow2 ?= build/$(arch).qcow2 @@ -47,8 +42,8 @@ ifneq ($(arch), x86_64) endif biscuit: -ifeq ($(biscuit), yes) ifeq ($(arch), $(filter $(arch), x86_64 aarch64 riscv64)) +ifneq ($(shell uname)-$(arch), Darwin-riscv64) @echo Building biscuit programs @mkdir -p biscuit/build @cd biscuit/build && cmake $(cmake_build_args) .. && make @@ -83,10 +78,12 @@ ifneq ($(shell uname), Darwin) endif redis: +ifneq ($(shell uname), Darwin) mkdir -p $(out_dir) @cd redis && make arch=$(arch) all @cp redis/build/$(arch)/redis-server $(out_dir)/redis-server @cp redis/build/$(arch)/redis-cli $(out_dir)/redis-cli +endif build: rust ucore biscuit $(busybox) nginx redis