tools: pack: Set default qcn9224_version as 1

If detect_qcn9224 command is not supported in Uboot, qcn9224 V1
image will be flashed.

Change-Id: I36c3b7c5959b4736abe69d218cae2880c20cfad1
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
This commit is contained in:
Praveenkumar I 2022-08-10 08:36:15 +05:30 committed by Gerrit - the friendly Code Review server
parent 724870b677
commit 144fe5efd0

View file

@ -790,8 +790,8 @@ class Pack(object):
def __gen_flash_script_wififw_ubi_volume_qcn9224_v1(self, entries, fw_filename, wifi_fw_type, script):
script.append("detect_qcn9224", fatal=False)
script.append('if test "$qcn9224_version" = "1" then\n', fatal=False)
script.append("setenv qcn9224_version 1 && detect_qcn9224", fatal=False)
script.append('if test "$qcn9224_version" = "1"; then\n', fatal=False)
script.start_activity("Flashing " + fw_filename[:-13] + ":")
script.imxtract(fw_filename[:-13] + "-" + sha1(fw_filename))
@ -976,8 +976,8 @@ class Pack(object):
print "Flash type is norplusemmc"
return 1
script.append("detect_qcn9224", fatal=False)
script.append('if test "$qcn9224_version" = "1" then\n', fatal=False)
script.append("setenv qcn9224_version 1 && detect_qcn9224", fatal=False)
script.append('if test "$qcn9224_version" = "1"; then\n', fatal=False)
script.start_activity("Flashing %s:" % ( filename[:-13] ))