From d917f0032a019f0da53d2efdb4187aef8e3ff307 Mon Sep 17 00:00:00 2001 From: Gokul Sriram Palanisamy Date: Wed, 23 Jan 2019 16:13:44 +0530 Subject: [PATCH] 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 --- tools/pack_legacy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/pack_legacy.py b/tools/pack_legacy.py index e4e9d586ed..1671c50630 100755 --- a/tools/pack_legacy.py +++ b/tools/pack_legacy.py @@ -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"