Use cargo workspace (which will potentially improve build times
This commit is contained in:
parent
cd366c2165
commit
ff06f2d19f
34
Cargo.toml
Normal file
34
Cargo.toml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[workspace]
|
||||||
|
members = [
|
||||||
|
"drivers/ahcid",
|
||||||
|
"drivers/bgad",
|
||||||
|
"drivers/e1000d",
|
||||||
|
"drivers/pcid",
|
||||||
|
"drivers/ps2d",
|
||||||
|
"drivers/rtl8168d",
|
||||||
|
"drivers/vesad",
|
||||||
|
"kernel",
|
||||||
|
"programs/acid",
|
||||||
|
"programs/binutils",
|
||||||
|
"programs/contain",
|
||||||
|
"programs/coreutils",
|
||||||
|
"programs/extrautils",
|
||||||
|
"programs/games",
|
||||||
|
"programs/init",
|
||||||
|
"programs/ion",
|
||||||
|
"programs/netutils",
|
||||||
|
"programs/orbutils",
|
||||||
|
"programs/pkgutils",
|
||||||
|
"programs/smith",
|
||||||
|
"programs/tar",
|
||||||
|
"programs/userutils",
|
||||||
|
"schemes/ethernetd",
|
||||||
|
"schemes/example",
|
||||||
|
"schemes/ipd",
|
||||||
|
"schemes/orbital",
|
||||||
|
"schemes/ptyd",
|
||||||
|
"schemes/randd",
|
||||||
|
"schemes/redoxfs",
|
||||||
|
"schemes/tcpd",
|
||||||
|
"schemes/udpd"
|
||||||
|
]
|
108
Makefile
108
Makefile
|
@ -37,38 +37,9 @@ iso: build/livedisk.iso
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
cargo clean
|
||||||
cargo clean --manifest-path rust/src/libstd/Cargo.toml
|
cargo clean --manifest-path rust/src/libstd/Cargo.toml
|
||||||
cargo clean --manifest-path kernel/Cargo.toml
|
-$(FUMOUNT) build/filesystem/ || true
|
||||||
cargo clean --manifest-path drivers/ahcid/Cargo.toml
|
|
||||||
cargo clean --manifest-path drivers/e1000d/Cargo.toml
|
|
||||||
cargo clean --manifest-path drivers/ps2d/Cargo.toml
|
|
||||||
cargo clean --manifest-path drivers/pcid/Cargo.toml
|
|
||||||
cargo clean --manifest-path drivers/rtl8168d/Cargo.toml
|
|
||||||
cargo clean --manifest-path drivers/vesad/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/acid/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/contain/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/init/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/ion/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/binutils/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/coreutils/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/extrautils/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/games/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/netutils/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/orbutils/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/pkgutils/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/userutils/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/smith/Cargo.toml
|
|
||||||
cargo clean --manifest-path programs/tar/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/ethernetd/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/example/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/ipd/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/orbital/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/ptyd/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/randd/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/redoxfs/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/tcpd/Cargo.toml
|
|
||||||
cargo clean --manifest-path schemes/udpd/Cargo.toml
|
|
||||||
-$(FUMOUNT) build/filesystem/
|
|
||||||
rm -rf initfs/bin
|
rm -rf initfs/bin
|
||||||
rm -rf filesystem/bin filesystem/sbin filesystem/ui/bin
|
rm -rf filesystem/bin filesystem/sbin filesystem/ui/bin
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
@ -92,71 +63,8 @@ ref: FORCE
|
||||||
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/extrautils/src/bin/ filesystem/ref/
|
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/extrautils/src/bin/ filesystem/ref/
|
||||||
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/netutils/src/ filesystem/ref/
|
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/netutils/src/ filesystem/ref/
|
||||||
|
|
||||||
test:
|
|
||||||
cargo test --manifest-path rust/src/libstd/Cargo.toml
|
|
||||||
cargo test --manifest-path kernel/Cargo.toml
|
|
||||||
cargo test --manifest-path drivers/ahcid/Cargo.toml
|
|
||||||
cargo test --manifest-path drivers/e1000d/Cargo.toml
|
|
||||||
cargo test --manifest-path drivers/ps2d/Cargo.toml
|
|
||||||
cargo test --manifest-path drivers/pcid/Cargo.toml
|
|
||||||
cargo test --manifest-path drivers/rtl8168d/Cargo.toml
|
|
||||||
cargo test --manifest-path drivers/vesad/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/acid/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/contain/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/init/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/ion/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/binutils/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/coreutils/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/extrautils/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/games/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/netutils/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/orbutils/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/pkgutils/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/userutils/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/smith/Cargo.toml
|
|
||||||
cargo test --manifest-path programs/tar/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/ethernetd/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/example/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/ipd/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/orbital/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/ptyd/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/randd/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/redoxfs/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/tcpd/Cargo.toml
|
|
||||||
cargo test --manifest-path schemes/udpd/Cargo.toml
|
|
||||||
|
|
||||||
update:
|
update:
|
||||||
#cargo update --manifest-path rust/src/libstd/Cargo.toml
|
cargo update
|
||||||
cargo update --manifest-path kernel/Cargo.toml
|
|
||||||
cargo update --manifest-path drivers/ahcid/Cargo.toml
|
|
||||||
cargo update --manifest-path drivers/e1000d/Cargo.toml
|
|
||||||
cargo update --manifest-path drivers/ps2d/Cargo.toml
|
|
||||||
cargo update --manifest-path drivers/pcid/Cargo.toml
|
|
||||||
cargo update --manifest-path drivers/rtl8168d/Cargo.toml
|
|
||||||
cargo update --manifest-path drivers/vesad/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/acid/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/contain/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/init/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/ion/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/binutils/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/coreutils/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/extrautils/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/games/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/netutils/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/orbutils/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/pkgutils/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/userutils/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/smith/Cargo.toml
|
|
||||||
cargo update --manifest-path programs/tar/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/ethernetd/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/example/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/ipd/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/orbital/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/ptyd/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/randd/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/redoxfs/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/tcpd/Cargo.toml
|
|
||||||
cargo update --manifest-path schemes/udpd/Cargo.toml
|
|
||||||
|
|
||||||
pull:
|
pull:
|
||||||
git pull --rebase --recurse-submodules
|
git pull --rebase --recurse-submodules
|
||||||
|
@ -591,13 +499,13 @@ build/filesystem.bin: \
|
||||||
filesystem/bin/sh \
|
filesystem/bin/sh \
|
||||||
filesystem/bin/smith \
|
filesystem/bin/smith \
|
||||||
filesystem/bin/tar
|
filesystem/bin/tar
|
||||||
-$(FUMOUNT) build/filesystem/
|
-$(FUMOUNT) build/filesystem/ || true
|
||||||
rm -rf $@ build/filesystem/
|
rm -rf $@ build/filesystem/
|
||||||
dd if=/dev/zero of=$@ bs=1048576 count=64
|
dd if=/dev/zero of=$@ bs=1048576 count=64
|
||||||
cargo run --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs-mkfs $@
|
cargo run --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs-mkfs $@
|
||||||
mkdir -p build/filesystem/
|
mkdir -p build/filesystem/
|
||||||
cargo build --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs
|
cargo build --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs
|
||||||
schemes/redoxfs/target/release/redoxfs $@ build/filesystem/
|
cargo run --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs -- $@ build/filesystem/
|
||||||
sleep 2
|
sleep 2
|
||||||
pgrep redoxfs
|
pgrep redoxfs
|
||||||
cp -RL filesystem/* build/filesystem/
|
cp -RL filesystem/* build/filesystem/
|
||||||
|
@ -617,19 +525,19 @@ build/filesystem.bin: \
|
||||||
mkdir build/filesystem/tmp
|
mkdir build/filesystem/tmp
|
||||||
chmod 1777 build/filesystem/tmp
|
chmod 1777 build/filesystem/tmp
|
||||||
sync
|
sync
|
||||||
-$(FUMOUNT) build/filesystem/
|
-$(FUMOUNT) build/filesystem/ || true
|
||||||
rm -rf build/filesystem/
|
rm -rf build/filesystem/
|
||||||
|
|
||||||
mount: FORCE
|
mount: FORCE
|
||||||
mkdir -p build/filesystem/
|
mkdir -p build/filesystem/
|
||||||
cargo build --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs
|
cargo build --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs
|
||||||
schemes/redoxfs/target/release/redoxfs build/harddrive.bin build/filesystem/
|
cargo run --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs -- build/harddrive.bin build/filesystem/
|
||||||
sleep 2
|
sleep 2
|
||||||
pgrep redoxfs
|
pgrep redoxfs
|
||||||
|
|
||||||
unmount: FORCE
|
unmount: FORCE
|
||||||
sync
|
sync
|
||||||
-$(FUMOUNT) build/filesystem/
|
-$(FUMOUNT) build/filesystem/ || true
|
||||||
rm -rf build/filesystem/
|
rm -rf build/filesystem/
|
||||||
|
|
||||||
wireshark: FORCE
|
wireshark: FORCE
|
||||||
|
|
2
kernel
2
kernel
|
@ -1 +1 @@
|
||||||
Subproject commit 882e64bdb976b365f055d3b0e225ced06dec8b49
|
Subproject commit 06118a23ddf578424c35c2a0f9b704acbc5648f0
|
Loading…
Reference in a new issue