~jcrigby/linaro-image-tools/mx51-initrd_addr-fix

« back to all changes in this revision

Viewing changes to linaro_media_create/boards.py

  • Committer: Guilherme Salgado
  • Date: 2011-02-10 18:37:39 UTC
  • mfrom: (285.1.1 bug-711255)
  • Revision ID: guilherme.salgado@linaro.org-20110210183739-sld938hrnkd8cgg2
When --consoles is passed to l-m-c, append (instead of prepend) them to the list of serial options in the boot cmd (fixes bug #711255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        boot_args_options = 'rootwait ro'
75
75
        if cls.extra_boot_args_options is not None:
76
76
            boot_args_options += ' %s' % cls.extra_boot_args_options
77
 
        serial_opts = ''
78
 
        if consoles is not None:
79
 
            for console in consoles:
80
 
                serial_opts += ' console=%s' % console
81
 
 
82
 
            # XXX: I think this is not needed as we have board-specific
83
 
            # serial options for when is_live is true.
84
 
            if is_live:
85
 
                serial_opts += ' serialtty=%s' % cls.serial_tty
86
 
 
87
 
        serial_opts += ' %s' % cls.extra_serial_opts
 
77
        serial_opts = cls.extra_serial_opts
 
78
        for console in consoles:
 
79
            serial_opts += ' console=%s' % console
88
80
 
89
81
        lowmem_opt = ''
90
82
        boot_snippet = 'root=UUID=%s' % rootfs_uuid