mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 12:56:48 +00:00
Move the test kernel to OSDK/deps
This commit is contained in:
parent
455b8abba0
commit
9c430b9901
@ -1,7 +1,7 @@
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
members = [
|
||||
"osdk/test-kernel",
|
||||
"osdk/deps/test-kernel",
|
||||
"ostd",
|
||||
"ostd/libs/align_ext",
|
||||
"ostd/libs/ostd-macros",
|
||||
|
2
Makefile
2
Makefile
@ -144,7 +144,7 @@ NON_OSDK_CRATES := \
|
||||
# In contrast, OSDK crates depend on OSTD (or being `ostd` itself)
|
||||
# and need to be built or tested with OSDK.
|
||||
OSDK_CRATES := \
|
||||
osdk/test-kernel \
|
||||
osdk/deps/test-kernel \
|
||||
ostd \
|
||||
ostd/libs/linux-bzimage/setup \
|
||||
kernel \
|
||||
|
4
osdk/deps/README.md
Normal file
4
osdk/deps/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# OSDK deps
|
||||
|
||||
This directory contains libraries or kernels that depends on OSTD, independent
|
||||
to OSTD but by-default shipped with OSDK.
|
@ -9,7 +9,7 @@ repository ="https://github.com/asterinas/asterinas"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
ostd = { version = "0.11.3", path = "../../ostd" }
|
||||
ostd = { version = "0.11.3", path = "../../../ostd" }
|
||||
owo-colors = "4.0.0"
|
||||
|
||||
[lints]
|
@ -228,7 +228,7 @@ fn add_manifest_dependency(
|
||||
let dep_str = match option_env!("OSDK_LOCAL_DEV") {
|
||||
Some("1") => {
|
||||
let crate_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
let test_kernel_dir = crate_dir.join("test-kernel");
|
||||
let test_kernel_dir = crate_dir.join("deps").join("test-kernel");
|
||||
format!(
|
||||
"osdk-test-kernel = {{ path = \"{}\" }}",
|
||||
test_kernel_dir.display()
|
||||
|
@ -110,7 +110,7 @@ LINUX_BOOT_PARAMS_CARGO_TOML_PATH=${ASTER_SRC_DIR}/ostd/libs/linux-bzimage/boot-
|
||||
LINUX_BZIMAGE_BUILDER_CARGO_TOML_PATH=${ASTER_SRC_DIR}/ostd/libs/linux-bzimage/builder/Cargo.toml
|
||||
LINUX_BZIMAGE_SETUP_CARGO_TOML_PATH=${ASTER_SRC_DIR}/ostd/libs/linux-bzimage/setup/Cargo.toml
|
||||
OSDK_CARGO_TOML_PATH=${ASTER_SRC_DIR}/osdk/Cargo.toml
|
||||
OSDK_TEST_RUNNER_CARGO_TOML_PATH=${ASTER_SRC_DIR}/osdk/test-kernel/Cargo.toml
|
||||
OSDK_TEST_RUNNER_CARGO_TOML_PATH=${ASTER_SRC_DIR}/osdk/deps/test-kernel/Cargo.toml
|
||||
VERSION_PATH=${ASTER_SRC_DIR}/VERSION
|
||||
|
||||
current_version=$(cat ${VERSION_PATH})
|
||||
|
@ -83,7 +83,7 @@ for TARGET in $TARGETS; do
|
||||
do_publish_for ostd/libs/ostd-test $TARGET
|
||||
do_publish_for ostd/libs/linux-bzimage/setup $TARGET
|
||||
do_publish_for ostd $TARGET
|
||||
do_publish_for osdk/test-kernel $TARGET
|
||||
do_publish_for osdk/deps/test-kernel $TARGET
|
||||
|
||||
# For actual publishing, we should only publish once. Using any target that
|
||||
# OSTD supports is OK. Here we use the first target in the list.
|
||||
|
Loading…
x
Reference in New Issue
Block a user