Commit Graph

33711 Commits

Author SHA1 Message Date
Elliott Hughes
ac2cc9b4a7 Merge "Remove mips." 2023-03-09 16:14:16 +00:00
Elliott Hughes
c94cb65f21 Remove mips.
We aren't going to support riscv32, so we won't even need to reuse any
of this.

Test: treehugger
Change-Id: I80d6285ecbd0dfdeeb496be39ba63e06cbb30acd
2023-03-09 00:36:31 +00:00
Treehugger Robot
b3e82ffca0 Merge "Support riscv64 in stack tool, remove mips64" 2023-03-08 23:25:18 +00:00
Prashanth Swaminathan
01fd4185b1 Support riscv64 in stack tool, remove mips64
Test: atest python-stack_core_test
Test: Manual validation against a crash stack on aosp_riscv64.
Change-Id: Ifc3646486fda9120c30c987f9623e134d3491a9a
2023-03-08 13:21:47 -08:00
Matthew Maurer
e0447d38ef Merge "cargo2android.py: Default to vendor + product" 2023-03-08 18:16:45 +00:00
Matthew Maurer
4b869316ee cargo2android.py: Default to vendor + product
This is used for managing 3p crates, and the vast majority of them
should be available to both vendor and product. Enable support by
default.

Bug: 270690570
Test: Regenerate external/rust/crates/*
Change-Id: Ie5cb4b8d00de5e6ae37c5a69cb2ee0c0cc6f573a
2023-03-06 22:55:36 +00:00
Hsin-Yi Chen
78a68df634 Merge "Collect header files in subdirectories" 2023-03-06 01:29:54 +00:00
Hsin-Yi Chen
0802314c7b Collect header files in subdirectories
Test: LD_LIBRARY_PATH=prebuilts/clang/host/linux-x86/clang-r487747/lib \
      out/soong/host/linux-x86/nativetest64/header-checker-unittests/header-checker-unittests
Bug: 271382846
Change-Id: I2f82c0d04870d31e29f854f5256a0d5a6b5455f0
2023-03-03 18:06:12 +08:00
Yi Kong
7b960074f2 Merge "Revert "Update clang version to clang-r487747"" 2023-03-02 09:25:41 +00:00
Yi Kong
78eb9e45d8 Revert "Update clang version to clang-r487747"
Revert submission 2462733-fix-clang-tools-r487747

Rollback compiler update

Reverted changes: /q/submissionid:2462733-fix-clang-tools-r487747

Change-Id: I728d075c70c1a9938475069643c62a2cdf2a968f
2023-03-02 08:36:20 +00:00
Treehugger Robot
96da12cab0 Merge "Updating Platform Tools package version to 34.0.1 for patch release." 2023-03-01 20:43:22 +00:00
Shaju Mathew
d2a9a59528 Updating Platform Tools package version to 34.0.1 for patch release.
Bug: 270205252

Test: Treehugger

Change-Id: I7ca447b0b123f87b45c12b63c1638761a83df19d
2023-03-01 09:31:57 -08:00
Yi Kong
1fb80a1dc3 Merge "Update clang version to clang-r487747" 2023-03-01 09:54:01 +00:00
Yi Kong
c08ebcfe53 Update clang version to clang-r487747
Change-Id: I254e4e31244599c7931a169a571f56b44d34b801
Test: presubmit
Bug: 264965700
2023-03-01 16:45:59 +09:00
Logan (Tzu-hsiang) Chien
3fe6f2d960 Merge "[repo-pull] Support curl hook" 2023-02-24 18:26:18 +00:00
Logan Chien
5cf3c7b443 [repo-pull] Support curl hook
This commit adds a CURL command hook. This enables the Gerrit REST API
access through other authentication mechanisms.

Bug: b/269362063
Test: Run gerrit.py, repo_patch.py, repo_review.py with --use-curl=curl
Change-Id: I6dc4eb78760ee598df5065665c15d689916706f0
2023-02-23 08:32:41 -08:00
Hsin-Yi Chen
feab6687e7 Merge "Convert type_queue to a member of AbiDiffHelper" 2023-02-23 05:04:56 +00:00
Hsin-Yi Chen
3b7728c88b Convert type_queue to a member of AbiDiffHelper
Test: ./test.py
Bug: 255702405
Change-Id: Ic1561812fe2b456b8c21440ef8a2439b0545f874
2023-02-22 13:44:09 +08:00
Hsin-Yi Chen
cf9a57f8c6 Merge "Link clang tools' lib directory before copying clang libraries" 2023-02-21 09:46:33 +00:00
Hsin-Yi Chen
9a0530cb9b Link clang tools' lib directory before copying clang libraries
This commit restores lib/libc++.so.1 and lib/libclang-cpp.so.16 which
are indirect dependencies of clang tools.

Bug: 218706358
Test: out/soong/dist/bin/versioner -h
Change-Id: I3b9414645dc5b56d322d21e082feca260519d053
2023-02-21 08:26:14 +00:00
Hsin-Yi Chen
78562c0157 Merge "Replace TypeQueueCheckAndPushBack with TypeStackGuard" 2023-02-21 03:10:18 +00:00
Hsin-Yi Chen
4602059a36 Merge "Return DiffStatus from FilterOutRenamedRecordFields" 2023-02-20 08:24:42 +00:00
Weston Carvalho
dea943b670 Merge "gerrit.py: Support .googlesource.com credentials" 2023-02-17 19:31:10 +00:00
Weston Carvalho
bcf3bdf841 gerrit.py: Support .googlesource.com credentials
The scripts currently check that the requested domain exactly matches
one of the domains in the user's `.gitcookies` file, which causes
a "Cannot find the domain" error if the user's credentials are for all
of `googlesource.com`.

Change-Id: Ifed117e7d76c8678558720db1d518d59d986521d
2023-02-17 18:20:28 +00:00
Frederick Mayle
97f5616689 Merge "cargo_embargo: add option to set module visibility" 2023-02-16 19:26:27 +00:00
Yi Kong
05c9290c30 Merge "Revert "Migrate to the new clang lib dir"" 2023-02-16 07:44:45 +00:00
Yi Kong
f1995f429c Revert "Migrate to the new clang lib dir"
This reverts commit b9e03c4fae.

This is properly fixed by https://r.android.com/2439693.

Change-Id: I3950cb4f6c45bad56b1cd4b143e28067a462f783
2023-02-16 07:41:51 +00:00
Hsin-Yi Chen
16e50ed2a6 Merge "Simplify the return value of CompareCommonRecordFields" 2023-02-16 02:32:37 +00:00
Frederick Mayle
5b2ed7a0f5 cargo_embargo: add option to set module visibility
Bug: 269356487
Test: ran on crosvm repo
Change-Id: Ibcbdd26115c0e54d3b2825e26083ed74000b7563
2023-02-15 10:55:17 -08:00
Jeongik Cha
a6e19ea288 Merge "The script to find a proper build id for system image" 2023-02-15 15:05:58 +00:00
Jeongik Cha
2e7dd2cb9c The script to find a proper build id for system image
Bug: 269229550
Test: ./develpment/multitree/find_build_id.py
Change-Id: Ic0a4f404b56fb491d8053feab285c021a8ce2213
2023-02-15 13:56:19 +00:00
Yi Kong
f30be10e46 Merge "Migrate to the new clang lib dir" 2023-02-15 10:05:52 +00:00
Hsin-Yi Chen
033af47aa6 Replace TypeQueueCheckAndPushBack with TypeStackGuard
A followup commit will rename type_queue to type_stack.

Test: ./test.py
Bug: 255702405
Change-Id: Ie5c21b0883f08386d30b80ca955708aa7f4bdb16
2023-02-15 16:48:19 +08:00
Hsin-Yi Chen
17d6299cae Return DiffStatus from FilterOutRenamedRecordFields
The status of the filtered out fields is either kNoDiff or
kIndirectDiff. It does not affect the diff report, but makes
ModuleMerger determine redefined types more accurately.

Test: ./test.py ; update the prebuilt clang tools and build
Bug: 255702405
Change-Id: Ia94225d25e00597affa8b1e01a7c9de592bf5b05
2023-02-15 16:44:32 +08:00
Hsin-Yi Chen
3417140281 Simplify the return value of CompareCommonRecordFields
Before this commit, the function returns
(kDirectDiff, RecordFieldDiffIR *) or (kIndirectDiff/kNoDiff, nullptr).
The commit changes the return value to a DiffStatus. The caller decides
whether to create a RecordFieldDiffIR by the DiffStatus.

Test: ./test.py
Bug: 255702405
Change-Id: If2bfd5bca78e9d924be34ad5c522db9b91382cde
2023-02-15 16:44:18 +08:00
Hsin-Yi Chen
28f992d407 Merge "Diff the fields located at the same offset in a class" 2023-02-15 08:42:25 +00:00
Yi Kong
b1785dc0a8 Merge "Migrate to the new clang lib dir" 2023-02-15 08:03:29 +00:00
Yi Kong
b9e03c4fae Migrate to the new clang lib dir
Test: presubmit
Bug: 218706358
Change-Id: I010d1a6d51c42148a5f485fea1f8cb8cfad2e834
2023-02-15 16:59:01 +09:00
Yi Kong
7daeb1f361 Migrate to the new clang lib dir
Test: presubmit
Bug: 218706358
Change-Id: I6825f7c1f4340a30a14d9d8ce0fb5a3caf813f9e
2023-02-15 16:50:07 +09:00
Hsin-Yi Chen
08e0ce1066 Diff the fields located at the same offset in a class
- Rewrite the diff algorithm to handle multiple fields located at the
  same offset in a class, struct or union.
- Allow renaming a field if its (offset, type) pair is unique.

Bug: 255702405
Test: ./test.py
Change-Id: I79ebe9a827822b0f89d95952fa7d8c30499ca680
2023-02-13 10:23:02 +08:00
Treehugger Robot
66f9ab6962 Merge "Extend cargo2android.py version matching to include alpha and beta crates" 2023-02-03 22:01:40 +00:00
Colin Cross
602c2483a5 Extend cargo2android.py version matching to include alpha and beta crates
The ring crate hasn't had a non-alpha release in over two years, and
may need to be updated to an alpha release.  Modify the version regex
in cargo2android.py to recognize the alpha version as part of the
version suffix.

Test: manually run cargo2android.py in redshell
Change-Id: If48d5be339d10bc3e6651485b0038b7219403077
2023-02-03 12:39:51 -08:00
Treehugger Robot
c60a5da303 Merge "Rolling to 34.0.0. for UDC." 2023-02-03 18:01:03 +00:00
Shaju Mathew
43940506b3 Rolling to 34.0.0. for UDC.
Bug: 267330961

Test: Treehugger

Change-Id: Ieeb199230e9f037cfeb7dfa16ecc8eead17ac574
Signed-off-by: Shaju Mathew <shaju@google.com>
2023-02-02 17:03:59 -08:00
Hsin-Yi Chen
9b286a1967 Merge "Diff array types" 2023-02-02 08:27:42 +00:00
Hsin-Yi Chen
6ecc9e3997 Merge "Rename GenericFieldDiffInfo to RecordFieldDiffResult" 2023-02-02 06:31:49 +00:00
Hsin-Yi Chen
64930c428f Diff array types
This commit implements the function that compares array size, alignment,
and element type.

Test: ./test.py ; update prebuilts/clang-tools and build
Bug: 255702405

Change-Id: I4f25d22f060cfda04bbd88b9c2521461b95e6829
2023-02-02 12:58:35 +08:00
Jeffrey Vander Stoep
7b902e93f4 Merge "c2a: make Rust version matchin regex less exact" 2023-02-01 18:12:39 +00:00
Jeff Vander Stoep
b06dd5c7e2 c2a: make Rust version matchin regex less exact
Allow custom version like 1.65.0.p1 (added in aosp/2404317).

Resolves warning:
WARNING: cannot find RustDefaultVersion in
development/scripts/../../build/soong/rust/config/global.go
Change-Id: I6fced7695473e025b0f739f9986df932d2c3f5fe

Test: cargo2android.py --config cargo2android.py
no warning

Change-Id: I43ff81f061477fc0322f27fef1c950954130dbc6
2023-02-01 14:23:40 +01:00
Hsin-Yi Chen
eb5797a263 Rename GenericFieldDiffInfo to RecordFieldDiffResult
Test: ./test.py
Bug: 255702405
Change-Id: I7e1112697f75b0a93ab821a128054e7e80acd6e1
2023-02-01 16:22:31 +08:00