tool: pack: add layout switch for sbl partition

This patch adds support for sbl partition layout switch on IPQ5018

Change-Id: I74e6f1175f36fd58497e049ed16a71d70d3e4b03
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
This commit is contained in:
Rajkumar Ayyasamy 2022-02-01 13:11:16 +05:30 committed by Gerrit - the friendly Code Review server
parent d5357b5326
commit cf43c5a299

View file

@ -1101,11 +1101,11 @@ class Pack(object):
if part_info.which_flash == 0:
offset = part_info.offset
script.erase(offset, part_info.length)
if ARCH_NAME in ["ipq9574", "ipq9574_64"]:
if ARCH_NAME in ["ipq5018", "ipq5018_64", "ipq9574", "ipq9574_64"]:
if self.flash_type == "nand-4k" and section_conf == "sbl1":
script.switch_layout_qpic("sbl")
script.write(offset, img_size)
if ARCH_NAME in ["ipq9574", "ipq9574_64"]:
if ARCH_NAME in ["ipq5018", "ipq5018_64", "ipq9574", "ipq9574_64"]:
if self.flash_type == "nand-4k" and section_conf == "sbl1":
script.switch_layout_qpic("linux")
else: