Skip to content

Commit

Permalink
add prework
Browse files Browse the repository at this point in the history
  • Loading branch information
Josen-B authored and baiqiaosen committed Jan 10, 2025
1 parent 35b8afc commit f3614ae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
12 changes: 1 addition & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
[patch."https://github.com/Josen-B//axhal.git".axhal]
branch = "phytium-pi"
git = "https://github.com/Josen-B/axhal.git"

[patch."https://github.com/Josen-B//axruntime.git".axruntime]
branch = "phytium-pi"
git = "https://github.com/Josen-B/axruntime.git"

[patch."https://github.com/Josen-B//of.git".of]
branch = "phytium-pi"
git = "https://github.com/Josen-B/of.git"
[patch]

[profile.dev]
lto = true
Expand Down
21 changes: 21 additions & 0 deletions prework.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# 检查是否存在 crates 路径,如果不存在则创建
if [ ! -d "./crates" ]; then
echo "crates 正在创建..."
mkdir crates
else
echo "crates 路径已存在。"
fi

kbuild patch add taskctx;
cd crates/taskctx;
git reset --hard 3c3ad2fb4defce02bc6186b836471ad28ab9c349;
cd ../..
# 使用 sed 替换 channel 的值
sed -i 's/channel = "nightly-2024-05-02"/channel = "nightly"/' rust-toolchain.toml

cargo update;

sed -i 's/channel = "nightly"/channel = "nightly-2024-05-02"/' rust-toolchain.toml

0 comments on commit f3614ae

Please sign in to comment.