Chrome OS address sanitizer build profile

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

Building a board with address sanitizer

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

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

A private profile may be needed as well.

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

To build the eve board with asan profile, do:

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