Create canonical name -> file name symlink in the symbol directory

We have two runtime APEX files: and For a device, only either of them is
selected and mounted on the canonical path /apex/

The symbol files for the two APEX modules are installed to
However, since the APEXes are mounted to /apex/
(without .debug or .release suffix), the stack trace for the files shows
/apex/ path, not the .release or .debug path. As a
result, a tool like 'stack' fails to find the symbols for the libs in
the runtime APEX.

This problem is solved by creating a symlink in the
symbol directory ($(TARGET_OUT_UNSTRIPPED)) that points either or depending on
which variant of the runtime APEX is selected for the device.

Bug: 120846816
Test: m and inspect that symbol files exist under

Change-Id: If3969736ed1c51b8375974dfa320cd798dbd730c
1 file changed