Skip to content

59

Compare
Choose a tag to compare
@doanac doanac released this 10 Jan 19:41
conf/imx_hab4: clean up scripts and extra SPL templates

- rename sign-spl.sh -> sign-file.sh
- new usage of sign-file.sh is:
  --cst <cst path/filename> (default: cst)
  --spl <spl binary to sign>
  --m4app <M4 binary to sign>
  --csf-template <template file to use> (default: u-boot-spl-sign.csf-template)
  --key-dir <directory where keys are located> (default: .)
  --fix-sdp-dcd (default: no)
- remove mfgtools csf template
- remove hard-coded block data from std template
- support M4 signing logic

NOTES:
- script will copy the original binary as *.mod
  if needed: modify it for: DCD handling, CSF address injection, etc.
  Make sure we don't touch original binary
- template is turned into *.csf-config
  - translates @@KEY_ROOT@@ into --key-dir setting
  - uses "od" to get the DCD/HAB block information
    and appends this to the config
  - for DCD handling: uses the 0x20 header offset as the first block hex
    (0x2f010000) as mkimage currently has a bug.
- cleans up copied files at the end

Change-Id: Ie7d930040c746991388832fa7d749bf3632e4a0b
Signed-off-by: Michael Scott <[email protected]>