summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/standard.py
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@siemens.com>2024-12-16 18:43:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-12-17 11:41:53 +0000
commit1f7eb26c947dde14698ae6e2ab88f0637027f4cb (patch)
tree7038286cf58ee5e5c017a0dbcc1b2dd38d2836b3 /scripts/lib/devtool/standard.py
parent1ceff800a5aac5493413c9d21c113219c38807a8 (diff)
downloadpoky-1f7eb26c947dde14698ae6e2ab88f0637027f4cb.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: fc17808799d2b667afbe4ea9837b66af70d47007) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-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 f2440ae804..fa846ce61a 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -972,6 +972,8 @@ def modify(args, config, basepath, workspace):
972 if branch == args.branch: 972 if branch == args.branch:
973 continue 973 continue
974 f.write('# patches_%s: %s\n' % (branch, ','.join(branch_patches[branch]))) 974 f.write('# patches_%s: %s\n' % (branch, ','.join(branch_patches[branch])))
975 if args.debug_build:
976 f.write('\nDEBUG_BUILD = "1"\n')
975 977
976 update_unlockedsigs(basepath, workspace, args.fixed_setup, [pn]) 978 update_unlockedsigs(basepath, workspace, args.fixed_setup, [pn])
977 979
@@ -2310,6 +2312,7 @@ def register_commands(subparsers, context):
2310 parser_modify.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (when not using -n/--no-extract) (default "%(default)s")') 2312 parser_modify.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (when not using -n/--no-extract) (default "%(default)s")')
2311 parser_modify.add_argument('--no-overrides', '-O', action="store_true", help='Do not create branches for other override configurations') 2313 parser_modify.add_argument('--no-overrides', '-O', action="store_true", help='Do not create branches for other override configurations')
2312 parser_modify.add_argument('--keep-temp', help='Keep temporary directory (for debugging)', action="store_true") 2314 parser_modify.add_argument('--keep-temp', help='Keep temporary directory (for debugging)', action="store_true")
2315 parser_modify.add_argument('--debug-build', action="store_true", help='Add DEBUG_BUILD = "1" to the modified recipe')
2313 parser_modify.set_defaults(func=modify, fixed_setup=context.fixed_setup) 2316 parser_modify.set_defaults(func=modify, fixed_setup=context.fixed_setup)
2314 2317
2315 parser_extract = subparsers.add_parser('extract', help='Extract the source for an existing recipe', 2318 parser_extract = subparsers.add_parser('extract', help='Extract the source for an existing recipe',