kleaf: Move llvm-strings out of hermetic_tools on flag.

It is only used in tests.

- move it out of hermetic_tools.
- implement hermetic_test.use_cc_toolchain and
  add cc toolchain to PATH if it is set.
- Enable use_cc_toolchain for selected tests
  that uses llvm-strings.
- Adds a flag, --remove_strings_from_hermetic_tools
  and --noremove_strings_from_hermetic_tools, that
  signals the deprecation of llvm-strings from hermetic
  tools. Add it to --config=canary.

Test: bazel test --config=stamp --remove_strings_from_hermetic_tools //common:kernel_aarch64_test
Test: bazel run --remove_strings_from_hermetic_tools //build/kernel/kleaf/tests/integration_test -- ScmversionIntegrationTest.test_mainline_ab
Bug: 249369958
Change-Id: Ia258c3b2cb24f9ebf570390a28bbbd54421ce520
1 file changed