[PATCH 2/2] Add to wscript and add python2 shebang.

Amar Takhar amar at rtems.org
Wed Mar 4 01:46:31 UTC 2020


This script does work but needs some user friendliness added which is
acknowledged by the author as it was meant as a quick replacement.
---
 misc/tools/mkimage.py | 2 ++
 misc/wscript          | 1 +
 2 files changed, 3 insertions(+)
 mode change 100644 => 100755 misc/tools/mkimage.py

diff --git a/misc/tools/mkimage.py b/misc/tools/mkimage.py
old mode 100644
new mode 100755
index ee57481..39a12a0
--- a/misc/tools/mkimage.py
+++ b/misc/tools/mkimage.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python2
+
 # A quickly bashed together replacement for u-boot's mkimage written in python
 #
 # Copyright 2010 Craig Barker 
diff --git a/misc/wscript b/misc/wscript
index 7d90968..d82bde3 100644
--- a/misc/wscript
+++ b/misc/wscript
@@ -79,6 +79,7 @@ def build(bld):
                   'tools/cmd-tftpproxy.py',
                   'tools/tftpproxy.py',
                   'tools/getmac/__init__.py',
+                  'tools/mkimage.py',
                   'tools/getmac/getmac.py'],
         install_from = '.',
         install_path = '${PREFIX}/share/rtems/misc')
-- 
2.25.0



More information about the devel mailing list