-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #437 from janvorli/change-cross-alpine-arm-to-3.13
Change ubuntu cross arm alpine to use 3.13 rootfs
- Loading branch information
Showing
5 changed files
with
48 additions
and
1 deletion.
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
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,29 @@ | ||
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-crossdeps | ||
|
||
# Install bison. This is required to build musl-cross-make | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
bison \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Workaround to build a functioning ld.gold which can link for linux-musl arm | ||
RUN cd /tmp \ | ||
&& wget https://ftp.gnu.org/gnu/binutils/binutils-2.31.1.tar.gz \ | ||
&& tar -xf binutils-2.31.1.tar.gz \ | ||
&& cd binutils-2.31.1 \ | ||
&& ./configure \ | ||
--disable-werror \ | ||
--target=armv7-alpine-linux-musleabihf \ | ||
--prefix=/usr \ | ||
--libdir=/lib \ | ||
--disable-multilib \ | ||
--with-sysroot=armv7-alpine-linux-musleabihf \ | ||
--enable-gold=yes \ | ||
--enable-plugins=yes \ | ||
--program-prefix=armv7-alpine-linux-musleabihf- \ | ||
&& make \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -r * | ||
|
||
ADD rootfs.arm.tar crossrootfs |
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 @@ | ||
../../../../build-scripts/build-rootfs-cleanup.sh |
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,5 @@ | ||
#!/usr/bin/env sh | ||
|
||
SCRIPT=$(readlink -f "$0") | ||
SCRIPTPATH=$(dirname "$SCRIPT") | ||
$SCRIPTPATH/../../../../build-scripts/build-rootfs.sh ubuntu-16.04 alpine3.13 arm lldb3.9 |
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