build_image: Add custom suffix to output directory

Use --output_suffix flag to add custom suffix to output directory.

TEST= ./build_image --output_suffix="some_string" ... and check if output dir
is generated properly. Also check w/o --output_suffix if default works fine.

Change-Id: I8f88aab3cdebe4d013a8c5d3c889b25212ed907b
Signed-off-by: Waldemar Rymarkiewicz <>
Commit-Ready: Waldemar Rymarkiewicz <>
Tested-by: Waldemar Rymarkiewicz <>
Reviewed-by: Mike Frysinger <>
2 files changed