BlockCache-read cache支持 (#521)

支持block cache的读缓存
This commit is contained in:
曾俊
2024-04-07 14:03:51 +08:00
committed by GitHub
parent 06560afa2a
commit eb49bb993a
19 changed files with 797 additions and 26 deletions

View File

@ -0,0 +1,41 @@
# The toolchain we use.
# You can get it by running DragonOS' `tools/bootstrap.sh`
TOOLCHAIN="+nightly-2023-08-15-x86_64-unknown-linux_dragonos-gnu"
RUSTFLAGS+="-C target-feature=+crt-static -C link-arg=-no-pie"
# 如果是在dadk中编译那么安装到dadk的安装目录中
INSTALL_DIR?=$(DADK_CURRENT_BUILD_DIR)
# 如果是在本地编译那么安装到当前目录下的install目录中
INSTALL_DIR?=./install
run:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) run
build:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) build
clean:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) clean
test:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) test
doc:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) doc
run-release:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) run --release
build-release:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) build --release
clean-release:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) clean --release
test-release:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) test --release
.PHONY: install
install:
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) install --path . --no-track --root $(INSTALL_DIR) --force