summaryrefslogtreecommitdiff
path: root/meta-google
diff options
context:
space:
mode:
authorClaire Liao <claireliao@google.com>2023-04-12 00:14:28 +0300
committerClaire Liao <claireliao@google.com>2023-04-17 10:12:22 +0300
commit5d48ea29cf3e579fef2ebbd05d2ad41185685e6c (patch)
tree0b89dc3c4697c96699f010d4adf6d0eccdbe8aa9 /meta-google
parentccb905af4c95419ffae8b898c69e846855b6295c (diff)
downloadopenbmc-5d48ea29cf3e579fef2ebbd05d2ad41185685e6c.tar.xz
meta-google: create new partition for hoth-secondary
Tested: After build one platform, cr51-image-layout.json: ``` { "length": 55508992, "name": "rofs", "offset": 7340032, "region_type": [ "STATIC", "WRITE_PROTECTED" ] }, ,{ "length": 1048576, "name": "hoth_secondary", "offset": 62849024, "region_type": [] } ``` Change-Id: Id7869f96ff65625547ff83640e300b2202c4aab8 Signed-off-by: Claire Liao <claireliao@google.com>
Diffstat (limited to 'meta-google')
-rw-r--r--meta-google/classes/image_types_hoth.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-google/classes/image_types_hoth.bbclass b/meta-google/classes/image_types_hoth.bbclass
index 5ad64f932b..e0bce256f2 100644
--- a/meta-google/classes/image_types_hoth.bbclass
+++ b/meta-google/classes/image_types_hoth.bbclass
@@ -3,6 +3,7 @@
FLASH_IMAGE_DESC_OFFSET:hoth = "${@960 if FLASH_SIZE == '65536' else 7232}"
FLASH_HOTH_UPDATE_OFFSET:hoth = "${@1024 if FLASH_SIZE == '65536' else 31744}"
FLASH_HOTH_MAILBOX_OFFSET:hoth = "${@65472 if FLASH_SIZE == '65536' else 7168}"
+FLASH_HOTH_SECONDARY_OFFSET:hoth = "${@61376 if FLASH_SIZE == '65536' else 7296}"
# 64 bit kernels are larger, so they require a different layout
FLASH_IMAGE_DESC_OFFSET:hoth:aarch64 = "${@61312 if FLASH_SIZE == '65536' else 7232}"
@@ -112,10 +113,14 @@ python do_generate_layout () {
convertPart(
'rofs',
d.getVar('FLASH_ROFS_OFFSET'),
- d.getVar('FLASH_RWFS_OFFSET'),
+ d.getVar('FLASH_HOTH_SECONDARY_OFFSET'),
static=True,
wp=True),
convertPart(
+ 'hoth_secondary',
+ d.getVar('FLASH_HOTH_SECONDARY_OFFSET'),
+ d.getVar('FLASH_RWFS_OFFSET')),
+ convertPart(
'rwfs',
d.getVar('FLASH_RWFS_OFFSET'),
d.getVar('FLASH_HOTH_MAILBOX_OFFSET'),