Skip to content

Commit bb527f9

Browse files
committed
Fix armel/armhf combo problem
1 parent e8f6898 commit bb527f9

File tree

4 files changed

+73
-15
lines changed

4 files changed

+73
-15
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pipeline {
1515
sh "docker logout"
1616
} catch (err) {}
1717
}
18-
sh "docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile system "
18+
sh "docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile." + DOCKER_ARCH + " system "
1919
}
2020
}
2121
stage("Build cross-compilation environment") {

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ The output consists of these parts:
2525
1. Install [Docker](https://docs.docker.com/engine/installation/) for your operating system.
2626
2. Build the jdk cross-compilation OS:
2727
```sh
28-
sudo docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile system
28+
sudo docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile.armel system # ONLY FOR EV3
29+
sudo docker build -t ev3dev-lang-java:jdk-stretch -f system/Dockerfile.armhf system # ONLY FOR RPI1. RPI2 & RPI3
2930
```
30-
3131
3. Build the jdk cross-compilation environment:
3232
```sh
3333
sudo docker build -t ev3dev-lang-java:jdk-build -f scripts/Dockerfile scripts

system/Dockerfile system/Dockerfile.armel

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ FROM debian:stretch
55
# setup repositories and install required packages
66
COPY apt.sources.list.debian /etc/apt/sources.list
77
COPY ev3dev-archive-keyring.gpg /etc/apt/trusted.gpg.d/
8-
RUN dpkg --add-architecture armel && dpkg --add-architecture armhf && \
8+
RUN dpkg --add-architecture armel && \
99
apt-get -q update && \
1010
DEBIAN_FRONTEND=noninteractive apt-get -q install --yes --no-install-recommends \
1111
bash-completion \
1212
ca-certificates \
1313
cmake \
1414
build-essential \
15-
crossbuild-essential-armel crossbuild-essential-armhf \
15+
crossbuild-essential-armel \
1616
gdb-multiarch \
1717
less \
1818
man-db \
@@ -24,16 +24,16 @@ RUN dpkg --add-architecture armel && dpkg --add-architecture armhf && \
2424
vim \
2525
wget \
2626
xz-utils \
27-
libcups2-dev:armel libcups2-dev:armhf \
28-
libfreetype6-dev:armel libfreetype6-dev:armhf \
29-
libfontconfig1-dev:armel libfontconfig1-dev:armhf \
30-
libasound2-dev:armel libasound2-dev:armhf \
31-
libx11-dev:armel libx11-dev:armhf \
32-
libxext-dev:armel libxext-dev:armhf \
33-
libxrender-dev:armel libxrender-dev:armhf \
34-
libxtst-dev:armel libxtst-dev:armhf \
35-
libxt-dev:armel libxt-dev:armhf \
36-
libffi-dev:armel libffi-dev:armhf \
27+
libcups2-dev:armel \
28+
libfreetype6-dev:armel \
29+
libfontconfig1-dev:armel \
30+
libasound2-dev:armel \
31+
libx11-dev:armel \
32+
libxext-dev:armel \
33+
libxrender-dev:armel \
34+
libxtst-dev:armel \
35+
libxt-dev:armel \
36+
libffi-dev:armel \
3737
curl \
3838
make \
3939
m4 \

system/Dockerfile.armhf

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
FROM debian:stretch
2+
3+
# this is a customized version of ev3dev-stretch-cross image
4+
5+
# setup repositories and install required packages
6+
COPY apt.sources.list.debian /etc/apt/sources.list
7+
COPY ev3dev-archive-keyring.gpg /etc/apt/trusted.gpg.d/
8+
RUN dpkg --add-architecture armhf && \
9+
apt-get -q update && \
10+
DEBIAN_FRONTEND=noninteractive apt-get -q install --yes --no-install-recommends \
11+
bash-completion \
12+
ca-certificates \
13+
cmake \
14+
build-essential \
15+
crossbuild-essential-armhf \
16+
gdb-multiarch \
17+
less \
18+
man-db \
19+
nano \
20+
pkg-config \
21+
qemu-user-static \
22+
sudo \
23+
tree \
24+
vim \
25+
wget \
26+
xz-utils \
27+
libcups2-dev:armhf \
28+
libfreetype6-dev:armhf \
29+
libfontconfig1-dev:armhf \
30+
libasound2-dev:armhf \
31+
libx11-dev:armhf \
32+
libxext-dev:armhf \
33+
libxrender-dev:armhf \
34+
libxtst-dev:armhf \
35+
libxt-dev:armhf \
36+
libffi-dev:armhf \
37+
curl \
38+
make \
39+
m4 \
40+
cpio \
41+
gawk \
42+
file \
43+
zip \
44+
pigz \
45+
unzip \
46+
procps \
47+
autoconf \
48+
autoconf-archive \
49+
automake \
50+
autotools-dev \
51+
mercurial \
52+
zlib1g-dev
53+
54+
# prepare a nonroot user
55+
COPY compiler.sudoers /etc/sudoers.d/compiler
56+
RUN chmod 0440 /etc/sudoers.d/compiler && \
57+
adduser --disabled-password --gecos \"\" compiler && \
58+
usermod -a -G sudo compiler

0 commit comments

Comments
 (0)