-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try #982: --target x86_64-unknown-linux-gnu*
- Loading branch information
Showing
13 changed files
with
307 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type": "internal", | ||
"description": "use generic dockerfiles for when the toolchain and image platfom match." | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This dockerfile is used when the target matches the images platform in `build-docker-image` | ||
FROM ubuntu:20.04 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY common.sh lib.sh / | ||
RUN /common.sh | ||
|
||
COPY cmake.sh / | ||
RUN /cmake.sh | ||
|
||
COPY xargo.sh / | ||
RUN /xargo.sh | ||
|
||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
ARG CROSS_TARGET_TRIPLE | ||
|
||
COPY qemu.sh native-qemu.sh / | ||
RUN /native-qemu.sh | ||
|
||
COPY dropbear.sh / | ||
RUN /dropbear.sh | ||
|
||
COPY linux-image.sh native-linux-image.sh / | ||
RUN /native-linux-image.sh | ||
|
||
COPY linux-runner native-linux-runner base-runner.sh / | ||
|
||
ENV CROSS_TARGETARCH=$TARGETARCH | ||
ENV CROSS_TARGETVARIANT=$TARGETVARIANT | ||
ENV CARGO_TARGET_${CROSS_TARGET_TRIPLE}_RUNNER="/native-linux-runner" |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM ubuntu:20.04 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
ARG CROSS_TARGET_TRIPLE | ||
|
||
COPY lib.sh / | ||
COPY linux-image.sh native-linux-image.sh / | ||
RUN /native-linux-image.sh | ||
|
||
FROM centos:7 | ||
|
||
COPY common.sh lib.sh / | ||
RUN /common.sh | ||
|
||
COPY cmake.sh / | ||
RUN /cmake.sh | ||
|
||
COPY xargo.sh / | ||
RUN /xargo.sh | ||
|
||
# these need to be present in **both** FROM sections | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
ARG CROSS_TARGET_TRIPLE | ||
|
||
COPY qemu.sh native-qemu.sh / | ||
RUN /native-qemu.sh | ||
|
||
COPY dropbear.sh / | ||
RUN /dropbear.sh | ||
|
||
COPY --from=0 /qemu /qemu | ||
|
||
COPY linux-runner native-linux-runner base-runner.sh / | ||
|
||
ENV CROSS_TARGETARCH=$TARGETARCH | ||
ENV CROSS_TARGETVARIANT=$TARGETVARIANT | ||
ENV CARGO_TARGET_${CROSS_TARGET_TRIPLE}_RUNNER="/native-linux-runner" |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -eo pipefail | ||
|
||
# shellcheck disable=SC1091 | ||
. lib.sh | ||
|
||
main() { | ||
local arch | ||
arch=$(docker_to_linux_arch "${TARGETARCH}" "${TARGETVARIANT}") | ||
/linux-image.sh "${arch}" | ||
rm "${0}" | ||
} | ||
|
||
main "${@}" |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
# shellcheck disable=SC1091 | ||
. /lib.sh | ||
|
||
main() { | ||
local arch | ||
arch=$(docker_to_linux_arch "${CROSS_TARGETARCH}" "${CROSS_TARGETVARIANT}") | ||
|
||
if [[ -z "${CROSS_RUNNER}" ]]; then | ||
export CROSS_RUNNER=native | ||
fi | ||
|
||
exec /linux-runner "${arch}" "${@}" | ||
} | ||
|
||
main "${@}" |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
# shellcheck disable=SC1091 | ||
. lib.sh | ||
|
||
main() { | ||
local arch | ||
arch=$(docker_to_qemu_arch "${TARGETARCH}") | ||
/qemu.sh "${arch}" softmmu | ||
rm "${0}" | ||
} | ||
|
||
main "${@}" |
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
Oops, something went wrong.