Commit graph

5 commits

Author SHA1 Message Date
A. Cody Schuffelen
97dff044f8 Replace #[cfg(unix)] with #[cfg(any(target_os = "android", target_os = "linux"))]
Updates are made to source and documentation.

This more accurately represents the currently supported platforms of
Android/Linux and Windows, without unexpectedly including other
unix-like operating systems.

Command to reproduce:
$ find . -type f -not -path '*/\.git/*' | xargs -I {} sed -i 's/cfg(unix)/cfg(any(target_os = "android", target_os = "linux"))/g' {}
$ cargo fmt

md files manually updated to fix line lengths.

Renaming `unix` modules to `linux` will be done in a later CL.

Test: ./tools/dev_container ./tools/presubmit
Bug: b/298269162
Change-Id: I42c1bf0abf80b9a0df25551613910293217c7295
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4909059
Commit-Queue: Cody Schuffelen <schuffelen@google.com>
Reviewed-by: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
2023-10-11 00:43:29 +00:00
Vikram Auradkar
45927eafc7 crash_report: refactor product specific code
BUG=b:286107739
TEST=none

Change-Id: I8aa0dd5335a6d85566a75afc2fc1245380dd6dcd
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4605997
Commit-Queue: Vikram Auradkar <auradkar@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
2023-06-09 23:10:04 +00:00
Vikram Auradkar
45a629e3e6 vm_control: refactor product specific code
BUG=b:286107739
TEST=none

Change-Id: I8228a34476daf83dfa809de8d1f70165b6fd6035
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4605895
Reviewed-by: Noah Gold <nkgold@google.com>
Commit-Queue: Vikram Auradkar <auradkar@google.com>
2023-06-09 23:09:47 +00:00
Vikram Auradkar
ff58179ba8 broker_ipc: refactor product specific code
Move generic code into /vendor/generic/broker_ipc crate

BUG=b:286107739
TEST=none

Change-Id: I53ff7fecc4e7a8f30443dd54457b8585b25a0ea1
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4605894
Commit-Queue: Vikram Auradkar <auradkar@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
2023-06-09 23:09:41 +00:00
Vikram Auradkar
e30a511986 anti_tamper: refactor generic code
Moves generic anti-tamper into its own crate under
'/vendor/generic/anti_tamper'

BUG=b:286107739
TEST=none

Change-Id: I47045ce9ffe690340cd1ba749bdb692bbd624f92
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4605893
Reviewed-by: Noah Gold <nkgold@google.com>
Commit-Queue: Vikram Auradkar <auradkar@google.com>
2023-06-09 23:09:35 +00:00