mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
tools: pack: Choose nand-4k only for nand
nand-4k is auto picked only for nand and not for norplusnand. Change-Id: Id78940ebebde7d8e814a8334d11b65f69ac1520e Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
This commit is contained in:
parent
95ad2c8c6d
commit
93d70cd30f
1 changed files with 4 additions and 4 deletions
|
|
@ -1318,10 +1318,10 @@ class Pack(object):
|
|||
|
||||
if flinfo.type != "emmc":
|
||||
if root.find(".//data[@type='NAND_PARAMETER']/entry") != None:
|
||||
if flinfo.type == "nand":
|
||||
flash_param = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='2k']")
|
||||
else:
|
||||
if flinfo.type == "nand-4k":
|
||||
flash_param = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='4k']")
|
||||
else:
|
||||
flash_param = root.find(".//data[@type='NAND_PARAMETER']/entry[@type='2k']")
|
||||
else:
|
||||
flash_param = root.find(".//data[@type='NAND_PARAMETER']")
|
||||
|
||||
|
|
@ -1595,7 +1595,7 @@ def main():
|
|||
root = ET.parse(config)
|
||||
|
||||
# Add nand-4k flash type, if nand flash type is specified
|
||||
if "nand" in parser.flash_type:
|
||||
if "nand" in parser.flash_type.split(","):
|
||||
if root.find(".//data[@type='NAND_PARAMETER']/entry") != None:
|
||||
parser.flash_type = parser.flash_type + ",nand-4k"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue