Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Native binaries for ARMv6 (Pi Zeros) are incompatible.
  • Loading branch information
savageautomate committed Jul 9, 2020
1 parent e508278 commit af89673
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pi4j-builder-1.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ LABEL org.label-schema.version=$BUILDVERSION
LABEL org.label-schema.docker.cmd="docker run --user \"$(id -u):$(id -g)\" --rm --volume $(pwd):/build pi4j/pi4j-builder:$BUILDVERSION"

RUN echo "========================================================="
RUN echo " BUILDING DOCKER Pi4J v1.4 BUILDER IMAGE FOR: $TARGETARCH"
RUN echo " BUILDING DOCKER Pi4J v$BUILDVERSION BUILDER IMAGE FOR: $TARGETARCH"
RUN echo "========================================================="

# ---------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pi4j-builder-2.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ LABEL org.label-schema.version=$BUILDVERSION
LABEL org.label-schema.docker.cmd="docker run --user \"$(id -u):$(id -g)\" --rm --volume $(pwd):/build pi4j/pi4j-builder:$BUILDVERSION"

RUN echo "========================================================="
RUN echo " BUILDING DOCKER Pi4J v2.0 BUILDER IMAGE FOR: $TARGETARCH"
RUN echo " BUILDING DOCKER Pi4J v$BUILDVERSION BUILDER IMAGE FOR: $TARGETARCH"
RUN echo "========================================================="

# ---------------------------------------------------------------------------------
Expand Down
13 changes: 10 additions & 3 deletions pi4j-builder-native/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,25 @@ LABEL org.label-schema.docker.cmd="docker run --user \"$(id -u):$(id -g)\" --rm
RUN apt-get update

# install ARM cross compiler toolchains for 32-bit ARM
RUN apt-get install --yes gcc-arm-linux-gnueabi
#RUN apt-get install --yes gcc-arm-linux-gnueabi

# install ARM cross compiler toolchains for 32-bit ARMHF
RUN apt-get install --yes gcc-arm-linux-gnueabihf
#RUN apt-get install --yes gcc-arm-linux-gnueabihf

# install ARM cross compiler toolchains for 32-bit ARM64
# install ARM cross compiler toolchains for 64-bit ARM64
# (only install on amd64 platforms)
RUN if [ "$TARGETARCH" = "amd64" ] ; then apt-get --yes install gcc-aarch64-linux-gnu ; fi

# install RaspberryPi ARM cross compiler toolchains for 32-bit ARMHF (ARMv6+ARMv7+ARMv8)
# (get the latest RPI cross compiler tools from the GitHub repo)
RUN git clone --progress --verbose https://github.com/raspberrypi/tools.git --depth=1 /opt/rpi-tools

# clean APT cache
RUN apt-get clean

# configure the PATH for ARM cross compiler toolchains for 32-bit ARMHF (ARMv6 + ARMv7)
ENV PATH="/opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:${PATH}"

# configure build time environment variables
ENV PI4J_BUILDER_NATIVE="$BUILDVERSION"
ENV PI4J_BUILDER_DATE="$BUILDDATE"
Expand Down

0 comments on commit af89673

Please sign in to comment.