Skip to content

Commit f537cdb

Browse files
committed
WIP
1 parent 757b73f commit f537cdb

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/ci/docker/scripts/rfl-build.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@ LINUX_VERSION=v6.14-rc3
88
../x.py build --stage 2 library rustdoc clippy rustfmt
99
../x.py build --stage 0 cargo
1010

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+
1118
# Install rustup so that we can use the built toolchain easily, and also
1219
# install bindgen in an easy way.
1320
#curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
1421
#sh rustup.sh -y --default-toolchain none
1522

16-
source /cargo/env
23+
#source /cargo/env
1724

18-
BUILD_DIR=$(realpath ./build)
1925
#rustup toolchain link local "${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage2
2026
#rustup default local
2127

@@ -33,10 +39,14 @@ git -C linux fetch --depth 1 origin ${LINUX_VERSION}
3339
git -C linux checkout FETCH_HEAD
3440

3541
# Install bindgen
36-
"${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage0/bin/cargo install \
42+
"${BUILD_DIR}"/stage0/bin/cargo install \
3743
--version $(linux/scripts/min-tool-version.sh bindgen) \
44+
--root ${BUILD_DIR}/bindgen
3845
bindgen-cli
3946

47+
ls -la ${BUILD_DIR}/bindgen/bin
48+
export PATH=${PATH}:${BUILD_DIR}/bindgen/bin
49+
4050
# Configure Rust for Linux
4151
cat <<EOF > linux/kernel/configs/rfl-for-rust-ci.config
4252
# CONFIG_WERROR is not set

0 commit comments

Comments
 (0)