> For the complete documentation index, see [llms.txt](https://adeshsingh.gitbook.io/programming/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adeshsingh.gitbook.io/programming/embedded-linux/embedded-linux-os/adding-valgrind-to-build.md).

# Adding Valgrind To Build

Valgrind is provided under `meta/recipes-devtools/valgrind`. As of Nov 2017, Valgrind v3.12.0 is supported. Valgrind can be added to your Yocto image by adding the following line of code to your `build/conf/local.conf` file:

```
IMAGE_INSTALL += " valgrind"
```

Choose an image, for example, `core-image-minimal`&#x20;

Re-Compile Image&#x20;

```
#compile your source code ..
$ time bitbake <Your Image-Name>
```
