[OE-core] [OE-Core][master][PATCH v3 3/3] devtool: provide support for devtool menuconfig command
Paul Eggleton
paul.eggleton at linux.intel.com
Mon Apr 1 23:03:28 UTC 2019
On Friday, 29 March 2019 7:55:21 AM NZDT Sai Hari Chandana Kalluri wrote:
> + pn = rd.getVar('PN', True)
> + if pn not in workspace:
> + raise DevtoolError("Run devtool modify before calling menuconfig for %s" %pn)
Did you see my earlier comment re check_workspace_recipe() ?
> + if not rd.getVarFlag('do_menuconfig','task'):
> + raise DevtoolError("This package does not support menuconfig option")
package -> recipe
> + workspace_dir = os.path.join(basepath,'workspace/sources')
> + kconfigpath = rd.getVar('B')
> + pn_src = os.path.join(workspace_dir,pn)
> +
> + #add check to see if oe_local_files exists or not
> + localfilesdir = os.path.join(pn_src,'oe-local-files')
> + if not os.path.exists(localfilesdir):
> + bb.utils.mkdirhier(localfilesdir)
> + #Add gitignore to ensure source tree is clean
> + gitignorefile = os.path.join(localfilesdir,'.gitignore')
> + with open(gitignorefile, 'w') as f:
> + f.write('# Ignore local files, by default. Remove this file if you want to commit the directory to Git\n')
> + f.write('*\n')
I didn't reply to your earlier question on this, sorry about that, but I think this is OK.
> +def register_commands(subparsers, context):
> + """register devtool subcommands from this plugin"""
> + parser_menuconfig = subparsers.add_parser('menuconfig',help='Alter build-time configuration for a recipe', description='Launches the make menuconfig command(for recipes where do_menuconfig is available), allowing users to make changes to the build-time configuration. Creates a config fragment corresponding to changes made.', group='advanced')
There's a missing space before the '(' in "command(for recipes".
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list