-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OIS] Open IoT SDK platform environment (#22992)
* [OIS] Add Open IoT SDK development environment to the Matter project Bump cmake version to 3.23.1 and extend libraries layer in chip-build Docker image. Remove Cmake version overriding in scripts/python.json. Create Docker image for Open IoT SDK platform. Forward Open IoT SDK components to VScode Docker image. Add necessary paths to devcontainer Docker file. Bump Docker image version. Add Open IoT SDK to docker image workflow Signed-off-by: ATmobica <[email protected]> * [OIS] Add Open IoT SDK sources to third_party Add SDK and storage sources as submodules to third_part/open-iot-sdk directory. Add Open IoT SDK platfrom to checkout_submodules.py script. Signed-off-by: ATmobica <[email protected]> * [OIS] Add Open IoT SDK Python environment requirements Create Open IoT SDK Python requirements. Add pytest-json-report to pigweed Python environment. Signed-off-by: ATmobica <[email protected]> Signed-off-by: ATmobica <[email protected]>
- Loading branch information
Showing
17 changed files
with
107 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
integrations/docker/images/chip-build-openiotsdk/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
ARG VERSION=latest | ||
FROM connectedhomeip/chip-build:${VERSION} as build | ||
|
||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
wget=1.20.3-1ubuntu2 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& : # last line | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Download ARM GCC toolchain 10.3-2021.10 | ||
RUN set -x \ | ||
&& wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 \ | ||
&& tar -xjf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -C /opt \ | ||
&& rm -r gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 \ | ||
&& : # last line | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Install FVP Corstone 300 | ||
RUN set -x \ | ||
&& wget -q https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloads/OSS/FVP/Corstone-300/FVP_Corstone_SSE-300_11.16_26.tgz \ | ||
&& tar -xzf FVP_Corstone_SSE-300_11.16_26.tgz \ | ||
&& ./FVP_Corstone_SSE-300.sh --i-agree-to-the-contained-eula -d /opt/FVP_Corstone_SSE-300 -f --no-interactive \ | ||
&& rm -r FVP_Corstone_SSE-300_11.16_26.tgz FVP_Corstone_SSE-300.sh license_terms \ | ||
&& : # last line | ||
|
||
FROM connectedhomeip/chip-build:${VERSION} | ||
|
||
COPY --from=build /opt/gcc-arm-none-eabi-10.3-2021.10/ /opt/gcc-arm-none-eabi-10.3-2021.10/ | ||
COPY --from=build /opt/FVP_Corstone_SSE-300/ /opt/FVP_Corstone_SSE-300/ | ||
|
||
# Required packages for building, running and testing | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy \ | ||
expect \ | ||
telnet \ | ||
srecord \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& : # last line | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Configure environment variables | ||
ENV FVP_CORSTONE_300_PATH=/opt/FVP_Corstone_SSE-300 | ||
ENV ARM_GCC_TOOLCHAIN_PATH=/opt/gcc-arm-none-eabi-10.3-2021.10 | ||
|
||
ENV PATH="${PATH}:${FVP_CORSTONE_300_PATH}/models/Linux64_GCC-6.4:${ARM_GCC_TOOLCHAIN_PATH}/bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../chip-build/version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.6.03 Version bump reason: [Ameba] Replace C2 notify with indicate as required by Matter spec | ||
0.6.04 Version bump reason: [OIS] Add Open IoT SDK Docker image integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
'webos', | ||
'mw320', | ||
'genio', | ||
'openiotsdk', | ||
]) | ||
|
||
Module = namedtuple('Module', 'name path platforms') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,6 @@ | |
"path": "infra/3pp/tools/cpython3/${platform}", | ||
"platforms": ["mac-amd64", "windows-amd64"], | ||
"tags": ["version:[email protected]"] | ||
}, | ||
{ | ||
"path": "fuchsia/third_party/cmake/${platform}", | ||
"platforms": ["mac-amd64", "linux-amd64"], | ||
"tags": ["version:3.20.20210428-g857373c"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest-json-report>=1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule sdk
added at
e71066
Submodule storage
added at
b5e4ed