Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker image for s390x (IBM Z System) cross-compile #351

Merged
merged 2 commits into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,18 @@
}
]
},
{
"platforms": [
{
"dockerfile": "src/ubuntu/18.04/cross/s390x",
"os": "linux",
"osVersion": "bionic",
"tags": {
"ubuntu-18.04-cross-s390x-$(System:TimeStamp)-$(System:DockerfileGitCommitSha)": {}
}
}
]
},
{
"platforms": [
{
Expand Down
9 changes: 9 additions & 0 deletions src/ubuntu/18.04/cross/s390x/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-crossdeps

# Install binutils-s390x-linux-gnu
RUN apt-get update \
&& apt-get install -y \
binutils-s390x-linux-gnu \
&& rm -rf /var/lib/apt/lists/*

ADD rootfs.s390x.tar crossrootfs
3 changes: 3 additions & 0 deletions src/ubuntu/18.04/cross/s390x/hooks/post-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

rm -rf $PWD/rootfs*.tar
5 changes: 5 additions & 0 deletions src/ubuntu/18.04/cross/s390x/hooks/pre-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
$SCRIPTPATH/../../../../build-scripts/build-rootfs.sh ubuntu-18.04 bionic s390x nolldb