diff options
| author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2024-09-22 17:43:15 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-09-30 17:00:50 +0100 |
| commit | bac51c7151a7575870025ca27c9ad19666ca6cde (patch) | |
| tree | fb7a98c041c62a0ccc66a57255d7491007ca8b9e /scripts/lib | |
| parent | 21917a63abd74039dead6006cd3ef3d29915d530 (diff) | |
| download | poky-bac51c7151a7575870025ca27c9ad19666ca6cde.tar.gz | |
devtool: menuconfig remove useless code
When I tried to understand whether oe-local-files is actually still
needed here, I found some useless lines that can be dropped.
(From OE-Core rev: 43f0c6beaa2a99301a565837944250bb2e56c98a)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/devtool/menuconfig.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/lib/devtool/menuconfig.py b/scripts/lib/devtool/menuconfig.py index 18daef30c3..1054960551 100644 --- a/scripts/lib/devtool/menuconfig.py +++ b/scripts/lib/devtool/menuconfig.py | |||
| @@ -23,9 +23,6 @@ | |||
| 23 | import os | 23 | import os |
| 24 | import bb | 24 | import bb |
| 25 | import logging | 25 | import logging |
| 26 | import argparse | ||
| 27 | import re | ||
| 28 | import glob | ||
| 29 | from devtool import setup_tinfoil, parse_recipe, DevtoolError, standard, exec_build_env_command | 26 | from devtool import setup_tinfoil, parse_recipe, DevtoolError, standard, exec_build_env_command |
| 30 | from devtool import check_workspace_recipe | 27 | from devtool import check_workspace_recipe |
| 31 | logger = logging.getLogger('devtool') | 28 | logger = logging.getLogger('devtool') |
| @@ -34,7 +31,6 @@ def menuconfig(args, config, basepath, workspace): | |||
| 34 | """Entry point for the devtool 'menuconfig' subcommand""" | 31 | """Entry point for the devtool 'menuconfig' subcommand""" |
| 35 | 32 | ||
| 36 | rd = "" | 33 | rd = "" |
| 37 | kconfigpath = "" | ||
| 38 | pn_src = "" | 34 | pn_src = "" |
| 39 | localfilesdir = "" | 35 | localfilesdir = "" |
| 40 | workspace_dir = "" | 36 | workspace_dir = "" |
| @@ -51,7 +47,6 @@ def menuconfig(args, config, basepath, workspace): | |||
| 51 | raise DevtoolError("This recipe does not support menuconfig option") | 47 | raise DevtoolError("This recipe does not support menuconfig option") |
| 52 | 48 | ||
| 53 | workspace_dir = os.path.join(config.workspace_path,'sources') | 49 | workspace_dir = os.path.join(config.workspace_path,'sources') |
| 54 | kconfigpath = rd.getVar('B') | ||
| 55 | pn_src = os.path.join(workspace_dir,pn) | 50 | pn_src = os.path.join(workspace_dir,pn) |
| 56 | 51 | ||
| 57 | # add check to see if oe_local_files exists or not | 52 | # add check to see if oe_local_files exists or not |
| @@ -70,7 +65,7 @@ def menuconfig(args, config, basepath, workspace): | |||
| 70 | logger.info('Launching menuconfig') | 65 | logger.info('Launching menuconfig') |
| 71 | exec_build_env_command(config.init_path, basepath, 'bitbake -c menuconfig %s' % pn, watch=True) | 66 | exec_build_env_command(config.init_path, basepath, 'bitbake -c menuconfig %s' % pn, watch=True) |
| 72 | fragment = os.path.join(localfilesdir, 'devtool-fragment.cfg') | 67 | fragment = os.path.join(localfilesdir, 'devtool-fragment.cfg') |
| 73 | res = standard._create_kconfig_diff(pn_src,rd,fragment) | 68 | standard._create_kconfig_diff(pn_src,rd,fragment) |
| 74 | 69 | ||
| 75 | return 0 | 70 | return 0 |
| 76 | 71 | ||
