Embedded Linux DevSymbol autocompletion, function and symbol navigation. Supports C, Kconfig, defconfig, .config and device tree files. Plus some automation to match device tree compatibles and open their respective driver or documentation files. RequirementsThe extension works on Linux systems, also tested on WSL, and uses some packages for its correct operation. Before use you must install the following dependencies on your system:
An important detail is to install universal-ctags and not exuberant-ctags to have support to index Kconfig and device tree files. 🧪 Experimental Kconfig Engine
To use new Kconfig Engine add the following to your
Also to have the correct index to the target architecture you must add the following to your
🧪 Experimental Device Tree Source Engine
RequirementsThe new DTS engine validate and compile the device tree source using the device tree compiler
Enabling Experimental DTS EngineTo use new DTS Engine add the following to your
Changing this configuration and saving will automatically reload the extension to make effect. Also make sure to remove the
The new DTS Engine uses the
🧪 Experimental KGDB SupportNow the extension has built-in tools to be able to easily start a debug session with KGDB. An example for launch configuration for attach to KGDB:
There are some properties that need attention:
Para realizar o break do Kernel para inicializar a sessão de debug e enviar corretamente os breakpoints requeridos o comando
Essas portas serão utitilizadas pelo O modo recomendado de colocar o Kernel Linux em modo de debug e por
Mas caso queira executar o break via
🧪 Experimental Crash Utility Debugger AdapterA debugger adapter for crash utility https://github.com/crash-utility/crash was added. This new debugger adapter has type
Description of properties:
FeaturesAll features of the extension can be accessed by clicking commands through the activity bar: In the next topics, I will describe each of the extension features. Device Tree Doc From CompatibleIn a device-tree file, ".dts" or ".dtsi", or in a device driver file ".c", mouse click on a "compatible" string and select the command. VS Code will open the corresponding documentation file for the compatible: This functionality can also be selected from the right click context menu: Device Driver From CompatibleIn a device-tree file, ".dts" or ".dtsi", mouse click on a "compatible" string and select the command. VS Code will match and open the code file, “.c”, from the driver that implements compatible: This functionality can also be selected from the right click context menu: ARM/ARM64 dts/dtsi From IncludeIn a device-tree file, “.dts” or “.dtsi”, mouse click on the string of a device-tree include and select the command. VS Code will open the corresponding file: This functionality can also be selected from the right click context menu: There are two options for this command, one for ARM and other for ARM64, because the devices-tree files for each of these archs are on different paths. Linux Include From SelectedIn ".c", ".dts" or ".dtsi" file, mouse click on an include string and select the command. VS Code will open the corresponding include: This functionality can also be selected from the right click context menu: Generate CTagsLast but not least. This functionality generates a “.vscode-ctags” file in the root folder that has been opened. This file is the tag index generated by universal-ctags. This file is required to generate the project code navigation:
Known IssuesYou can check and open issues on Github repo Release NotesCheck the CHANGELOG.md AcknowledgmentThe work here was only possible because of the Exuberant CTags extension, which I used as a base. Thanks Chris Wheeldon. Thanks also to Trond Einar Snekvik who did a great job in creating a syntax highlighting for Kconfig that I am using here. |