File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff 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
1313ENV 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
1916COPY 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
Original file line number Diff line number Diff line change @@ -143,12 +143,12 @@ RUN touch /opt/x-tools/switch-arm.sh && chmod +x /opt/x-tools/switch-arm.sh && c
143143export ARCH=arm
144144export CHOST="$CHOST"
145145export CROSS_COMPILE="$CHOST-"
146+ PATH="\$ PATH:/opt/x-tools/$NGCONFIG/bin"
146147export PKG_CONFIG_LIBDIR="/opt/x-tools/$NGCONFIG/$NGCONFIG/sysroot/usr/lib/pkgconfig:/opt/x-tools/$NGCONFIG/$NGCONFIG/sysroot/lib/pkgconfig:/opt/x-tools/$NGCONFIG/$NGCONFIG/sysroot/opt/lib/pkgconfig"
147148export PKG_CONFIG_SYSROOT_DIR="/opt/x-tools/$NGCONFIG/$NGCONFIG/sysroot"
148149export SYSROOT="/opt/x-tools/$NGCONFIG/$NGCONFIG/sysroot"
149150export NGCONFIG="$NGCONFIG"
150151export TARGET_PREFIX="$CHOST"
151- export CARGO_BUILD_TARGET="armv7-unknown-linux-gnueabihf"
152152EOF
153153
154154RUN touch /opt/x-tools/switch-aarch64.sh && chmod +x /opt/x-tools/switch-aarch64.sh && cat <<EOF > /opt/x-tools/switch-aarch64.sh
@@ -161,7 +161,6 @@ export PKG_CONFIG_SYSROOT_DIR="/opt/x-tools/$NGCONFIG_AARCH64/$NGCONFIG_AARCH64/
161161export SYSROOT="/opt/x-tools/$NGCONFIG_AARCH64/$NGCONFIG_AARCH64/sysroot"
162162export NGCONFIG="$NGCONFIG_AARCH64"
163163export TARGET_PREFIX="$CHOST_AARCH64"
164- export CARGO_BUILD_TARGET="aarch64-unknown-linux-gnu"
165164EOF
166165
167166# Configure Opkg
You can’t perform that action at this time.
0 commit comments