diff mbox

[tegra-uboot-scripts] Add option --zimage to specify zImage filename

Message ID 1418971228-24068-1-git-send-email-acourbot@nvidia.com
State Accepted, archived
Headers show

Commit Message

Alexandre Courbot Dec. 19, 2014, 6:40 a.m. UTC
It may be desirable to use a different zImage filename for systems that
contain different kernel images. Add a --zimage option that allows to
specify a custom zImage filename.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
 gen-uboot-script.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Stephen Warren Dec. 19, 2014, 4:53 p.m. UTC | #1
On 12/18/2014 11:40 PM, Alexandre Courbot wrote:
> It may be desirable to use a different zImage filename for systems that
> contain different kernel images. Add a --zimage option that allows to
> specify a custom zImage filename.

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/gen-uboot-script.py b/gen-uboot-script.py
index 48d43d10f22f..e11dbf15553c 100755
--- a/gen-uboot-script.py
+++ b/gen-uboot-script.py
@@ -36,6 +36,9 @@  parser.add_argument('--type', choices=['disk', 'net'], default='disk',
 parser.add_argument('-o', dest='outfile', default='boot.scr',
     help='output filename; defaults to boot.scr')
 
+parser.add_argument('--zimage', default='zImage',
+    help='zImage filename to load; defaults to "zImage"')
+
 parser.add_argument('--initrd',
     help='initrd filename to load; defaults to no initrd')
 
@@ -117,7 +120,7 @@  if not args.dtbdir:
 elif not args.dtbdir.endswith('/'):
     args.dtbdir += '/'
 
-f.write(load + ' ${kernel_addr_r} ' + prefix + 'zImage\n')
+f.write(load + ' ${kernel_addr_r} ' + prefix + args.zimage + '\n')
 
 if args.initrd:
     f.write(load + ' ${ramdisk_addr_r} ' + prefix + args.initrd + '\n')