Skip to content

Commit

Permalink
location of erase.p directive optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
dipcore committed Feb 2, 2019
1 parent b57e05e commit 8bf8ecd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@
if (create):
directive.create(name, size)

if (erase):
directive.erase_p(name)
# if (erase):
# directive.erase_p(name)

if (type == 'partitionImage'):

Expand All @@ -171,6 +171,9 @@
offset = "{:02X}".format(os.path.getsize(binPart) + HEADER_SIZE)

directive.filepartload(SCRIPT_FIRMWARE_FILE_NAME, offset, size)
if (index == 0 and erase):
directive.erase_p(name)

print ('[i] Align chunk')
utils.alignFile(outputChunk)

Expand Down

0 comments on commit 8bf8ecd

Please sign in to comment.