Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | SUMARY = "Corstone1000 platform Image" |
| 2 | DESCRIPTION = "This is the main image which is the container of all the binaries \ |
| 3 | generated for the Corstone1000 platform." |
| 4 | LICENSE = "MIT" |
| 5 | |
| 6 | COMPATIBLE_MACHINE = "corstone1000" |
| 7 | |
| 8 | inherit image |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 9 | inherit wic_nopt tfm_sign_image |
Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame^] | 10 | inherit uefi_capsule |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 11 | |
| 12 | PACKAGE_INSTALL = "" |
| 13 | |
Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame^] | 14 | IMAGE_FSTYPES += "wic wic.nopt uefi_capsule" |
| 15 | |
| 16 | UEFI_FIRMWARE_BINARY = "${PN}-${MACHINE}.${CAPSULE_IMGTYPE}" |
| 17 | UEFI_CAPSULE_CONFIG = "${THISDIR}/files/${PN}-capsule-update-image.json" |
| 18 | CAPSULE_IMGTYPE = "wic.nopt" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 19 | |
| 20 | do_sign_images() { |
| 21 | # Sign TF-A BL2 |
| 22 | sign_host_image ${RECIPE_SYSROOT}/firmware/${TFA_BL2_BINARY} \ |
| 23 | ${TFA_BL2_RE_IMAGE_LOAD_ADDRESS} ${TFA_BL2_RE_SIGN_BIN_SIZE} |
| 24 | |
| 25 | # Update BL2 in the FIP image |
| 26 | cp ${RECIPE_SYSROOT}/firmware/${TFA_FIP_BINARY} . |
Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame^] | 27 | fiptool update --tb-fw \ |
| 28 | ${TFM_IMAGE_SIGN_DEPLOY_DIR}/signed_${TFA_BL2_BINARY} \ |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 29 | ${TFM_IMAGE_SIGN_DIR}/${TFA_FIP_BINARY} |
| 30 | |
| 31 | # Sign the FIP image |
| 32 | sign_host_image ${TFM_IMAGE_SIGN_DIR}/${TFA_FIP_BINARY} \ |
| 33 | ${TFA_FIP_RE_IMAGE_LOAD_ADDRESS} ${TFA_FIP_RE_SIGN_BIN_SIZE} |
| 34 | } |
| 35 | do_sign_images[depends] = "\ |
| 36 | trusted-firmware-a:do_populate_sysroot \ |
| 37 | fiptool-native:do_populate_sysroot \ |
| 38 | " |