diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-10-03 03:13:35 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-10-03 15:03:33 +0200 |
commit | a82b69e087ef1fc23eb72b20cafb7bfb1538f216 (patch) | |
tree | ff073b78796fa54bd4ff5491190adcbdb9cab9bf /classes | |
parent | 7adf7eab3054561e010c89b9db91888bde49d6a7 (diff) |
image_type_tezi: configurable payload offsets
Use configurable rather than hard-coded boot ROM and SPL payload
offsets.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_type_tezi.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index 828a6e5..422cc6f 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -17,6 +17,8 @@ def rootfs_tezi_emmc(d): from collections import OrderedDict deploydir = d.getVar('DEPLOY_DIR_IMAGE', True) kernel = d.getVar('KERNEL_IMAGETYPE', True) + offset_bootrom = d.getVar('OFFSET_BOOTROM_PAYLOAD', True) + offset_spl = d.getVar('OFFSET_SPL_PAYLOAD', True) imagename = d.getVar('IMAGE_NAME', True) # Calculate size of bootfs... @@ -36,12 +38,12 @@ def rootfs_tezi_emmc(d): bootpart_rawfiles.append( { "filename": d.getVar('SPL_BINARY', True), - "dd_options": "seek=2" + "dd_options": "seek=" + offset_bootrom }) bootpart_rawfiles.append( { "filename": d.getVar('UBOOT_BINARY', True), - "dd_options": "seek=138" if has_spl else "seek=2" + "dd_options": "seek=" + (offset_spl if has_spl else offset_bootrom) }) return [ |