pack.py Fixed kernelboot image file path

Change-Id: I15bc640c4d0df03e4b8f9372fedc39356327dd07
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2019-02-04 12:35:51 +05:30
parent 4658cc1170
commit c95c32e1dc
2 changed files with 6 additions and 6 deletions

View file

@ -1622,7 +1622,7 @@ def gen_kernelboot_img(parser):
"""Generate kernelboot.img needed by LK bootloader"""
SKALES_DIR = parser.images_dname
TMP_DIR = parser.out_dname + "/tmp_dir"
TMP_DIR = parser.images_dname + "/tmp_dir"
try:
@ -1661,7 +1661,7 @@ def gen_kernelboot_img(parser):
"--kernel=" + TMP_DIR + "/Image.gz",
"--dt=" + TMP_DIR + "/qcom-ipq807x-hk01-dt.img",
"--cmdline=\'rootfsname=rootfs rootwait nosmp\'",
"--output=" + parser.out_dname + "/" + KERNEL_IMG_NAME,
"--output=" + parser.images_dname + "/" + KERNEL_IMG_NAME,
"--base=0x41200000"]
ret = subprocess.call(cmd)
if ret != 0:

View file

@ -730,7 +730,7 @@ class Pack(object):
if not os.path.exists(os.path.join(self.images_dname, DTB)):
error("%s file not found" % DTB)
self.tmp_dir = self.images_dname + "tmp_dir"
self.tmp_dir = self.images_dname + "/tmp_dir"
if os.path.exists(self.tmp_dir):
rmtree(self.tmp_dir)
os.makedirs(self.tmp_dir)
@ -750,7 +750,7 @@ class Pack(object):
print ret
error("Error executing gzip")
cmd = [SKALES_DIR + "mkbootimg",
cmd = [SKALES_DIR + "/mkbootimg",
"--kernel=" + self.tmp_dir + "/Image.gz",
"--dt=" + self.tmp_dir + "/" + DTB + ".img",
"--cmdline=" + BOOT_ARGS,
@ -1237,8 +1237,8 @@ class Pack(object):
self.__mkimage(images)
"""Remove tmp_dir,if created earlier for lk-kernelboot image generation"""
if os.path.exists(self.images_dname + "tmp_dir"):
rmtree(self.images_dname + "tmp_dir")
if os.path.exists(self.images_dname + "/tmp_dir"):
rmtree(self.images_dname + "/tmp_dir")
def main(self, flinfo, images_dname, out_fname, part_fname, fconf_fname, ipq_nand):
"""Start the packing process.