|
|
@ -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
|
|
|
|
|
|
|
|
|
|
|
|