Skip to content

Commit fd14f34

Browse files
authored
Add rust env to rust image switch.sh
Updated build target configuration for Rust.
1 parent b5bba43 commit fd14f34

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rust/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y -q \
1212
# Add rust binaries to PATH
1313
ENV PATH="$PATH:/root/.cargo/bin"
1414

15-
# Set default build target to armv7
16-
ENV CARGO_BUILD_TARGET="armv7-unknown-linux-gnueabihf"
17-
1815
# Target reMarkable architecture by default
1916
COPY config /root/.cargo/config
17+
18+
RUN echo 'export CARGO_BUILD_TARGET="aarch64-unknown-linux-gnu"' >> /opt/x-tools/switch-aarch64.sh \
19+
&& echo 'export CARGO_BUILD_TARGET="armv7-unknown-linux-gnueabihf"' >> /opt/x-tools/switch-arm.sh

0 commit comments

Comments
 (0)