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

build commands for arm64 #12

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
6 changes: 4 additions & 2 deletions nrfconnect-chip/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FROM ${BASE}

ARG NCS_REVISION="main"
ARG CHIP_REVISION="master"
ARG GN_BUILD_URL="https://chrome-infra-packages.appspot.com/dl/gn/gn/linux-amd64/+/latest"
ARG GN_BUILD_URL="https://chrome-infra-packages.appspot.com/dl/gn/gn/linux-arm64/+/latest"

ARG USERNAME="build"
ARG GROUPNAME=${USERNAME}
Expand All @@ -50,7 +50,7 @@ RUN set -x \
#
&& chmod 777 /tmp && apt-get update \
&& apt-get -y install autoconf \
&& apt-get -y install --no-install-recommends sudo make g++ g++-multilib \
&& apt-get -y install --no-install-recommends sudo make g++ gcc-multilib-arm-linux-gnueabi gcc-multilib-arm-linux-gnueabihf \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, you probably don't need both, but I didn't spend the time to check which one is needed.

libssl-dev libtool libdbus-1-dev libdbus-glib-1-dev libavahi-client-dev \
libpython3-dev libgirepository-1.0-1 python3-venv nano screen python-is-python3\
#
Expand All @@ -69,6 +69,8 @@ RUN set -x \
&& python3 -m pip install --no-cache-dir lark \
&& python3 -m pip install --no-cache-dir stringcase \
#
# I'm hit by https://gitlab.kitware.com/cmake/cmake/-/issues/23187, so updating cmake
&& python3 -m pip install cmake==3.25.0 \
# Cleanup
#
&& apt-get -y clean && apt-get -y autoremove \
Expand Down
18 changes: 9 additions & 9 deletions nrfconnect-toolchain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@

FROM ubuntu:20.04

ARG TOOLCHAIN_MD5="fe0029de4f4ec43cf7008944e34ff8cc"
ARG TOOLCHAIN_URL="https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2"
ARG NRF_TOOLS_SHA256="3626416b777e89282f3baea71ef7ba9eceb8ef36aff6fe06dbcc88f7cfe0b961"
ARG NRF_TOOLS_URL="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-15-2/nrf-command-line-tools-10.15.2_Linux-amd64.zip"
ARG TOOLCHAIN_MD5="0dfa059aae18fcf7d842e30c525076a4"
ARG TOOLCHAIN_URL="https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-aarch64-linux.tar.bz2"
ARG NRF_TOOLS_SHA256="30D83885F821F2053BDF42044D8D132F586AF1AE6C911F8408554A4980D21243"
ARG NRF_TOOLS_URL="https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-15-4/nrf-command-line-tools-10.15.4_arm64.zip"
ARG NCS_REVISION="main"

RUN set -x \
#
# Install apt packages (gcc and libpython3-dev are temporarily needed to install some pip modules)
# Install apt packages (gcc and libpython3-dev and clang and build-essential are temporarily needed to install some pip modules)
#
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends bzip2 unzip curl ninja-build python3-pip git device-tree-compiler libusb-1.0-0 libncurses5 \
&& DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends gcc libpython3-dev libsm6 \
&& DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends gcc libpython3-dev clang build-essential libsm6 \
#
# nRF Tools for flashing software on Nordic devices, and accessing device logs
#
Expand All @@ -51,8 +51,8 @@ RUN set -x \
&& curl -L -o tools.zip ${NRF_TOOLS_URL} \
&& sha256sum -c tools.zip.sha256 \
&& unzip tools.zip \
&& dpkg -i nrf-command-line-tools_*_amd64.deb \
&& dpkg -i JLink_Linux_*x86_64.deb) \
&& dpkg -i nrf-command-line-tools_*_arm64.deb \
&& dpkg -i JLink_Linux_*arm64.deb) \
#
# GCC ARM Embedded Toolchain
#
Expand All @@ -78,7 +78,7 @@ RUN set -x \
#
# Cleanup
#
&& DEBIAN_FRONTEND=noninteractive apt-get -yq remove gcc libpython3-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get -yq remove gcc libpython3-dev clang build-essential \
&& DEBIAN_FRONTEND=noninteractive apt-get -yq clean \
&& DEBIAN_FRONTEND=noninteractive apt-get -yq autoremove \
&& rm -rf /tmp/* /var/lib/apt/lists/* ~/.cache/* \
Expand Down
Loading