summaryrefslogtreecommitdiffstats
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:24:37 -0800
commita221cda57cabf202e815fde3fa45787b96d562b5 (patch)
tree0086f89d78214a564dc50fc6db92bbe9b99bdd6b
parent281e96aaecffb132f994266ede58cd0dc78a33ad (diff)
downloadpoky-a221cda57cabf202e815fde3fa45787b96d562b5.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: c1bea1549d3bc47845b7c23158d48fad8e17277e) 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>
-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 b2e1a6ca3a..286c121fdd 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -975,6 +975,8 @@ def modify(args, config, basepath, workspace):
975 if branch == args.branch: 975 if branch == args.branch:
976 continue 976 continue
977 f.write('# patches_%s: %s\n' % (branch, ','.join(branch_patches[branch]))) 977 f.write('# patches_%s: %s\n' % (branch, ','.join(branch_patches[branch])))
978 if args.debug_build:
979 f.write('\nDEBUG_BUILD = "1"\n')
978 980
979 update_unlockedsigs(basepath, workspace, args.fixed_setup, [pn]) 981 update_unlockedsigs(basepath, workspace, args.fixed_setup, [pn])
980 982
@@ -2313,6 +2315,7 @@ def register_commands(subparsers, context):
2313 parser_modify.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (when not using -n/--no-extract) (default "%(default)s")') 2315 parser_modify.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (when not using -n/--no-extract) (default "%(default)s")')
2314 parser_modify.add_argument('--no-overrides', '-O', action="store_true", help='Do not create branches for other override configurations') 2316 parser_modify.add_argument('--no-overrides', '-O', action="store_true", help='Do not create branches for other override configurations')
2315 parser_modify.add_argument('--keep-temp', help='Keep temporary directory (for debugging)', action="store_true") 2317 parser_modify.add_argument('--keep-temp', help='Keep temporary directory (for debugging)', action="store_true")
2318 parser_modify.add_argument('--debug-build', action="store_true", help='Add DEBUG_BUILD = "1" to the modified recipe')
2316 parser_modify.set_defaults(func=modify, fixed_setup=context.fixed_setup) 2319 parser_modify.set_defaults(func=modify, fixed_setup=context.fixed_setup)
2317 2320
2318 parser_extract = subparsers.add_parser('extract', help='Extract the source for an existing recipe', 2321 parser_extract = subparsers.add_parser('extract', help='Extract the source for an existing recipe',