mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
tools: ipq6018: Update nand-audio 2k image name
This patch updates the pack script to handle the change required in nand-audio 2k single image name. Change-Id: If15925e29e985bc4161a45666d6a67e17d76e93a Signed-off-by: speriaka <speriaka@codeaurora.org>
This commit is contained in:
parent
37c8c2403e
commit
3f9a51ccb8
1 changed files with 10 additions and 10 deletions
|
|
@ -779,9 +779,9 @@ class Pack(object):
|
|||
section_conf = "lkboot"
|
||||
else:
|
||||
section_conf = "u-boot"
|
||||
elif section_conf == "rootfs" and self.flash_type in ["nand", "nand-4k", "nand-audio-2k", "nand-audio-4k", "norplusnand", "norplusnand-4k"]:
|
||||
elif section_conf == "rootfs" and self.flash_type in ["nand", "nand-4k", "nand-audio", "nand-audio-4k", "norplusnand", "norplusnand-4k"]:
|
||||
section_conf = "ubi"
|
||||
elif section_conf == "wififw" and self.flash_type in ["nand", "nand-4k", "nand-audio-2k", "nand-audio-4k", "norplusnand", "norplusnand-4k"]:
|
||||
elif section_conf == "wififw" and self.flash_type in ["nand", "nand-4k", "nand-audio", "nand-audio-4k", "norplusnand", "norplusnand-4k"]:
|
||||
section_conf = "wififw_ubi"
|
||||
|
||||
if soc_version:
|
||||
|
|
@ -1103,9 +1103,9 @@ class Pack(object):
|
|||
else:
|
||||
print " Using u-boot..."
|
||||
section_conf = "u-boot"
|
||||
elif section_conf == "rootfs" and self.flash_type in ["nand", "nand-4k", "nand-audio-2k", "nand-audio-4k", "norplusnand", "norplusnand-4k"]:
|
||||
elif section_conf == "rootfs" and self.flash_type in ["nand", "nand-4k", "nand-audio", "nand-audio-4k", "norplusnand", "norplusnand-4k"]:
|
||||
section_conf = "ubi"
|
||||
elif section_conf == "wififw" and self.flash_type in ["nand", "nand-4k", "nand-audio-2k", "nand-audio-4k", "norplusnand", "norplusnand-4k"]:
|
||||
elif section_conf == "wififw" and self.flash_type in ["nand", "nand-4k", "nand-audio", "nand-audio-4k", "norplusnand", "norplusnand-4k"]:
|
||||
section_conf = "wififw_ubi"
|
||||
|
||||
if soc_version:
|
||||
|
|
@ -1380,7 +1380,7 @@ class Pack(object):
|
|||
if root.find(".//data[@type='NAND_PARAMETER']/entry") != None:
|
||||
if self.flash_type == "nand-4k" or self.flash_type == "norplusnand-4k":
|
||||
flash_param = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='4k']")
|
||||
elif self.flash_type == "nand-audio-2k":
|
||||
elif self.flash_type == "nand-audio":
|
||||
flash_param = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='audio-2k']")
|
||||
elif self.flash_type == "nand-audio-4k":
|
||||
flash_param = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='audio-4k']")
|
||||
|
|
@ -1467,11 +1467,11 @@ class Pack(object):
|
|||
try:
|
||||
if ftype == "tiny-nor":
|
||||
part_info = root.find(".//data[@type='" + "NOR_PARAMETER']")
|
||||
elif ftype in ["nand", "nand-4k", "nand-audio-2k", "nand-audio-4k"]:
|
||||
elif ftype in ["nand", "nand-4k", "nand-audio", "nand-audio-4k"]:
|
||||
if root.find(".//data[@type='NAND_PARAMETER']/entry") != None:
|
||||
if ftype == "nand":
|
||||
part_info = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='2k']")
|
||||
elif ftype == "nand-audio-2k":
|
||||
elif ftype == "nand-audio":
|
||||
part_info = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='audio-2k']")
|
||||
elif ftype == "nand-audio-4k":
|
||||
part_info = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='audio-4k']")
|
||||
|
|
@ -1495,7 +1495,7 @@ class Pack(object):
|
|||
|
||||
if ftype in ["tiny-nor", "norplusnand", "norplusnand-4k", "norplusemmc"]:
|
||||
ftype = "nor"
|
||||
if ftype in ["nand-4k", "nand-audio-2k", "nand-audio-4k"]:
|
||||
if ftype in ["nand-4k", "nand-audio", "nand-audio-4k"]:
|
||||
ftype = "nand"
|
||||
|
||||
except ValueError, e:
|
||||
|
|
@ -1512,7 +1512,7 @@ class Pack(object):
|
|||
def __process_board(self, images, root):
|
||||
|
||||
try:
|
||||
if self.flash_type in [ "nand", "nand-4k", "nand-audio-2k", "nand-audio-4k", "nor", "tiny-nor", "norplusnand", "norplusnand-4k" ]:
|
||||
if self.flash_type in [ "nand", "nand-4k", "nand-audio", "nand-audio-4k", "nor", "tiny-nor", "norplusnand", "norplusnand-4k" ]:
|
||||
ret = self.__process_board_flash(self.flash_type, images, root)
|
||||
elif self.flash_type == "emmc":
|
||||
ret = self.__process_board_flash_emmc(self.flash_type, images, root)
|
||||
|
|
@ -1761,7 +1761,7 @@ def main():
|
|||
parser.flash_type = parser.flash_type + ",nand-4k"
|
||||
# Add nand-audio flash type, if arch is ipq6018
|
||||
if ARCH_NAME == "ipq6018":
|
||||
parser.flash_type = parser.flash_type + ",nand-audio-2k,nand-audio-4k"
|
||||
parser.flash_type = parser.flash_type + ",nand-audio,nand-audio-4k"
|
||||
|
||||
# Add norplusnand-4k flash type, if norplusnand flash type is specified
|
||||
if "norplusnand" in parser.flash_type.split(","):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue