ipq6018: take ubinize from src path instead of current path

Change-Id: I6613f29d2c4b867b9232068c0849cd53a94d84fb
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
This commit is contained in:
Rajkumar Ayyasamy 2019-09-20 15:27:40 +05:30
parent becd07ff6b
commit a636319503

View file

@ -1506,7 +1506,7 @@ class Pack(object):
if ftype in ["nand-4k", "nand-audio-4k", "norplusnand-4k"]:
UBI_IMG_NAME = "openwrt-ipq-ipq60xx" + MODE_APPEND + "-ubi-root-m4096-p256KiB.img"
cmd = './ubinize -m 4096 -p 256KiB -o root.ubi %s' % (UBINIZE_CFG_NAME)
cmd = '%s -m 4096 -p 256KiB -o root.ubi %s' % ((SRC_DIR + "/ubinize") ,UBINIZE_CFG_NAME)
ret = subprocess.call(cmd, shell=True)
if ret != 0:
error("ubinization got failed")
@ -1516,7 +1516,7 @@ class Pack(object):
error("ubi image copy operation failed")
elif ftype in ["nand", "nand-audio", "norplusnand"]:
UBI_IMG_NAME = "openwrt-ipq-ipq60xx" + MODE_APPEND +"-ubi-root.img"
cmd = './ubinize -m 2048 -p 128KiB -o root.ubi %s' % (UBINIZE_CFG_NAME)
cmd = '%s -m 2048 -p 128KiB -o root.ubi %s' % ((SRC_DIR + "/ubinize") ,UBINIZE_CFG_NAME)
ret = subprocess.call(cmd, shell=True)
if ret != 0:
error("ubinization got failed")