Skip to content

Commit 9a76934

Browse files
committed
Add redox build to cross
1 parent 6d8520d commit 9a76934

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

src/ci/docker/cross/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1919
bzip2 \
2020
patch \
2121
libssl-dev \
22-
pkg-config
22+
pkg-config \
23+
software-properties-common \
24+
apt-transport-https
2325

2426
COPY scripts/dumb-init.sh /scripts/
2527
RUN sh /scripts/dumb-init.sh
@@ -38,6 +40,9 @@ RUN ./install-mips-musl.sh
3840
COPY cross/install-mipsel-musl.sh /tmp/
3941
RUN ./install-mipsel-musl.sh
4042

43+
COPY cross/install-x86_64-redox.sh /tmp/
44+
RUN ./install-x86_64-redox.sh
45+
4146
ENV TARGETS=asmjs-unknown-emscripten
4247
ENV TARGETS=$TARGETS,wasm32-unknown-emscripten
4348
ENV TARGETS=$TARGETS,x86_64-rumprun-netbsd
@@ -47,10 +52,12 @@ ENV TARGETS=$TARGETS,arm-unknown-linux-musleabi
4752
ENV TARGETS=$TARGETS,arm-unknown-linux-musleabihf
4853
ENV TARGETS=$TARGETS,armv7-unknown-linux-musleabihf
4954
ENV TARGETS=$TARGETS,sparc64-unknown-linux-gnu
55+
ENV TARGETS=$TARGETS,x86_64-unknown-redox
5056

5157
ENV CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc \
5258
CC_mips_unknown_linux_musl=mips-openwrt-linux-gcc \
53-
CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc
59+
CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc \
60+
CC_x86_64_unknown_redox=x86_64-unknown-redox-gcc
5461

5562
# Suppress some warnings in the openwrt toolchains we downloaded
5663
ENV STAGING_DIR=/tmp
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2+
# file at the top-level directory of this distribution and at
3+
# http://rust-lang.org/COPYRIGHT.
4+
#
5+
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
# option. This file may not be copied, modified, or distributed
9+
# except according to those terms.
10+
11+
set -ex
12+
13+
apt-key adv --batch --yes --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F
14+
add-apt-repository -y 'deb https://static.redox-os.org/toolchain/apt /'
15+
apt-get update
16+
apt-get install -y x86-64-unknown-redox-gcc

src/ci/docker/dist-x86_64-redox/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2222
RUN apt-key adv --batch --yes --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F && \
2323
add-apt-repository -y 'deb https://static.redox-os.org/toolchain/apt /' && \
2424
apt-get update && \
25-
apt-get install -y x86-64-elf-redox-gcc
25+
apt-get install -y x86-64-unknown-redox-gcc
2626

2727
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
2828
dpkg -i dumb-init_*.deb && \
@@ -34,9 +34,9 @@ RUN curl -o /usr/local/bin/sccache \
3434
chmod +x /usr/local/bin/sccache
3535

3636
ENV \
37-
AR_x86_64_unknown_redox=x86_64-elf-redox-ar \
38-
CC_x86_64_unknown_redox=x86_64-elf-redox-gcc \
39-
CXX_x86_64_unknown_redox=x86_64-elf-redox-g++
37+
AR_x86_64_unknown_redox=x86_64-unknown-redox-ar \
38+
CC_x86_64_unknown_redox=x86_64-unknown-redox-gcc \
39+
CXX_x86_64_unknown_redox=x86_64-unknown-redox-g++
4040

4141
ENV RUST_CONFIGURE_ARGS --target=x86_64-unknown-redox --enable-extended
4242
ENV SCRIPT python2.7 ../x.py dist --target x86_64-unknown-redox

0 commit comments

Comments
 (0)