Fix travis CI and makefile

master
Jiajie Chen 6 years ago
parent 1be7b49668
commit 7bf5f7cf64

@ -40,6 +40,7 @@ allow_failures:
matrix: matrix:
- ARCH="x86_64" SRC="redis" # unable to reproduce locally, weird.. - ARCH="x86_64" SRC="redis" # unable to reproduce locally, weird..
- ARCH="aarch64" 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 # too slow or homebrew too old
- os: osx - os: osx

@ -2,11 +2,6 @@
# mode = {debug, release} # mode = {debug, release}
arch ?= riscv32 arch ?= riscv32
mode ?= debug mode ?= debug
ifeq ($(arch), riscv64)
biscuit ?= no
else
biscuit ?= yes
endif
out_dir ?= build/$(arch) out_dir ?= build/$(arch)
out_img ?= build/$(arch).img out_img ?= build/$(arch).img
out_qcow2 ?= build/$(arch).qcow2 out_qcow2 ?= build/$(arch).qcow2
@ -47,8 +42,8 @@ ifneq ($(arch), x86_64)
endif endif
biscuit: biscuit:
ifeq ($(biscuit), yes)
ifeq ($(arch), $(filter $(arch), x86_64 aarch64 riscv64)) ifeq ($(arch), $(filter $(arch), x86_64 aarch64 riscv64))
ifneq ($(shell uname)-$(arch), Darwin-riscv64)
@echo Building biscuit programs @echo Building biscuit programs
@mkdir -p biscuit/build @mkdir -p biscuit/build
@cd biscuit/build && cmake $(cmake_build_args) .. && make @cd biscuit/build && cmake $(cmake_build_args) .. && make
@ -83,10 +78,12 @@ ifneq ($(shell uname), Darwin)
endif endif
redis: redis:
ifneq ($(shell uname), Darwin)
mkdir -p $(out_dir) mkdir -p $(out_dir)
@cd redis && make arch=$(arch) all @cd redis && make arch=$(arch) all
@cp redis/build/$(arch)/redis-server $(out_dir)/redis-server @cp redis/build/$(arch)/redis-server $(out_dir)/redis-server
@cp redis/build/$(arch)/redis-cli $(out_dir)/redis-cli @cp redis/build/$(arch)/redis-cli $(out_dir)/redis-cli
endif
build: rust ucore biscuit $(busybox) nginx redis build: rust ucore biscuit $(busybox) nginx redis

Loading…
Cancel
Save