diff options
author | Johannes Schneider <johannes.schneider@leica-geosystems.com> | 2025-10-12 19:47:25 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-14 11:24:57 +0100 |
commit | 12d456bc9b1a6e9c4e776cad7b751a9bfa82c319 (patch) | |
tree | 36cce7887d46c1e9e15a98d7cc1644b59fc69673 | |
parent | 0a5c5430c5c1975efccab91be60b5f0b4d14b2e4 (diff) | |
download | poky-12d456bc9b1a6e9c4e776cad7b751a9bfa82c319.tar.gz |
bitbake: bitbake-setup: use args.cmdline_settings for --settings
To align the storage destination with the internally used variable
name. This makes room for having another option use 'args.setting'
(Bitbake rev: 14d8535309abc78ee30cfdb51bba2e00b474f443)
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/bin/bitbake-setup | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/bin/bitbake-setup b/bitbake/bin/bitbake-setup index cb10b41d42..94514fd294 100755 --- a/bitbake/bin/bitbake-setup +++ b/bitbake/bin/bitbake-setup | |||
@@ -752,7 +752,8 @@ def main(): | |||
752 | parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR') | 752 | parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR') |
753 | parser.add_argument('--no-network', action='store_true', help='Do not check whether configuration repositories and layer repositories have been updated; use only the local cache.') | 753 | parser.add_argument('--no-network', action='store_true', help='Do not check whether configuration repositories and layer repositories have been updated; use only the local cache.') |
754 | parser.add_argument('--global-settings', action='store', help='Path to the global settings file.') | 754 | parser.add_argument('--global-settings', action='store', help='Path to the global settings file.') |
755 | parser.add_argument('--setting', default=[], action='append', nargs=3, help='Modify a setting (for this bitbake-setup invocation only), for example "--setting default top-dir-prefix /path/to/top/dir".') | 755 | parser.add_argument('--setting', default=[], dest='cmdline_settings', action='append', nargs=3, |
756 | help='Modify a setting (for this bitbake-setup invocation only), for example "--setting default top-dir-prefix /path/to/top/dir".') | ||
756 | 757 | ||
757 | subparsers = parser.add_subparsers() | 758 | subparsers = parser.add_subparsers() |
758 | 759 | ||
@@ -822,13 +823,13 @@ def main(): | |||
822 | } | 823 | } |
823 | 824 | ||
824 | global_settings = load_settings(global_settings_path(args)) | 825 | global_settings = load_settings(global_settings_path(args)) |
825 | top_dir = get_top_dir(args, merge_settings(builtin_settings, global_settings, {}, args.setting)) | 826 | top_dir = get_top_dir(args, merge_settings(builtin_settings, global_settings, {}, args.cmdline_settings)) |
826 | 827 | ||
827 | # This cannot be set with the rest of the builtin settings as top_dir needs to be determined first | 828 | # This cannot be set with the rest of the builtin settings as top_dir needs to be determined first |
828 | builtin_settings['default']['dl-dir'] = os.path.join(top_dir, '.bitbake-setup-downloads') | 829 | builtin_settings['default']['dl-dir'] = os.path.join(top_dir, '.bitbake-setup-downloads') |
829 | 830 | ||
830 | topdir_settings = load_settings(default_settings_path(top_dir)) | 831 | topdir_settings = load_settings(default_settings_path(top_dir)) |
831 | all_settings = merge_settings(builtin_settings, global_settings, topdir_settings, args.setting) | 832 | all_settings = merge_settings(builtin_settings, global_settings, topdir_settings, args.cmdline_settings) |
832 | 833 | ||
833 | if args.func == settings_func: | 834 | if args.func == settings_func: |
834 | settings_func(top_dir, all_settings, args) | 835 | settings_func(top_dir, all_settings, args) |