summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2025-01-26 13:48:02 +0100
committerSteve Sakoman <steve@sakoman.com>2025-02-03 06:13:13 -0800
commit8eb59ff5172427a436bb724ae425279b44391099 (patch)
treefbf0f50e76449ae7ad4124c835d30e49c1cd07ae /scripts/lib/devtool
parent29d32063ac0abb1017756f62f94aec22ce305b60 (diff)
downloadpoky-8eb59ff5172427a436bb724ae425279b44391099.tar.gz
devtool: modify support debug-builds
Add a new option --debug-builds to automatically add DEBUG_BUILD = “1” to the bbappend file of this recipe. This is especially useful when invoking devtool modify before invoking devtool ide-sdk to perform a remote debugging session. (From OE-Core rev: fa30d8dd71393e10aa678c6e938c23d486b336c6) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/standard.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 05161942b7..908869cc4f 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -1031,6 +1031,8 @@ def modify(args, config, basepath, workspace):
1031 if branch == args.branch: 1031 if branch == args.branch:
1032 continue 1032 continue
1033 f.write('# patches_%s: %s\n' % (branch, ','.join(branch_patches[branch]))) 1033 f.write('# patches_%s: %s\n' % (branch, ','.join(branch_patches[branch])))
1034 if args.debug_build:
1035 f.write('\nDEBUG_BUILD = "1"\n')
1034 1036
1035 update_unlockedsigs(basepath, workspace, args.fixed_setup, [pn]) 1037 update_unlockedsigs(basepath, workspace, args.fixed_setup, [pn])
1036 1038
@@ -2396,6 +2398,7 @@ def register_commands(subparsers, context):
2396 parser_modify.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (when not using -n/--no-extract) (default "%(default)s")') 2398 parser_modify.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (when not using -n/--no-extract) (default "%(default)s")')
2397 parser_modify.add_argument('--no-overrides', '-O', action="store_true", help='Do not create branches for other override configurations') 2399 parser_modify.add_argument('--no-overrides', '-O', action="store_true", help='Do not create branches for other override configurations')
2398 parser_modify.add_argument('--keep-temp', help='Keep temporary directory (for debugging)', action="store_true") 2400 parser_modify.add_argument('--keep-temp', help='Keep temporary directory (for debugging)', action="store_true")
2401 parser_modify.add_argument('--debug-build', action="store_true", help='Add DEBUG_BUILD = "1" to the modified recipe')
2399 parser_modify.set_defaults(func=modify, fixed_setup=context.fixed_setup) 2402 parser_modify.set_defaults(func=modify, fixed_setup=context.fixed_setup)
2400 2403
2401 parser_extract = subparsers.add_parser('extract', help='Extract the source for an existing recipe', 2404 parser_extract = subparsers.add_parser('extract', help='Extract the source for an existing recipe',