Skip to content

Commit 2063326

Browse files
committed
Fix fpga-image build
* Cross build broke. Take the opportunity to use the Caliptra build container for cross-compiling instead.
1 parent f6cc534 commit 2063326

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/workflows/fpga-image.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ jobs:
144144
sudo apt-get update
145145
sudo apt-get -y install debootstrap binfmt-support qemu-user-static u-boot-tools gcc-aarch64-linux-gnu
146146
rustup target add aarch64-unknown-linux-gnu
147-
cargo +1.88 install cross --git https://github.com/cross-rs/cross --root /tmp/cross
148147
149148
- name: Build SD images
150149
run: |

ci-tools/fpga-image/build.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,10 @@ EOF
110110
fi
111111

112112
pushd out
113-
git clone https://github.com/nextest-rs/nextest
114-
pushd nextest
115-
git fetch --tags
116-
git checkout cargo-nextest-0.9.118
117-
cross +1.90 build --target aarch64-unknown-linux-gnu --features=default-no-update --no-default-features --release
118-
popd
113+
podman run --rm -v$PWD:/work-dir -w/work-dir ghcr.io/chipsalliance/caliptra-build-image:latest /bin/bash -c "rustup +1.90 target add aarch64-unknown-linux-gnu && CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc cargo +1.90 install cargo-nextest --version 0.9.118 --target aarch64-unknown-linux-gnu --target-dir /work-dir"
119114
popd
120115

121-
mv out/nextest/target/aarch64-unknown-linux-gnu/release/cargo-nextest out/rootfs/usr/bin/
116+
mv out/aarch64-unknown-linux-gnu/release/cargo-nextest out/rootfs/usr/bin/
122117

123118
chroot out/rootfs bash -c 'echo ::1 caliptra-fpga >> /etc/hosts'
124119
cp startup-script.sh out/rootfs/usr/bin/

0 commit comments

Comments
 (0)