Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devtool debug build support and update dependencies #370

Merged

Conversation

deribaucourt
Copy link
Member

@deribaucourt deribaucourt commented Jan 2, 2025

Closes #361

@deribaucourt deribaucourt force-pushed the devtool-debug-build branch 2 times, most recently from e381169 to 3fdc528 Compare January 3, 2025 13:07
@deribaucourt deribaucourt requested review from idillon-sfl and WilsonZiweiWang and removed request for idillon-sfl January 3, 2025 13:08
@deribaucourt deribaucourt marked this pull request as ready for review January 3, 2025 13:08
@deribaucourt deribaucourt force-pushed the devtool-debug-build branch 2 times, most recently from cbbb429 to e62d734 Compare January 8, 2025 08:56
semver will be used to check the Yocto version.
This will allow other tests to use a real bitbake folder when needed.
We'll use the bitbake version to make some features available or not
based on their support in the bitbake version.

The necessary ajustments were made to keep compiling.
The unknown version is '', making it easy to check if it was found or
not.
For the tests, rather than defining an empty version everywhere, I used
`as BitbakeScanResult` to mock only the attributes needed for each
test. This means less hassle next time we change the scan result
structure again.
This is the easiest way to get the bitbake version that we have access
to from the settings. It is super fast since it doesn't need to start
bitbake. Bitbake versions can be correlated to poky versions using the
Yocto Wiki Release page:
 - https://wiki.yoctoproject.org/wiki/Releases
We now have access to the bitbake version through the project scan.
This allows us to check if the devtool ide-sdk command is available
without running devtool which is a lot faster.
The devtool ide-sdk tests need to get access to a bitbake version
that was throwing an exception if not defined.
By default, we'll turn on the new devtool debug build feature. This
allows accessing the debug symbols.

Because this is a new default behavior, we'll add a new setting to
disable this feature.

The necessary adjustments are made to compile the code by including a
boolean to the build settings.
This new devtool feature allows to add the debug symbols when building
the devtool recipe. It is enabled by default in the previous commit.
In eSDK mode, we don't have access to the bitbake version.
Revert to the previous behavior of checking the availability of
devtool ide-sdk and devtool debug-build based on the help message.
@deribaucourt deribaucourt merged commit 1fa3f2e into yoctoproject:staging Jan 10, 2025
5 checks passed
@deribaucourt deribaucourt deleted the devtool-debug-build branch January 10, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support devtool modify --debug-build
2 participants