-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into updateWordList
- Loading branch information
Showing
225 changed files
with
2,626 additions
and
1,501 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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: | ||
- | ||
|
@@ -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: | ||
- | ||
|
@@ -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: | ||
|
@@ -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 |
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,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 |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.