mod_image_for_recovery: Add --enable_serial parameter for pass-through

This patch adds an --enable_serial parameter to that will simply be passed through unchanged
to This should never be set for official builds
but it useful to developers who are debugging the recovery initramfs,
since sometimes the recovery UI doesn't even come up and then it's nice
to have a UART to fall back to.

TEST=Called with --enable_serial=ttyS2, confirmed I get UART output on

Change-Id: I52269f76c2b95ffa51e3c63bc23f95bed39041e6
Signed-off-by: Julius Werner <>
Legacy-Commit-Queue: Commit Bot <>
Reviewed-by: Mike Frysinger <>
Reviewed-by: Hung-Te Lin <>
1 file changed