1. 09 Apr, 2019 1 commit
  2. 08 Apr, 2019 6 commits
    • Antonio Niño Díaz's avatar
      Merge changes from topic "jh/cotdesc" into integration · 999adb94
      Antonio Niño Díaz authored
      * changes:
        Document changes to auth-framework
        cot-desc: optimise memory further
        Reduce memory needed for CoT description
      999adb94
    • Joel Hutton's avatar
      Document changes to auth-framework · 699475ac
      Joel Hutton authored
      
      
      The data structures in the auth-framework were changed by the previous
      patch, and need to be updated.
      
      Change-Id: Icfad2ac688d03d32aa93e45f930a375abbc164a9
      Signed-off-by: default avatarJoel Hutton <Joel.Hutton@Arm.com>
      699475ac
    • Joel Hutton's avatar
      cot-desc: optimise memory further · 30070427
      Joel Hutton authored
      
      
      This changes the auth_img_desc_t struct to have pointers to struct
      arrays instead of struct arrays. This saves memory as many of these
      were never used, and can be NULL pointers. Note the memory savings are
      only when these arrays are not initialised, as it is assumed these
      arrays are fixed length. A possible future optimisation could allow for
      variable length.
      
      memory diff:
      bl1:        bl2:
          text        text
            -12         -12
          bss         bss
            -1463       0
          data        data
            -56         -48
          rodata      rodata
            -5688       -2592
          total       total
            -7419       -2652
      
      Change-Id: I8f9bdedf75048b8867f40c56381e3a6dc6402bcc
      Signed-off-by: default avatarJoel Hutton <Joel.Hutton@Arm.com>
      30070427
    • Joel Hutton's avatar
      Reduce memory needed for CoT description · 0b6377d1
      Joel Hutton authored
      
      
      When Trusted Board Boot is enabled, we need to specify the Chain of
      Trust (CoT) of the BL1 and BL2 images. A CoT consists of an array
      of image descriptors. The authentication module assumes that each
      image descriptor in this array is indexed by its unique image
      identifier. For example, the Trusted Boot Firmware Certificate has to
      be at index [TRUSTED_BOOT_FW_CERT_ID].
      
      Unique image identifiers may not necessarily be consecutive. Also,
      a given BL image might not use all image descriptors. For example, BL1
      does not need any of the descriptors related to BL31. As a result, the
      CoT array might contain holes, which unnecessarily takes up space in
      the BL binary.
      
      Using pointers to auth_img_desc_t structs (rather than structs
      themselves) means these unused elements only use 1 pointer worth of
      space, rather than one struct worth of space. This patch also changes
      the code which accesses this array to reflect the change to pointers.
      
      Image descriptors not needed in BL1 or BL2 respectively are also
      ifdef'd out in this patch. For example, verifying the BL31 image is
      the responsibility of BL2 so BL1 does not need any of the data
      structures describing BL31.
      
      memory diff:
      bl1:        bl2:
          text        text
            -20         -20
          bss         bss
            -1463       0
          data        data
            -256        -48
          rodata      rodata
            -5240       -1952
          total       total
            -6979       -2020
      
      Change-Id: I163668b174dc2b9bbb183acec817f2126864aaad
      Signed-off-by: default avatarJoel Hutton <Joel.Hutton@Arm.com>
      0b6377d1
    • Antonio Niño Díaz's avatar
    • Jacky Bai's avatar
      plat: imx8m: remove deprecated code include · 43c733b1
      Jacky Bai authored
      
      
      The 'drivers/console/aarch64/console.S' is not needed,
      so remove it from build to fix the build error when
      'ERROR_DEPRECATED'set.
      
      Change-Id: Id047a355f82fd33298b7e2b49eff289d28eb5b56
      Signed-off-by: default avatarJacky Bai <ping.bai@nxp.com>
      43c733b1
  3. 05 Apr, 2019 2 commits
  4. 04 Apr, 2019 1 commit
  5. 03 Apr, 2019 12 commits
  6. 02 Apr, 2019 18 commits