@@ -6,21 +6,7 @@ cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
66
77set (AWS_OTA_SIGNATURE_TYPE "RSA-3072" CACHE STRING "Supported algorithms for signature validation [RSA-2048, RSA-3072, EC-P256, EC-P384]" )
88
9- # From: ota-for-aws-iot-embedded-sdk/source/include/ota_appversion32.h
10- # struct version
11- # {
12- # uint8_t major; /*!< @brief Major version number of the firmware (X in firmware version X.Y.Z). */
13- # uint8_t minor; /*!< @brief Minor version number of the firmware (Y in firmware version X.Y.Z). */
14- #
15- # uint16_t build; /*!< @brief Build of the firmware (Z in firmware version X.Y.Z). */
16- # } x; /*!< @brief Version number of the firmware. */
17-
18- # AWS OTA client does not use the SemVer PATCH version.
19- # Because of this, if only PATCH version is changed then the OTA will be rejected
20- # due to same firmware version.
21- # We will therefore change the build version from TF-M.
229set (MCUBOOT_IMAGE_VERSION_NS "0.0.1+10" )
23- set (MCUBOOT_IMAGE_VERSION_NS_UPDATE "0.0.1+20" )
2410set (MCUBOOT_IMAGE_NUMBER 2 CACHE STRING "Total number of firmware images" )
2511set (DEFAULT_MCUBOOT_FLASH_MAP ON )
2612
@@ -56,7 +42,6 @@ list(APPEND CMAKE_MODULE_PATH ${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/compon
5642list (APPEND CMAKE_MODULE_PATH ${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR} /components/security/trusted_firmware-m/integration/cmake)
5743include (SetLinkerOptions)
5844include (AWSIoTHelpers)
59- include (GenerateAWSUpdateDigestAndSignature)
6045include (MergeTfmImages)
6146include (SignTfmImage)
6247
@@ -110,7 +95,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
11095 freertos-ota-pal-psa
11196 fri-bsp
11297 helpers-events
113- ota-update
11498 provisioning-lib
11599 mbedtls
116100 tfm-ns-interface
@@ -139,18 +123,6 @@ iot_reference_arm_corstone3xx_tf_m_sign_image(
139123 TRUE
140124)
141125
142- # The update image is not padded to fill the whole slot (no --pad), because
143- # 1) the image to download is smaller without padding
144- # 2) the trailer that keeps track of boot and update statuses should not be overwritten
145- iot_reference_arm_corstone3xx_tf_m_sign_image(
146- ${CMAKE_PROJECT_NAME}
147- "ns_image"
148- ${CMAKE_PROJECT_NAME} -update_signed
149- ${MCUBOOT_IMAGE_VERSION_NS_UPDATE}
150- "${BINARY_DIR} /api_ns/image_signing/layout_files/signing_layout_ns.o"
151- FALSE
152- )
153-
154126# A user project that consumes the ARM FRI needs to explicitly provide
155127# addresses in order to merge images for TF-M. The addresses cannot
156128# be easily programmatically extracted as they are defined in the linker
@@ -160,11 +132,3 @@ iot_reference_arm_corstone3xx_tf_m_merge_images(
160132 ${NS_PROVISIONING_BUNDLE_LOAD_ADDRESS}
161133 ${CMAKE_BINARY_DIR} /helpers/provisioning/provisioning_data.bin
162134)
163-
164- # Generate the AWS OTA update digest and signature
165- iot_reference_arm_corstone3xx_generate_aws_update_digest_and_signature(
166- ${CMAKE_PROJECT_NAME}
167- ${CMAKE_PROJECT_NAME} -update_signed
168- update-digest
169- update-signature
170- )
0 commit comments