@@ -8,14 +8,20 @@ LINUX_VERSION=v6.14-rc3
8
8
../x.py build --stage 2 library rustdoc clippy rustfmt
9
9
../x.py build --stage 0 cargo
10
10
11
+ BUILD_DIR=$( realpath ./build/x86_64-unknown-linux-gnu)
12
+ ls -la ${BUILD_DIR} /stage0/bin
13
+ ls -la ${BUILD_DIR} /stage1/bin
14
+ ls -la ${BUILD_DIR} /stage2/bin
15
+
16
+ export PATH=${PATH} :${BUILD_DIR} /stage2/bin
17
+
11
18
# Install rustup so that we can use the built toolchain easily, and also
12
19
# install bindgen in an easy way.
13
20
# curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
14
21
# sh rustup.sh -y --default-toolchain none
15
22
16
- source /cargo/env
23
+ # source /cargo/env
17
24
18
- BUILD_DIR=$( realpath ./build)
19
25
# rustup toolchain link local "${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage2
20
26
# rustup default local
21
27
@@ -33,10 +39,14 @@ git -C linux fetch --depth 1 origin ${LINUX_VERSION}
33
39
git -C linux checkout FETCH_HEAD
34
40
35
41
# Install bindgen
36
- " ${BUILD_DIR} " /x86_64-unknown-linux-gnu/ stage0/bin/cargo install \
42
+ " ${BUILD_DIR} " /stage0/bin/cargo install \
37
43
--version $( linux/scripts/min-tool-version.sh bindgen) \
44
+ --root ${BUILD_DIR} /bindgen
38
45
bindgen-cli
39
46
47
+ ls -la ${BUILD_DIR} /bindgen/bin
48
+ export PATH=${PATH} :${BUILD_DIR} /bindgen/bin
49
+
40
50
# Configure Rust for Linux
41
51
cat << EOF > linux/kernel/configs/rfl-for-rust-ci.config
42
52
# CONFIG_WERROR is not set
0 commit comments