This directory contains the changes needed to build a board's packages 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" > \ overlays/overlay-eve/profiles/ubsan/parent
A private profile may be needed as well.
$ mkdir -p private-overlays/overlay-eve-private/profiles/ubsan $ printf "../base\neve:ubsan\n" > \ private-overlays/overlay-eve-private/profiles/ubsan/parent
To build the eve board with ubsan profile, do:
$ setup_board --board=eve --profile=ubsan $ build_packages --board=eve