-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x-tools: Add 32-bit toolchain to the linux-x86_64 image
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
FROM ubuntu:22.04 AS build | ||
FROM ubuntu:22.04 AS build64 | ||
COPY scripts/build-toolchain.sh configs/x86_64-linux-gnu.config /src/ | ||
RUN /src/build-toolchain.sh | ||
|
||
FROM ubuntu:22.04 AS build32 | ||
COPY scripts/build-toolchain.sh configs/i686-linux-gnu.config /src/ | ||
RUN /src/build-toolchain.sh | ||
|
||
FROM ubuntu:22.04 | ||
COPY --from=build /opt /opt | ||
COPY --from=build64 /opt/x-tools/x86_64-linux-gnu /opt/x-tools/x86_64-linux-gnu | ||
COPY --from=build32 /opt/x-tools/i686-linux-gnu /opt/x-tools/i686-linux-gnu | ||
ENV XTOOLS_HOST="x86_64-linux-gnu" | ||
ENV \ | ||
PATH="/opt/x-tools/$XTOOLS_HOST/bin:$PATH" \ | ||
PATH="/opt/x-tools/$XTOOLS_HOST/bin:/opt/x-tools/i686-linux-gnu/bin:$PATH" \ | ||
PKG_CONFIG_PATH="/opt/x-tools/$XTOOLS_HOST/$XTOOLS_HOST/sysroot/usr/lib/pkgconfig" | ||
COPY scripts/install-packages.sh /tmp | ||
RUN /tmp/install-packages.sh |