fix: resize active GNSS customer fs partition
This commit is contained in:
@@ -13,7 +13,9 @@ from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
LAYOUT = ROOT / "ql-config/quec-project/aboot/config/partition/CRANELRH_QUEC_FLASH_LAYOUT_SS_04M_OPEN.json"
|
||||
LAYOUT = ROOT / "ql-config/quec-project/aboot/config/partition/CRANELRH_QUEC_FLASH_LAYOUT_SS_04M_HX_GNSS.json"
|
||||
FLASH_TYPE = ROOT / "ql-config/config/QuecFLashType.ini"
|
||||
CHIP_PLATFORM = ROOT / "ql-config/config/CHIP_PLAT.ini"
|
||||
LINKER = ROOT / "ql-application/threadx/config/common/app_linkscript.ld"
|
||||
FS_IMAGE = ROOT / "ql-config/config/EG800AKCN_11LG/customer_fs.bin"
|
||||
KERNEL_FLAGS = ROOT / "ql-kernel/threadx/config/common/default_dflags_1602.mk"
|
||||
@@ -66,6 +68,11 @@ def flattened_tail() -> list[tuple[str, int]]:
|
||||
|
||||
|
||||
def verify_layout() -> None:
|
||||
if CHIP_PLATFORM.read_text(encoding="utf-8").strip() != "1605":
|
||||
fail("this baseline requires CHIP_PLAT.ini=1605")
|
||||
if FLASH_TYPE.read_text(encoding="utf-8").strip() != "CC11XXW_GPS":
|
||||
fail("this baseline requires QuecFLashType.ini=CC11XXW_GPS")
|
||||
|
||||
tail = flattened_tail()
|
||||
sizes = dict(tail)
|
||||
if sizes.get("customer_app") != EXPECTED["app_size"]:
|
||||
|
||||
Reference in New Issue
Block a user