Re: [OE-core] [PATCH 3/4] devtool: ide-sdk prefer sources from workspace

2024-02-26 Thread Enguerrand de Ribaucourt
Great explanation and fix! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#196188): https://lists.openembedded.org/g/openembedded-core/message/196188 Mute This Topic: https://lists.openembedded.org/mt/104570748/21656 Group Owner: openembedded-core+o

Re: [OE-core] [PATCH v2 2/5] devtool: code: Add source mapping for debug source files

2024-02-22 Thread Enguerrand de Ribaucourt
On 22/02/2024 14:00, adrian.freiho...@gmail.com wrote: On Wed, 2024-02-21 at 15:56 +0100, Enguerrand de Ribaucourt wrote: On 21/02/2024 15:12, Enguerrand de Ribaucourt wrote: On 20/02/2024 10:01, adrian.freiho...@gmail.com wrote: On Mon, 2024-02-19 at 17:55 +0100, Enguerrand de

[OE-core] [PATCH] bitbake: progressbar: accept value over initial maxval

2024-02-22 Thread Enguerrand de Ribaucourt
a fork from python-progressbar. It hasn't been refreshed in 8 years. We did only two commits, 5 years ago with minor modifications. This new change is also not how the upstream project is behaving. Signed-off-by: Enguerrand de Ribaucourt --- bitbake/lib/progressbar/progressbar.py |

[OE-core] [PATCH 2/2] Revert "meson: use absolute cross-compiler paths"

2024-02-22 Thread Enguerrand de Ribaucourt
the compile_commands.json. The next commits adds the necessary configuration. We can revert this one and keep the meson paths as they were. Signed-off-by: Enguerrand de Ribaucourt --- meta/classes-recipe/meson-routines.bbclass | 6 -- meta/classes-recipe/meson.bbclass | 7

[OE-core] [PATCH 0/2] devtool: ide: define compilerPath instead of using absolute paths for meson

2024-02-22 Thread Enguerrand de Ribaucourt
A feature in vscode-cpptools was just added that allow us to pass the absolute compiler path through the devtool ide-sdk generated configuration. We can revert the meson.bbclass modification to avoid any potential issues with using absolute paths in meson.cross. -=-=-=-=-=-=-=-=-=-=-=- Links: Yo

[OE-core] [PATCH 1/2] devtool: ide: define compilerPath for meson projects

2024-02-22 Thread Enguerrand de Ribaucourt
: Enguerrand de Ribaucourt --- scripts/lib/devtool/ide_plugins/ide_code.py | 1 + scripts/lib/devtool/ide_sdk.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/scripts/lib/devtool/ide_plugins/ide_code.py b/scripts/lib/devtool/ide_plugins/ide_code.py index f44665ed872

Re: [OE-core] [PATCH v2 2/5] devtool: code: Add source mapping for debug source files

2024-02-21 Thread Enguerrand de Ribaucourt
On 21/02/2024 15:12, Enguerrand de Ribaucourt wrote: On 20/02/2024 10:01, adrian.freiho...@gmail.com wrote: On Mon, 2024-02-19 at 17:55 +0100, Enguerrand de Ribaucourt wrote: When launching the debug configuration, the source files from the debug rootfs were openened in the editor instead

Re: [OE-core] [PATCH v2 2/5] devtool: code: Add source mapping for debug source files

2024-02-21 Thread Enguerrand de Ribaucourt
On 20/02/2024 10:01, adrian.freiho...@gmail.com wrote: On Mon, 2024-02-19 at 17:55 +0100, Enguerrand de Ribaucourt wrote: When launching the debug configuration, the source files from the debug rootfs were openened in the editor instead of the local workspace files. We add an exception to

Re: [OE-core] [PATCH v2 5/5] devtool: code: Provide a generic C++ configuration

2024-02-20 Thread Enguerrand de Ribaucourt
pp-example with autotools support (already on my branch) - What your patch does - Extend the oe-selftest suite to cover also the autotools support. On Mon, 2024-02-19 at 17:55 +0100, Enguerrand de Ribaucourt wrote: By default, the cpptools VSCode extension will use the host's headers and fla

[OE-core] [PATCH v2 5/5] devtool: code: Provide a generic C++ configuration

2024-02-19 Thread Enguerrand de Ribaucourt
ned-off-by: Enguerrand de Ribaucourt --- scripts/lib/devtool/ide_plugins/__init__.py | 3 +++ scripts/lib/devtool/ide_plugins/ide_code.py | 27 + scripts/lib/devtool/ide_sdk.py | 5 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/scripts/l

[OE-core] [PATCH v2 3/5] devtool: ide: vscode: Configure read-only files

2024-02-19 Thread Enguerrand de Ribaucourt
changes. Meanwhile, we should prevent write access to them. Signed-off-by: Enguerrand de Ribaucourt --- scripts/lib/devtool/ide_plugins/ide_code.py | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/lib/devtool/ide_plugins/ide_code.py b/scripts/lib/devtool

[OE-core] [PATCH v2 1/5] devtool: ide_sdk: Use bitbake's python3 for generated scripts

2024-02-19 Thread Enguerrand de Ribaucourt
following exception: AssertionError: SRE module mismatch We need to match the sys.executable to the sys.path. Signed-off-by: Enguerrand de Ribaucourt --- scripts/lib/devtool/ide_sdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/devtool/ide_sdk.py b

[OE-core] [PATCH v2 4/5] meson: use absolute cross-compiler paths

2024-02-19 Thread Enguerrand de Ribaucourt
en opened with meson/ninja maintainers to implement this at their level: - https://github.com/ninja-build/ninja/issues/2383 - https://github.com/mesonbuild/meson/issues/12834 These tools have even less information on the environment so it makes sense for Yocto to provide the absolute paths. Signed-o

[OE-core] [PATCH v2 2/5] devtool: code: Add source mapping for debug source files

2024-02-19 Thread Enguerrand de Ribaucourt
would expect compared to native development. This is also true for the devtool fallback mode. Signed-off-by: Enguerrand de Ribaucourt --- scripts/lib/devtool/ide_plugins/ide_code.py | 1 + scripts/lib/devtool/ide_sdk.py | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts

[OE-core] [PATCH v2 0/5] devtool: ide: Improve VSCode support

2024-02-19 Thread Enguerrand de Ribaucourt
These patches improve the VSCode support in devtool ide-sdk from Adrian Freihofer. I added a generic C++ configuration for the VScode extension while awaiting for autotools support. A refactoring is proposed for the meson class. Without absolute compiler paths, the linter inside VSCode will not b

[OE-core] [PATCH 6/6] devtool: code: Provide a generic C++ configuration

2024-02-15 Thread Enguerrand de Ribaucourt
By default, the cpptools VSCode extension will use the host's headers and flags for linting. This results in a lot of include errors and misleading definitions. Even though this generic configuration doesn't include all the depenendencies, it is a proper fallback for recipe classes we do not accura

[OE-core] [PATCH 5/6] meson: use absolute cross-compiler paths

2024-02-15 Thread Enguerrand de Ribaucourt
Among the files generated by meson is compile_commands.json. It is not used by bitbake during the build. However, if the devtool workspace is opened inside an IDE, that IDE can use compile_commands.json to configure linting and code completion. This is notably relied on by the new devtool ide-sdk c

[OE-core] [PATCH 4/6] devtool: ide: vscode: Configure read-only files

2024-02-15 Thread Enguerrand de Ribaucourt
When debugging or browsing files, the user may fall into external sources from other packages in the sysroot or dbg-rootfs. Modifying them will only lead to confusion since they will be overwritten by Yocto. The user should open them in a separate devtool modify session if they want to make changes

[OE-core] [PATCH 0/6] devtool: ide: Improve VSCode support

2024-02-15 Thread Enguerrand de Ribaucourt
These patches improve the VSCode support in devtool ide-sdk from Adrian Freihofer. I added a generic C++ configuration for the VScode extension while awaiting for autotools support. A refactoring is proposed for the meson class. Without absolute compiler paths, the linter inside VSCode will not b

[OE-core] [PATCH 2/6] devtool: ide_sdk: Use bitbake's python3 for generated scripts

2024-02-15 Thread Enguerrand de Ribaucourt
The generated scripts use the sys.path configuration found inside bitbake. It can be a different python version than the one used on the host through the IDE. For instance, when running the generated script deploy_target_cmake-example-core2-64 from an eSDK generated on another machine, I got the f

[OE-core] [PATCH 1/6] devtool: ide: Fix topdir exception for fallback mode

2024-02-15 Thread Enguerrand de Ribaucourt
An exception was raised because we did not have the topdir attribute which was used in fallback mode (non cmake/meson recipes). Already in the merge queue in Adrian's latest patches. --- scripts/lib/devtool/ide_sdk.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/lib/devtool/ide_sdk

[OE-core] [PATCH 3/6] devtool: code: Add source mapping for debug source files

2024-02-15 Thread Enguerrand de Ribaucourt
When launching the debug configuration, the source files from the debug rootfs were openened in the editor instead of the local workspace files. We add an exception to properly map them to the file being developed and compiled by the IDE integration. This also more closely matches what the user wou

Re: [OE-core] [PATCH v8 3/8] image-combined-dbg: make this the default

2023-11-21 Thread Enguerrand de Ribaucourt
While the debug-only rootfs is not usable by itself, changing the way it's currently combined (from the doc) could produce unintended side effects. Check out this post for explanations: https://lists.openembedded.org/g/openembedded-core/message/190490 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive a

Re: [OE-core] [PATCH] vscode: add minimal configuration

2023-11-21 Thread Enguerrand de Ribaucourt
Hello Adrian, It's a nice idea to have VSCode settings for users who want to edit poky for the reasons you mention! I think it would be nice to have such a configuration as a reference in the vscode-bitbake documentation as well. You could event contribute it yourself if you wish https://githu

Re: [OE-core] [PATCH v6 03/12] devtool: new ide plugin

2023-11-14 Thread Enguerrand de Ribaucourt
On Thu, Oct 12, 2023 at 02:53 PM, Ross Burton wrote: > > I’d not noticed image-combined-dbg existed and do wonder if that shoud be > the behaviour of the debug rootfs. Is there actually a use-case for a tarball > which is _just_ the symbols? > The use for a rootfs containing just the debug tarbal

Re: [OE-core][PATCH] mobile-broadband-provider-info: update branch name

2022-03-24 Thread Enguerrand de Ribaucourt
- Original Message - > From: "Alexandre Belloni" > To: "Enguerrand de Ribaucourt" > Cc: openembedded-core@lists.openembedded.org > Sent: Wednesday, March 23, 2022 4:35:32 PM > Subject: Re: [OE-core][PATCH] mobile-broadband-provider-info: update branch

[OE-core][PATCH] mobile-broadband-provider-info: update branch name

2022-03-23 Thread Enguerrand de Ribaucourt
The master branch was renamed main, resulting in do_fetch failure. This patch updates SRC_URI with the new branch name. Signed-off-by: Enguerrand de Ribaucourt --- .../mobile-broadband-provider-info_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git