Skip to content

Commit f2a0f11

Browse files
Merge branch 'main' into contributing
2 parents 8bd308e + 0e76a97 commit f2a0f11

File tree

2,093 files changed

+139280
-35946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,093 files changed

+139280
-35946
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
File renamed without changes.

.ci/docker/build.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77

88
set -exu
99

10-
IMAGE_NAME="$1"
10+
FULL_IMAGE_NAME="$1"
1111
shift
1212

13+
IMAGE_NAME=$(echo "${FULL_IMAGE_NAME}" | sed 's/ci-image://')
14+
1315
echo "Building ${IMAGE_NAME} Docker image"
1416

1517
OS=ubuntu
@@ -41,6 +43,10 @@ case "${IMAGE_NAME}" in
4143
ARM_SDK=yes
4244
CLANG_VERSION=12
4345
;;
46+
executorch-ubuntu-22.04-zephyr-sdk)
47+
ZEPHYR_SDK=yes
48+
GCC_VERSION=11
49+
;;
4450
executorch-ubuntu-22.04-qnn-sdk)
4551
QNN_SDK=yes
4652
CLANG_VERSION=12
@@ -85,6 +91,7 @@ docker build \
8591
--build-arg "LINTRUNNER=${LINTRUNNER:-}" \
8692
--build-arg "BUILD_DOCS=${BUILD_DOCS}" \
8793
--build-arg "ARM_SDK=${ARM_SDK:-}" \
94+
--build-arg "ZEPHYR_SDK=${ZEPHYR_SDK:-}" \
8895
--build-arg "QNN_SDK=${QNN_SDK:-}" \
8996
--build-arg "MEDIATEK_SDK=${MEDIATEK_SDK:-}" \
9097
--build-arg "ANDROID_NDK_VERSION=${ANDROID_NDK_VERSION:-}" \
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
36e3dd54effb3f6d13d792029609292fdd5502bb
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5616fa4a68718ead203314a3467f7dd9547153ae
1+
6fc0ad22f0a07b6f38d138861c56a765d5a9bb02

.ci/docker/common/install_conda.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
1313
install_miniconda() {
1414
BASE_URL="https://repo.anaconda.com/miniconda"
1515
CONDA_FILE="Miniconda3-py${PYTHON_VERSION//./}_${MINICONDA_VERSION}-Linux-x86_64.sh"
16-
if [[ $(uname -m) == "aarch64" ]]; then
16+
if [[ $(uname -m) == "aarch64" ]]; then
1717
CONDA_FILE="Miniconda3-py${PYTHON_VERSION//./}_${MINICONDA_VERSION}-Linux-aarch64.sh"
1818
fi
1919

@@ -71,4 +71,8 @@ fix_conda_ubuntu_libstdcxx() {
7171
install_miniconda
7272
install_python
7373
install_pip_dependencies
74-
fix_conda_ubuntu_libstdcxx
74+
# Hack breaks the job on aarch64 but is still necessary everywhere
75+
# else.
76+
if [ "$(uname -m)" != "aarch64" ]; then
77+
fix_conda_ubuntu_libstdcxx
78+
fi
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
2+
#!/bin/bash
3+
# Copyright (c) Meta Platforms, Inc. and affiliates.
4+
# All rights reserved.
5+
#
6+
# This source code is licensed under the BSD-style license found in the
7+
# LICENSE file in the root directory of this source tree.
8+
9+
set -ex
10+
11+
# shellcheck source=/dev/null
12+
source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
13+
14+
# Double check if the NDK version is set
15+
[ -n "${ZEPHYR_SDK}" ]
16+
17+
install_prerequiresites() {
18+
rm /var/lib/dpkg/info/libc-bin.*
19+
apt-get clean
20+
apt-get -y update
21+
apt-get install -y libc-bin
22+
apt-get -y update
23+
apt-get clean
24+
apt-get install --no-install-recommends -y dos2unix
25+
apt-get install --no-install-recommends -y ca-certificates
26+
apt-get install -y --reinstall libc-bin
27+
apt-get install --no-install-recommends -y file
28+
apt-get install --no-install-recommends -y locales
29+
apt-get install --no-install-recommends -y git
30+
apt-get install --no-install-recommends -y build-essential
31+
apt-get install --no-install-recommends -y cmake
32+
apt-get install --no-install-recommends -y ninja-build gperf
33+
apt-get install --no-install-recommends -y device-tree-compiler
34+
apt-get install --no-install-recommends -y wget
35+
apt-get install --no-install-recommends -y curl
36+
apt-get install --no-install-recommends -y xz-utils
37+
apt-get install --no-install-recommends -y dos2unix
38+
apt-get install --no-install-recommends -y vim
39+
apt-get install --no-install-recommends -y nano
40+
apt-get install --no-install-recommends -y mc
41+
apt-get install --no-install-recommends -y openssh-server
42+
apt-get install -y gdb
43+
44+
# Zephyr SDK relies on python 3.12
45+
apt install software-properties-common -y
46+
add-apt-repository ppa:deadsnakes/ppa -y
47+
apt update
48+
apt install -y python3.12 python3.12-dev python3.12-venv python3-pip
49+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
50+
51+
# Upgrade cmake ot 3.24
52+
apt update
53+
apt install cmake
54+
apt install software-properties-common lsb-release
55+
apt update
56+
test -f /usr/share/doc/kitware-archive-keyring/copyright || \
57+
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
58+
"deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/kitware.list > /dev/null
59+
apt update
60+
apt install cmake
61+
62+
# Install additional required software for Zephyr
63+
apt install --no-install-recommends -y ccache \
64+
dfu-util \
65+
python3-setuptools \
66+
python3-tk \
67+
python3-wheel \
68+
make \
69+
gcc \
70+
libsdl2-dev \
71+
libmagic1 \
72+
xterm \
73+
telnet \
74+
net-tools
75+
apt install --no-install-recommends -y gcc-multilib g++-multilib
76+
apt-get clean -y
77+
apt-get autoremove --purge -y
78+
rm -rf /var/lib/apt/lists/*
79+
wget https://apt.kitware.com/kitware-archive.sh && \
80+
chmod +x kitware-archive.sh && \
81+
./kitware-archive.sh && \
82+
rm -f kitware-archive.sh
83+
pip_install --no-cache-dir west
84+
pip_install pyelftools
85+
}
86+
87+
install_prerequiresites

.ci/docker/conda-env-ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake=3.26.4
1+
cmake=3.31.2
22
ninja=1.10.2
33
libuv
44
llvm-openmp

0 commit comments

Comments
 (0)