tree: ed414f34a85e09ba1d43ecaaf0f6a1c48d42b1ae [path history] [tgz]
  1. amd64/
  2. arm/
  3. arm64/
  4. x86/
  5. make.defaults
  6. parent

Chrome OS undefined behavior sanitizer build profile

This directory contains the changes needed to build a board's packages with undefined behavior sanitizer.

Building a board with undefined behavior sanitizer

To build packages with memory sanitizer (ubsan) for a board, create a profile in the overlays and point its parent to the appropriate architecture here. For example, to add an ubsan profile for eve:

$ mkdir -p overlays/overlay-eve/profiles/ubsan
$ printf "../base\nchromiumos:features/sanitizers/ubsan/amd64\n" > \

A private profile may be needed as well.

$ mkdir -p private-overlays/overlay-eve-private/profiles/ubsan
$ printf "../base\neve:ubsan\n" > \

To build the eve board with ubsan profile, do:

$ setup_board --board=eve --profile=ubsan
$ build_packages --board=eve