From 3fe3e0ba1fe1a7c22795905bf272dbc4457badda Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Thu, 2 Oct 2025 12:09:28 +0200 Subject: [PATCH] bitbake: bitbake-setup: clarify that default answer to prompts is no It is common practice to put the default choice in upper case for yes/no interactive prompts, so that when people just hit enter, they know what they are getting. An example that linux users are probably familiar with is "sensors-detect" from the "lm-sensors" package. Unify all the prompts to be the same and indicate that the default answer from hitting enter is a no with an upper case N. No functional changes. (Bitbake rev: 7d6225722e21b116ae164fbaae2a918534a5107b) Signed-off-by: Paul Gortmaker Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bitbake/bin/bitbake-setup b/bitbake/bin/bitbake-setup index de83d780bf..bb466d85b4 100755 --- a/bitbake/bin/bitbake-setup +++ b/bitbake/bin/bitbake-setup @@ -418,7 +418,7 @@ def init_config(settings, args, d): print("Initializing a build in\n {}".format(builddir)) if not args.non_interactive: - y_or_n = input('Continue? y/n: ') + y_or_n = input('Continue? (y/N): ') if y_or_n != 'y': exit() print() @@ -623,7 +623,7 @@ def write_settings(top_dir, force_replace, non_interactive=True): print('A new settings file will be created in\n {}\n'.format(settings_path)) print('A common site.conf file will be created, please edit or replace before running builds\n {}\n'.format(siteconfpath)) if not non_interactive: - y_or_n = input('Bitbake-setup will be configured with the above settings in {}, y/n: '.format(top_dir)) + y_or_n = input('Bitbake-setup will be configured with the above settings in {}, (y/N): '.format(top_dir)) if y_or_n != 'y': print("\nYou can run 'bitbake-setup install-settings' to edit them before setting up builds") exit() @@ -669,7 +669,7 @@ def write_global_settings(settings_path, force_replace, non_interactive=True): print('Top directory prefix (where all top level directories are created) set to\n {}\n'.format(settings['default']['top-dir-prefix'])) print('Top directory name (this is added to the top directory prefix to form a top directory where builds are set up) set to\n {}\n'.format(settings['default']['top-dir-name'])) if not non_interactive: - y_or_n = input('Write out the global settings as specified above (y/n)? ') + y_or_n = input('Write out the global settings as specified above (y/N)? ') if y_or_n != 'y': print("\nYou can run 'bitbake-setup install-global-settings' to edit them before setting up builds") exit()