scripts: Allow image version number
Add an --image-version argument to zep2newt.py to allow the major
version number to be set. This helps make testing easier by having
differing version numbers.
diff --git a/scripts/zep2newt.py b/scripts/zep2newt.py
index 1b46465..e9904f8 100755
--- a/scripts/zep2newt.py
+++ b/scripts/zep2newt.py
@@ -63,6 +63,9 @@
parser.add_argument('-f', required=False, action="store_true", \
default=False, \
help='Flash using JLinkExe')
+ parser.add_argument('--image-version', dest='image_version',
+ default=1,
+ help='Major part of version number')
return parser.parse_args()
@@ -189,7 +192,7 @@
self.vtable_offs,
image_size,
sig.get_flags(),
- 1, 0, 0, 0)
+ int(self.args.image_version), 0, 0, 0)
return hd
def add_trailer(self, pad):