pack.py: Updated section name to reflect 'lkboot'

Updated section name to 'lkboot' that will be
used to display while flashing the image.

Change-Id: I38e66f03963bc008bdee3036e980fb4c6b930ec0
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2019-01-23 16:13:44 +05:30 committed by Gerrit - the friendly Code Review server
parent ae79231f1e
commit d917f0032a

View file

@ -824,7 +824,8 @@ class Pack(object):
ret = subprocess.call(cmd, shell=True)
if ret != 0:
error("failed to create padded image from script")
if section == "u-boot" and lk == True and self.flinfo.type == 'emmc':
section = "lkboot"
if self.flinfo.type != "emmc":
if part_info == None:
if self.flinfo.type == 'norplusnand':
@ -916,6 +917,7 @@ class Pack(object):
filename = "openwrt-ipq40xx-lkboot-stripped.elf"
elif "ipq806x" in filename:
filename = "openwrt-ipq806x-lkboot.mbn"
section = "lkboot"
if lk == True and "uImage" in filename:
if "ipq40xx" in filename:
filename = "openwrt-ipq40xx-kernelboot.img"