linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH tegra-uboot-scripts] Add option --zimage to specify zImage filename
@ 2014-12-19  6:40 Alexandre Courbot
       [not found] ` <1418971228-24068-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Courbot @ 2014-12-19  6:40 UTC (permalink / raw)
  To: Stephen Warren
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, gnurou-Re5JQEeQqe8AvxtiuMwx3w,
	Alexandre Courbot

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-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 gen-uboot-script.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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')
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH tegra-uboot-scripts] Add option --zimage to specify zImage filename
       [not found] ` <1418971228-24068-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2014-12-19 16:53   ` Stephen Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2014-12-19 16:53 UTC (permalink / raw)
  To: Alexandre Courbot, Stephen Warren
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, gnurou-Re5JQEeQqe8AvxtiuMwx3w

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-19 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-19  6:40 [PATCH tegra-uboot-scripts] Add option --zimage to specify zImage filename Alexandre Courbot
     [not found] ` <1418971228-24068-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-12-19 16:53   ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).