From a82b69e087ef1fc23eb72b20cafb7bfb1538f216 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Tue, 3 Oct 2017 03:13:35 +0200 Subject: image_type_tezi: configurable payload offsets Use configurable rather than hard-coded boot ROM and SPL payload offsets. Signed-off-by: Marcel Ziswiler Acked-by: Stefan Agner --- classes/image_type_tezi.bbclass | 6 ++++-- 1 file 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 [ -- cgit v1.2.3