]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
devtool: menuconfig remove useless code
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Sun, 22 Sep 2024 15:43:15 +0000 (17:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Sep 2024 15:54:15 +0000 (16:54 +0100)
When I tried to understand whether oe-local-files is actually still
needed here, I found some useless lines that can be dropped.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/menuconfig.py

index 18daef30c3b8dc53974c1401f384154589ad1c8c..1054960551baf7de74a97f0ddf76d3fa1ff41e5e 100644 (file)
@@ -23,9 +23,6 @@
 import os
 import bb
 import logging
-import argparse
-import re
-import glob
 from devtool import setup_tinfoil, parse_recipe, DevtoolError, standard, exec_build_env_command
 from devtool import check_workspace_recipe
 logger = logging.getLogger('devtool')
@@ -34,7 +31,6 @@ def menuconfig(args, config, basepath, workspace):
     """Entry point for the devtool 'menuconfig' subcommand"""
 
     rd = ""
-    kconfigpath = ""
     pn_src = ""
     localfilesdir = ""
     workspace_dir = ""
@@ -51,7 +47,6 @@ def menuconfig(args, config, basepath, workspace):
             raise DevtoolError("This recipe does not support menuconfig option")
 
         workspace_dir = os.path.join(config.workspace_path,'sources')
-        kconfigpath = rd.getVar('B')
         pn_src = os.path.join(workspace_dir,pn)
 
         # add check to see if oe_local_files exists or not
@@ -70,7 +65,7 @@ def menuconfig(args, config, basepath, workspace):
     logger.info('Launching menuconfig')
     exec_build_env_command(config.init_path, basepath, 'bitbake -c menuconfig %s' % pn, watch=True)
     fragment = os.path.join(localfilesdir, 'devtool-fragment.cfg')
-    res = standard._create_kconfig_diff(pn_src,rd,fragment)
+    standard._create_kconfig_diff(pn_src,rd,fragment)
 
     return 0