]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: ide-sdk recommend DEBUG_BUILD
authorAdrian Freihofer <adrian.freihofer@siemens.com>
Mon, 16 Dec 2024 17:43:05 +0000 (18:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Dec 2024 11:41:49 +0000 (11:41 +0000)
commit65950eb601c6c8aac0e4bc8683e544305346229d
treeb8370d3d0db2aed2f7807de762d3238488fa5c27
parentb886c26bf893878ba8eb6bee80dd0507e5cb0d2d
devtool: ide-sdk recommend DEBUG_BUILD

The debug_build_config function was never called. Compiling with debug
optimized compiler flags was not working. Even with the
--debug-build-config flag set, the build configuration from the recipe
was used.

The devtool ide-sdk --debug-build-config approach didn't work very well
anyway. The problem is that changing the bbappend file doesn't work
while bitbake uses the bbappend file. As a workaround, it would be
possible to parse the recipe, get DEBUG_BUILD and the path to the append
file, exit tinfoil, change the bbappend file, reopen tinfoil and do what
ide-sdk is supposed to do. Such an implementation would be complicated
and slow.
Therefore, the code that was originally supposed to implement this is
removed from ide-sdk and the new --debug-build function of devtool
modify is used instead. Additionally, a hint should be given on how to
manually add DEBUG_BUILD = '1' to bbappend.

This is compatible with the VSCode Bitbake plug-in, which does not
support this parameter anyway.

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