mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-16 00:36: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 ?= ""
|
SCHEME ?= ""
|
||||||
SMP ?= 1
|
SMP ?= 1
|
||||||
OSTD_TASK_STACK_SIZE_IN_PAGES ?= 64
|
OSTD_TASK_STACK_SIZE_IN_PAGES ?= 64
|
||||||
|
FEATURES ?=
|
||||||
|
NO_DEFAULT_FEATURES ?= 0
|
||||||
# End of global build options.
|
# End of global build options.
|
||||||
|
|
||||||
# GDB debugging and profiling options.
|
# GDB debugging and profiling options.
|
||||||
@ -33,7 +35,6 @@ GDB_PROFILE_INTERVAL ?= 0.1
|
|||||||
AUTO_TEST ?= none
|
AUTO_TEST ?= none
|
||||||
EXTRA_BLOCKLISTS_DIRS ?= ""
|
EXTRA_BLOCKLISTS_DIRS ?= ""
|
||||||
SYSCALL_TEST_DIR ?= /tmp
|
SYSCALL_TEST_DIR ?= /tmp
|
||||||
FEATURES ?=
|
|
||||||
# End of auto test features.
|
# End of auto test features.
|
||||||
|
|
||||||
# Network settings
|
# Network settings
|
||||||
@ -93,6 +94,9 @@ endif
|
|||||||
ifdef FEATURES
|
ifdef FEATURES
|
||||||
CARGO_OSDK_ARGS += --features="$(FEATURES)"
|
CARGO_OSDK_ARGS += --features="$(FEATURES)"
|
||||||
endif
|
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
|
# 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.
|
# 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 dependencies = manifest.get_mut("dependencies").unwrap();
|
||||||
|
|
||||||
let target_dep = toml::Table::from_str(&format!(
|
let target_dep = toml::Table::from_str(&format!(
|
||||||
"{} = {{ path = \"{}\", default-features = false }}",
|
"{} = {{ path = \"{}\" }}",
|
||||||
crate_name,
|
crate_name,
|
||||||
crate_path.as_ref().display()
|
crate_path.as_ref().display()
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user