[Feature]add MT2731_MP2_MR2_SVN388 baseline version
Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/bsp/scatter/tools/nand-utils/pad_dummy_data.py b/src/bsp/scatter/tools/nand-utils/pad_dummy_data.py
new file mode 100755
index 0000000..ccfba4b
--- /dev/null
+++ b/src/bsp/scatter/tools/nand-utils/pad_dummy_data.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+
+import argparse
+import sys
+import os
+
+def padding(data, size):
+ return data + '\xff' * (size - len(data))
+
+def main(argv):
+ parser = argparse.ArgumentParser()
+ parser.add_argument('in_image', help = 'raw input image which has GPT')
+ parser.add_argument('part_size', help = 'partition size')
+ args = parser.parse_args()
+ part_size = int(args.part_size, 16)
+ file_len = os.path.getsize(args.in_image)
+
+ with open(args.in_image, "rb+") as f:
+ f.read()
+ f.write('\xff' * (part_size - file_len))
+
+if __name__ == "__main__":
+ sys.exit(main(sys.argv))