refactor: move drivers + add authors

This commit is contained in:
Mark Poliakov 2023-12-11 03:04:49 +02:00
parent 5ffd4ca4e2
commit 4ce7a57c4a
25 changed files with 21 additions and 8 deletions

View File

@ -3,6 +3,7 @@ name = "yggdrasil-kernel"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
build = "build.rs" build = "build.rs"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev.package.tock-registers] [profile.dev.package.tock-registers]
@ -11,8 +12,6 @@ opt-level = 3
[dependencies] [dependencies]
yggdrasil-abi = { git = "https://git.alnyan.me/yggdrasil/yggdrasil-abi.git" } yggdrasil-abi = { git = "https://git.alnyan.me/yggdrasil/yggdrasil-abi.git" }
vfs = { path = "lib/vfs" } vfs = { path = "lib/vfs" }
# TODO move to drivers
memfs = { path = "lib/memfs" }
device-api = { path = "lib/device-api", features = ["derive"] } device-api = { path = "lib/device-api", features = ["derive"] }
kernel-util = { path = "lib/kernel-util" } kernel-util = { path = "lib/kernel-util" }
memtables = { path = "lib/memtables" } memtables = { path = "lib/memtables" }
@ -22,8 +21,9 @@ device-api-macros = { path = "lib/device-api/macros" }
# Drivers # Drivers
ygg_driver_pci = { path = "driver/bus/pci" } ygg_driver_pci = { path = "driver/bus/pci" }
ygg_driver_nvme = { path = "driver/block/nvme" } ygg_driver_nvme = { path = "driver/block/nvme" }
ygg_driver_block = { path = "driver/block/block" } ygg_driver_block = { path = "driver/block/core" }
kernel-fs = { path = "driver/fs/kernel-fs" } kernel-fs = { path = "driver/fs/kernel-fs" }
memfs = { path = "driver/fs/memfs" }
atomic_enum = "0.2.0" atomic_enum = "0.2.0"
bitflags = "2.3.3" bitflags = "2.3.3"

View File

@ -2,6 +2,7 @@
name = "ygg_driver_block" name = "ygg_driver_block"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "ygg_driver_nvme" name = "ygg_driver_nvme"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -12,7 +13,7 @@ device-api = { path = "../../../lib/device-api", features = ["derive"] }
vfs = { path = "../../../lib/vfs" } vfs = { path = "../../../lib/vfs" }
ygg_driver_pci = { path = "../../bus/pci" } ygg_driver_pci = { path = "../../bus/pci" }
ygg_driver_block = { path = "../../block/block" } ygg_driver_block = { path = "../../block/core" }
kernel-fs = { path = "../../fs/kernel-fs" } kernel-fs = { path = "../../fs/kernel-fs" }
log = "0.4.20" log = "0.4.20"

View File

@ -2,6 +2,7 @@
name = "ygg_driver_pci" name = "ygg_driver_pci"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "kernel-fs" name = "kernel-fs"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -10,6 +11,6 @@ yggdrasil-abi = { git = "https://git.alnyan.me/yggdrasil/yggdrasil-abi.git" }
vfs = { path = "../../../lib/vfs" } vfs = { path = "../../../lib/vfs" }
kernel-util = { path = "../../../lib/kernel-util" } kernel-util = { path = "../../../lib/kernel-util" }
ygg_driver_block = { path = "../../block/block" } ygg_driver_block = { path = "../../block/core" }
log = "0.4.20" log = "0.4.20"

View File

@ -2,13 +2,14 @@
name = "memfs" name = "memfs"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
yggdrasil-abi = { git = "https://git.alnyan.me/yggdrasil/yggdrasil-abi.git" } yggdrasil-abi = { git = "https://git.alnyan.me/yggdrasil/yggdrasil-abi.git" }
kernel-util = { path = "../kernel-util" } kernel-util = { path = "../../../lib/kernel-util" }
vfs = { path = "../vfs" } vfs = { path = "../../../lib/vfs" }
static_assertions = "1.1.0" static_assertions = "1.1.0"
log = "0.4.20" log = "0.4.20"

View File

@ -2,6 +2,7 @@
name = "device-api" name = "device-api"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "device-api-macros" name = "device-api-macros"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "hosted-tests" name = "hosted-tests"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "kernel-util" name = "kernel-util"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "memtables" name = "memtables"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "vfs" name = "vfs"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -9,7 +10,7 @@ edition = "2021"
yggdrasil-abi = { git = "https://git.alnyan.me/yggdrasil/yggdrasil-abi.git", features = ["alloc"] } yggdrasil-abi = { git = "https://git.alnyan.me/yggdrasil/yggdrasil-abi.git", features = ["alloc"] }
kernel-util = { path = "../kernel-util" } kernel-util = { path = "../kernel-util" }
ygg_driver_block = { path = "../../driver/block/block" } ygg_driver_block = { path = "../../driver/block/core" }
log = "0.4.20" log = "0.4.20"

View File

@ -2,6 +2,7 @@
name = "vmalloc" name = "vmalloc"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,6 +2,7 @@
name = "gentables" name = "gentables"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Mark Poliakov <mark@alnyan.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html