[bazel] Add opentitan_ram_binary macro and bin_to_archive rule
[bazel] Add opentitan_ram_binary macro and bin_to_archive rule

This commit adds `bin_to_archive` and `pick_correct_archive_for_device`
rules and `opentitan_ram_binary` macro for converting binaries of SRAM
programs into archive files that can be linked with functional tests.
This allows us to write functional tests for SRAM programs practically
for free.

Signed-off-by: Alphan Ulusoy <23b245cc5a07aacf75a9db847b24c67dee1707bf@google.com>

lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan