mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Adjust feature selection
This commit is contained in:
parent
2bcc13a9e2
commit
58ad43b0a9
6
Makefile
6
Makefile
@ -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.
|
||||
|
@ -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()
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user