]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oe-init-build-env: generate .vscode from template
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Thu, 15 Feb 2024 22:53:33 +0000 (23:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Feb 2024 11:34:09 +0000 (11:34 +0000)
commit48829be7ab2edcbc2e4473f81cdaf35889d63f9c
treea3f8ca209bd6ddc77ad063fe414ca11f7b804a79
parentf36771e155b9e0cf24a885bf3340d59036aa42c5
oe-init-build-env: generate .vscode from template

Provide a reasonable default configuration for VSCode and the
yocto.bitbake extension.
The generated default configuration is generic and minimal. It's mostly
supposed to prevent VSCode from OOM exceptions if the build directory is
in the scope of the indexer plugins of VSCode.
But it also configures the yocto-bitbake plugin to just work without
manual user interaction.

The configuration is only generated if VSCode is installed. Currently,
VSCode is one of many popular editors for Yocto/OE. Removing the check
would mean that the configuration would be generated by e.g. oe-selftest
or for users not using VSCode. If it should prove useful, the check can
be removed later.

Customization for other layers is possible. A layer might provide it's
own oe-setup-build-env script which calls the oe-setup-vscode script
from poky with different folders. But it's also possible to override the
oe-setup-vscode script by another layer with a custom implementation.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
oe-init-build-env
scripts/oe-setup-vscode [new file with mode: 0755]