Skip to content

Commit c7d30e8

Browse files
components: Add aws-iot-core-mqtt-file-streams-embedded-c component
Add the aws-iot-core-mqtt-file-streams-embedded-c repository as a submodule. This library allows files from a stream (an abstraction for a list of files) to be transferred to an IoT device. It is the second of the two libraries that must be integrated to allow the new modular OTA to be used. In addition, the required integration CMake files to build the component are added. Signed-off-by: Chuyue Luo <[email protected]>
1 parent 701f1a5 commit c7d30e8

File tree

6 files changed

+52
-0
lines changed

6 files changed

+52
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@
7676
[submodule "components/aws_iot/jobs_for_aws_iot_embedded_sdk/library"]
7777
path = components/aws_iot/jobs_for_aws_iot_embedded_sdk/library
7878
url = https://github.com/aws/Jobs-for-AWS-IoT-embedded-sdk.git
79+
[submodule "components/aws_iot/aws_iot_core_mqtt_file_streams_embedded_c/library"]
80+
path = components/aws_iot/aws_iot_core_mqtt_file_streams_embedded_c/library
81+
url = https://github.com/aws/aws-iot-core-mqtt-file-streams-embedded-c/

components/aws_iot/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ if(CONNECTIVITY_STACK STREQUAL "FREERTOS_PLUS_TCP")
1313
add_subdirectory(coresntp)
1414
endif()
1515
add_subdirectory(jobs_for_aws_iot_embedded_sdk)
16+
add_subdirectory(aws_iot_core_mqtt_file_streams_embedded_c)
1617
add_subdirectory(tinycbor)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2024 Arm Limited and/or its affiliates
2+
3+
# SPDX-License-Identifier: MIT
4+
5+
if(BUILD_TESTING AND NOT CMAKE_CROSSCOMPILING)
6+
# Left empty for future mocks.
7+
else()
8+
set(aws-iot-core-mqtt-file-streams-embedded-c_SOURCE_DIR
9+
${CMAKE_CURRENT_LIST_DIR}/library
10+
CACHE INTERNAL
11+
"Path to MQTT File Streams source code"
12+
)
13+
14+
add_subdirectory(integration)
15+
endif()
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2024 Arm Limited and/or its affiliates
2+
3+
# SPDX-License-Identifier: MIT
4+
5+
add_library(aws-iot-core-mqtt-file-streams-embedded-c
6+
${aws-iot-core-mqtt-file-streams-embedded-c_SOURCE_DIR}/source/MQTTFileDownloader_base64.c
7+
${aws-iot-core-mqtt-file-streams-embedded-c_SOURCE_DIR}/source/MQTTFileDownloader_cbor.c
8+
${aws-iot-core-mqtt-file-streams-embedded-c_SOURCE_DIR}/source/MQTTFileDownloader.c
9+
)
10+
11+
target_include_directories(aws-iot-core-mqtt-file-streams-embedded-c
12+
PUBLIC
13+
${aws-iot-core-mqtt-file-streams-embedded-c_SOURCE_DIR}/source/include/
14+
)
15+
16+
target_link_libraries(aws-iot-core-mqtt-file-streams-embedded-c
17+
PUBLIC
18+
corejson
19+
coremqtt
20+
coremqtt-agent
21+
crt-helpers
22+
tinycbor
23+
)
Submodule library added at 05ff5dc

manifest.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,12 @@ dependencies:
237237
type: "git"
238238
url: "https://github.com/aws/Jobs-for-AWS-IoT-embedded-sdk.git"
239239
path: "components/aws_iot/jobs_for_aws_iot_embedded_sdk/library"
240+
- name: "aws-iot-core-mqtt-file-streams-embedded-c"
241+
license: "MIT"
242+
tpip-category: "category-2"
243+
security-risk: "low"
244+
version: "v1.1.0"
245+
repository:
246+
type: "git"
247+
url: "https://github.com/aws/aws-iot-core-mqtt-file-streams-embedded-c.git"
248+
path: "components/aws_iot/aws_iot_core_mqtt_file_streams_embedded_c/library"

0 commit comments

Comments
 (0)