Adjust feature selection

This commit is contained in:
Zhang Junyang 2025-03-19 13:53:41 +08:00 committed by Tate, Hongliang Tian
parent 2bcc13a9e2
commit 58ad43b0a9
2 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,8 @@ LOG_LEVEL ?= error
SCHEME ?= ""
SMP ?= 1
OSTD_TASK_STACK_SIZE_IN_PAGES ?= 64
FEATURES ?=
NO_DEFAULT_FEATURES ?= 0
# End of global build options.
# GDB debugging and profiling options.
@ -33,7 +35,6 @@ GDB_PROFILE_INTERVAL ?= 0.1
AUTO_TEST ?= none
EXTRA_BLOCKLISTS_DIRS ?= ""
SYSCALL_TEST_DIR ?= /tmp
FEATURES ?=
# End of auto test features.
# Network settings
@ -93,6 +94,9 @@ endif
ifdef FEATURES
CARGO_OSDK_ARGS += --features="$(FEATURES)"
endif
ifeq ($(NO_DEFAULT_FEATURES), 1)
CARGO_OSDK_ARGS += --no-default-features
endif
# To test the linux-efi-handover64 boot protocol, we need to use Debian's
# GRUB release, which is installed in /usr/bin in our Docker image.

View File

@ -217,7 +217,7 @@ fn add_manifest_dependency(
let dependencies = manifest.get_mut("dependencies").unwrap();
let target_dep = toml::Table::from_str(&format!(
"{} = {{ path = \"{}\", default-features = false }}",
"{} = {{ path = \"{}\" }}",
crate_name,
crate_path.as_ref().display()
))