[Chef] chef.py supports --build_bundle (#38945)
* chef.py supports --build_bundle
* Restyle
diff --git a/examples/chef/chef.py b/examples/chef/chef.py
index 83333f4..899c065 100755
--- a/examples/chef/chef.py
+++ b/examples/chef/chef.py
@@ -382,6 +382,10 @@
help=("For use with --build_all. Build labels to include. "
"Accepts a regex pattern. Mutually exclusive with --build_exclude."),
dest="build_include")
+ parser.add_option("", "--build_bundle",
+ help=(
+ "Build platform bundle after build successed when building single device."),
+ action="store_true", dest="build_bundle")
parser.add_option("-k", "--keep_going",
help="For use in CD only. Continues building all sample apps in the event of an error.",
dest="keep_going", action="store_true")
@@ -937,6 +941,13 @@
#
#
+ # Build bundle
+ #
+
+ if options.build_bundle:
+ bundle(options.build_target, options.sample_device_type_name)
+
+ #
# Flash
#