Skip to content

Commit

Permalink
Merge branch 'main' into updateWordList
Browse files Browse the repository at this point in the history
  • Loading branch information
Skptak authored Jan 5, 2024
2 parents 123d7f8 + 75f27d4 commit c8294aa
Show file tree
Hide file tree
Showing 225 changed files with 2,626 additions and 1,501 deletions.
4 changes: 3 additions & 1 deletion .github/.cSpellWords.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

aesni
AESNI
Armv
Expand Down Expand Up @@ -32,6 +31,7 @@ CSDK
CSRS
ctest
Customisation
DCMAKE
DCMOCK
DCONFIG
decihours
Expand Down Expand Up @@ -76,7 +76,9 @@ LLMNR
lltoa
mbed
Mbed
mbedcrypto
MBEDTLSSL
mbedx509
mcuboot
MCUBOOT
Merkle
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,33 @@ jobs:
- name: Install GNU Arm toolchain
shell: bash
run: |
sudo apt-get -y install gcc-arm-none-eabi
sudo apt-get -y install tar
pushd $HOME
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz
tar -xf arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz
popd
- name: Generate dummy device credentials
shell: bash
run: |
export IOT_OTA_ENDPOINT="dummy_endpoint"
export IOT_OTA_CLIENT_CERT="dummy_certificate"
export IOT_OTA_CLIENT_PRIV="dummy_priv_key"
export IOT_OTA_CLIENT_PUB="dummy_pub_key"
./ci/generate_credentials.sh -f -p Config/aws_configs
./tools/ci/generate_credentials.sh -f -p applications/aws_iot_example/configs/aws_configs
git config --global user.email "[email protected]"
git config --global user.name "ci"
- name: Build the project
shell: bash
run: |
./Tools/scripts/build.sh aws-iot-example --toolchain GNU --certificate_path $PWD/certificate.pem --private_key_path $PWD/private_key.pem
export PATH=$HOME/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin:$PATH
./tools/scripts/build.sh aws-iot-example --toolchain GNU --certificate_path $PWD/certificate.pem --private_key_path $PWD/private_key.pem
- name: Copy artifacts
shell: bash
run: |
tar -czf gnu_build.tar.gz \
build/Projects/aws-iot-example/aws-iot-example_merged.elf \
build/Projects/aws-iot-example/aws-iot-example-update_signed.bin \
build/Projects/aws-iot-example/update-signature.txt
build/aws-iot-example_merged.elf \
build/aws-iot-example-update_signed.bin \
build/update-signature.txt
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
54 changes: 29 additions & 25 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ default:
image: ${OPEN_IOT_SDK_DOCKER_REGISTRY}/open-iot-sdk:${OPEN_IOT_SDK_DOCKER_VERSION}

include:
local: '$PWD/ci/pipeline-baseline-fri.yml'
local: '$PWD/tools/ci/pipeline-baseline-fri.yml'

variables:
OPEN_IOT_SDK_DOCKER_VERSION: v1
OPEN_IOT_SDK_DOCKER_VERSION: v2
KUBERNETES_CPU_REQUEST: 1
KUBERNETES_MEMORY_REQUEST: 1Gi
GIT_SUBMODULE_STRATEGY: recursive
Expand Down Expand Up @@ -72,20 +72,21 @@ build-applications:
stage: build
extends: .base_job
script:
- ./ci/generate_credentials.sh -f -p Config/aws_configs
- export APP_UNDERSCORED=$(echo ${APP} | tr '-' '_')
- ./tools/ci/generate_credentials.sh -f -p applications/${APP_UNDERSCORED}/configs/aws_configs
- git config --global user.email "[email protected]"
- git config --global user.name "ci"
- ./Tools/scripts/build.sh ${APP} --target $TARGET --toolchain $TOOLCHAIN --certificate_path $PWD/certificate.pem --private_key_path $PWD/private_key.pem
- ./tools/scripts/build.sh ${APP} --target $TARGET --toolchain $TOOLCHAIN --certificate_path $PWD/certificate.pem --private_key_path $PWD/private_key.pem
- |
if [ $APP == "aws-iot-example" ];then
tar -czf ${TARGET}_${APP}_${TOOLCHAIN}_build.tar.gz \
build/Projects/${APP}/${APP}_merged.elf \
build/Projects/${APP}/${APP}-update_signed.bin \
build/Projects/${APP}/update-signature.txt \
Config/aws_configs
build/${APP}_merged.elf \
build/${APP}-update_signed.bin \
build/update-signature.txt \
applications/${APP_UNDERSCORED}/configs/aws_configs
else
tar -czf ${TARGET}_${APP}_${TOOLCHAIN}_build.tar.gz \
build/Projects/${APP}/${APP}_merged.elf
build/${APP}_merged.elf
fi
parallel:
matrix:
Expand All @@ -101,14 +102,15 @@ test-applications-output:
extends: .test_job
script:
- tar xf ${TARGET}_${APP}_${TOOLCHAIN}_build.tar.gz
- export APP_UNDERSCORED=$(echo ${APP} | tr '-' '_')
- |
pytest -s Tools/tests/test_application_output.py \
--build-artefacts-path "build/Projects/${APP}" \
pytest -s tools/tests/test_application_output.py \
--build-artefacts-path "build" \
--fvp $FVP_BIN \
--merged-elf-name "${APP}_merged.elf" \
--timeout-seconds 600 \
--pass-output-file "Projects/${APP}/tests/pass_output.log" \
--fail-output-file "Projects/${APP}/tests/fail_output.log"
--pass-output-file "applications/${APP_UNDERSCORED}/tests/pass_output.log" \
--fail-output-file "applications/${APP_UNDERSCORED}/tests/fail_output.log"
parallel:
matrix:
-
Expand All @@ -119,16 +121,17 @@ test-ota:
extends: .test_job
script:
- tar xf ${TARGET}_${APP}_${TOOLCHAIN}_build.tar.gz
- export APP_UNDERSCORED=$(echo ${APP} | tr '-' '_')
- |
pytest -s Tools/tests/test_ota.py \
--build-artefacts-path "build/Projects/${APP}" \
pytest -s tools/tests/test_ota.py \
--build-artefacts-path "build" \
--fvp $FVP_BIN \
--credentials-path "Config/aws_configs" \
--credentials-path "applications/${APP_UNDERSCORED}/configs/aws_configs" \
--merged-elf-name "${APP}_merged.elf" \
--signed-update-bin-name "${APP}-update_signed.bin" \
--timeout-seconds 900 \
--pass-output-file "Projects/${APP}/tests/pass_output.log" \
--fail-output-file "Projects/${APP}/tests/fail_output.log"
--pass-output-file "applications/${APP_UNDERSCORED}/tests/pass_output.log" \
--fail-output-file "applications/${APP_UNDERSCORED}/tests/fail_output.log"
parallel:
matrix:
-
Expand All @@ -142,19 +145,20 @@ integration-tests:
rules:
- if: ( $SCHEDULED_JOB_TO_RUN == "integration-tests" )
script:
- ./ci/generate_credentials.sh -f -p Config/aws_configs
- export APP_UNDERSCORED=$(echo ${APP} | tr '-' '_')
- ./tools/ci/generate_credentials.sh -f -p applications/${APP_UNDERSCORED}/configs/aws_configs
- git config --global user.email "[email protected]"
- git config --global user.name "ci"
- ./Tools/scripts/build.sh -q ${APP}
- pushd Middleware/FreeRTOS/FreeRTOS-Libraries-Integration-Tests/tools/echo_server
- ./tools/scripts/build.sh -q ${APP}
- pushd components/tools/freertos_libraries_integration_tests/library/tools/echo_server
- go run echo_server.go&
- popd
- sleep 1
- |
pytest -s Tools/tests/test_integration.py \
--build-artefacts-path "build/Projects/${APP}" \
pytest -s tools/tests/test_integration.py \
--build-artefacts-path "build" \
--fvp $FVP_BIN \
--credentials-path "Config/aws_configs" \
--credentials-path "applications/${APP_UNDERSCORED}/configs/aws_configs" \
--merged-elf-name "${APP}-tests_merged.elf" \
--signed-update-bin-name "${APP}-tests-update_signed.bin"
parallel:
Expand All @@ -172,4 +176,4 @@ aws-cleanup:
rules:
- if: $SCHEDULED_JOB_TO_RUN == "cleanup"
script:
- python -u ./ci/aws_cleanup.py
- python -u ./tools/ci/aws_cleanup.py
102 changes: 51 additions & 51 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
[submodule "Middleware/FreeRTOS/kernel"]
path = Middleware/FreeRTOS/kernel
url = https://github.com/FreeRTOS/FreeRTOS-Kernel.git
[submodule "Middleware/FreeRTOS/FreeRTOS-Libraries-Integration-Tests"]
path = Middleware/FreeRTOS/FreeRTOS-Libraries-Integration-Tests
url = https://github.com/FreeRTOS/FreeRTOS-Libraries-Integration-Tests.git
[submodule "Middleware/ARM/TF-M/trusted-firmware-m"]
path = Middleware/ARM/TF-M/trusted-firmware-m
url = https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git
[submodule "toolchains"]
path = toolchains
url = https://git.gitlab.arm.com/iot/open-iot-sdk/toolchain.git
[submodule "Bsp/arm-corstone-platform-bsp"]
path = Bsp/arm-corstone-platform-bsp
[submodule "arm_corstone_platform_bsp"]
path = bsp/library
url = https://git.gitlab.arm.com/iot/open-iot-sdk/arm-corstone-platform-bsp.git
[submodule "Middleware/ARM/mbedtls-lib/mbedtls"]
path = Middleware/ARM/mbedtls-lib/mbedtls
url = https://github.com/Mbed-TLS/mbedtls.git
[submodule "Middleware/ARM/IoT_Socket-lib/IoT_Socket"]
path = Middleware/ARM/IoT_Socket-lib/IoT_Socket
[submodule "backoff_algorithm"]
path = components/connectivity/backoff_algorithm/library
url = https://github.com/FreeRTOS/backoffAlgorithm.git
[submodule "corejson"]
path = components/aws_iot/corejson/library
url = https://github.com/FreeRTOS/coreJSON.git
[submodule "coremqtt"]
path = components/aws_iot/coremqtt/library
url = https://github.com/FreeRTOS/coreMQTT.git
[submodule "coremqtt_agent"]
path = components/aws_iot/coremqtt_agent/library
url = https://github.com/FreeRTOS/coreMQTT-Agent.git
[submodule "corepkcs11"]
path = components/aws_iot/corepkcs11/library
url = https://github.com/FreeRTOS/corePKCS11.git
[submodule "iot_socket"]
path = components/connectivity/iot_socket/library
url = https://github.com/MDK-Packs/IoT_Socket.git
[submodule "Middleware/ARM/IoT_VSocket-lib/AVH"]
path = Middleware/ARM/IoT_VSocket-lib/AVH
[submodule "iot_vsocket"]
path = components/connectivity/iot_vsocket/library
url = https://github.com/ARM-software/AVH.git
[submodule "Middleware/ARM/freertos-pkcs11-psa-lib/freertos-pkcs11-psa"]
path = Middleware/ARM/freertos-pkcs11-psa-lib/freertos-pkcs11-psa
url = https://github.com/Linaro/freertos-pkcs11-psa.git
[submodule "Middleware/ARM/freertos-ota-pal-psa-lib/freertos-ota-pal-psa"]
path = Middleware/ARM/freertos-ota-pal-psa-lib/freertos-ota-pal-psa
[submodule "freertos_kernel"]
path = components/freertos_kernel/library
url = https://github.com/FreeRTOS/FreeRTOS-Kernel.git
[submodule "freertos_libraries_integration_tests"]
path = components/tools/freertos_libraries_integration_tests/library
url = https://github.com/FreeRTOS/FreeRTOS-Libraries-Integration-Tests.git
[submodule "freertos_ota_pal_psa"]
path = components/security/freertos_ota_pal_psa/library
url = https://github.com/Linaro/freertos-ota-pal-psa.git
[submodule "Middleware/AWS/coreMQTT-Agent"]
path = Middleware/AWS/coreMQTT-Agent
url = https://github.com/FreeRTOS/coreMQTT-Agent
[submodule "Middleware/AWS/coreMQTT"]
path = Middleware/AWS/coreMQTT
url = https://github.com/FreeRTOS/coreMQTT.git
[submodule "Middleware/AWS/coreJSON"]
path = Middleware/AWS/coreJSON
url = https://github.com/FreeRTOS/coreJSON.git
[submodule "Middleware/AWS/corePKCS11"]
path = Middleware/AWS/corePKCS11
url = https://github.com/FreeRTOS/corePKCS11.git
[submodule "Middleware/AWS/backoffAlgorithm"]
path = Middleware/AWS/backoffAlgorithm
url = https://github.com/FreeRTOS/backoffAlgorithm.git
[submodule "Middleware/AWS/ota-for-aws-iot-embedded-sdk"]
path = Middleware/AWS/ota-for-aws-iot-embedded-sdk
[submodule "freertos_plus_tcp"]
path = components/connectivity/freertos_plus_tcp/library
url = https://github.com/FreeRTOS/FreeRTOS-Plus-TCP.git
[submodule "freertos_pkcs11_psa"]
path = components/security/freertos_pkcs11_psa/library
url = https://github.com/Linaro/freertos-pkcs11-psa.git
[submodule "mbedtls"]
path = components/security/mbedtls/library
url = https://github.com/Mbed-TLS/mbedtls.git
[submodule "open_iot_sdk_toolchain"]
path = components/tools/open_iot_sdk_toolchain/library
url = https://git.gitlab.arm.com/iot/open-iot-sdk/toolchain.git
[submodule "ota_for_aws_iot_embedded_sdk"]
path = components/aws_iot/ota_for_aws_iot_embedded_sdk/library
url = https://github.com/aws/ota-for-aws-iot-embedded-sdk.git
[submodule "Middleware/AWS/tinycbor"]
path = Middleware/AWS/tinycbor
url = https://github.com/intel/tinycbor
[submodule "Middleware/Unity"]
path = Middleware/Unity
[submodule "tinycbor"]
path = components/aws_iot/tinycbor/library
url = https://github.com/intel/tinycbor.git
[submodule "trusted_firmware-m"]
path = components/security/trusted_firmware-m/library
url = https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git
[submodule "unity"]
path = components/tools/unity/library
url = https://github.com/ThrowTheSwitch/Unity.git
[submodule "Middleware/FreeRTOS/FreeRTOS-Plus-TCP-lib/FreeRTOS-Plus-TCP"]
path = Middleware/FreeRTOS/FreeRTOS-Plus-TCP-lib/FreeRTOS-Plus-TCP
url = https://github.com/FreeRTOS/FreeRTOS-Plus-TCP.git
32 changes: 18 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@
exclude: >
.patch|
(?x)^(
Bsp/arm-corstone-platform-bsp/|
Middleware/ARM/freertos-ota-pal-psa-lib/freertos-ota-pal-psa/|
Middleware/ARM/freertos-pkcs11-psa-lib/freertos-pkcs11-psa/|
Middleware/ARM/IoT_Socket-lib/IoT_Socket/|
Middleware/ARM/IoT_VSocket-lib/AVH/|
Middleware/ARM/IoT_VSocket-lib/transport_interface_api.h|
Middleware/ARM/mbedtls-lib/|
Middleware/ARM/TF-M/trusted-firmware-m/|
Middleware/AWS/|
Middleware/FreeRTOS/|
Middleware/Unity/
bsp/library/|
components/security/freertos_ota_pal_psa/library/|
components/security/freertos-pkcs11-psa/library/|
components/connectivity/iot_socket/library/|
components/connectivity/iot_vsocket/library/|
components/connectivity/iot_vsocket/integration/inc/transport_interface_api.h|
components/security/mbedtls/|
components/security/trusted_firmware-m/library/|
components/aws_iot/|
components/connectivity/backoff_algorithm/|
applications/helpers/logging/|
components/freertos_kernel/|
components/connectivity/freertos_plus_tcp/|
components/tools/freertos_libraries_integration_tests/|
components/tools/unity/
)
repos:
Expand All @@ -33,7 +37,7 @@ repos:
hooks:
- id: gitlint
args:
- "--config ci/gitlint/.gitlint"
- "--config tools/ci/gitlint/.gitlint"
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
Expand Down Expand Up @@ -76,7 +80,7 @@ repos:
name: uncrustify
description: Run 'uncrustify' C/C++ code formatter
language: script
entry: Tools/scripts/run_uncrustify.sh
entry: tools/scripts/run_uncrustify.sh
require_serial: true
- repo: local
hooks:
Expand All @@ -92,5 +96,5 @@ repos:
name: dependencies-check
description: Checks listed dependencies in manifest.yml
language: script
entry: Tools/scripts/run_dependencies_check.sh
entry: tools/scripts/run_dependencies_check.sh
require_serial: true
41 changes: 0 additions & 41 deletions Bsp/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit c8294aa

Please sign in to comment.