Commit graph

6985 commits

Author SHA1 Message Date
Treehugger Robot
310e688d18 Merge "Add package for printing starlark formatted data" am: 5974423b06 am: f768e9d92a am: 39c446e760 am: fced333be4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971139

Change-Id: Iea83ff9e2ccb520584801fed3d48602784afd677
2022-02-09 05:49:20 +00:00
Treehugger Robot
5974423b06 Merge "Add package for printing starlark formatted data" 2022-02-09 04:48:33 +00:00
Chih-hung Hsieh
ff96c3eaee Merge "Use only single dash for tidy flags" am: def9bf2c1c am: df8fe32206 am: 31989351ac am: 05c54e2b71
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1972547

Change-Id: Iba7ea388f51c7950eab13d7e0fbae3058011e4f7
2022-02-08 23:23:17 +00:00
Liz Kammer
72beb34609 Add package for printing starlark formatted data
Bug: 216168792
Test: build/bazel/ci/bp2build.sh
Change-Id: I3a06b19396f7ffe1c638042cda7e731dd840f1d6
2022-02-08 17:32:28 -05:00
Chih-hung Hsieh
def9bf2c1c Merge "Use only single dash for tidy flags" 2022-02-08 22:13:47 +00:00
Treehugger Robot
8c1bec5dac Merge "Use -fno-sanitize-link-runtime for bionic sanitizers" am: 3e7f5c411d am: 8793c78b35 am: 0959ae13e7 am: deb07ed7e0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1975927

Change-Id: I5836b7e8e3f0af826615d305b2ba84b6f054a9e4
2022-02-08 21:30:08 +00:00
Treehugger Robot
3e7f5c411d Merge "Use -fno-sanitize-link-runtime for bionic sanitizers" 2022-02-08 20:33:43 +00:00
Yu Liu
24003e9c28 Merge "Support bssl hash injection for libcrypto." am: febce2dfa7 am: 126db90364 am: 5daae6f2b6 am: af8948be4b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1966148

Change-Id: I7ae6542997d1e140af1cb3f8dedbf9ce95b3d7cf
2022-02-08 19:48:06 +00:00
Yu Liu
febce2dfa7 Merge "Support bssl hash injection for libcrypto." 2022-02-08 16:59:34 +00:00
Treehugger Robot
87f6b657ca Merge "Disable tidy default DeprecatedOrUnsafeBufferHandling check" am: cf637f101c am: ccf8597e8a am: a16ecabf5f am: 6f507a5e00
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976066

Change-Id: Ic5af155f1c01f916d3a63dde083a1d2b9f1eefff
2022-02-08 04:42:42 +00:00
Treehugger Robot
cf637f101c Merge "Disable tidy default DeprecatedOrUnsafeBufferHandling check" 2022-02-08 03:30:31 +00:00
Jooyung Han
35dc3aca98 Merge changes I11693286,I8d79a434 am: 472be14f26 am: 601cb3422d am: 4749d6884d am: c909932b23
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1972300

Change-Id: I21afcefa5fa7ee98efef8fad035463ba292909b7
2022-02-08 02:12:55 +00:00
Colin Cross
234b01de96 Use -fno-sanitize-link-runtime for bionic sanitizers
Currently when using sanitizers and building for the device
the -fsanitize= argument is not passed to the linker so that the
linker won't add the runtimes, which have already been added
as explicit dependencies.  Pass -fno-sanitize-link-runtime instead
in case the linker has other behaviors when passed -fsanitize=
besides adding the runtimes.  Also check for bionic instead of host
so that linux bionic gets the same linker behavior as bionic for
the device.

Test: m USE_HOST_MUSL=true host-native
Test: m checkbuild
Change-Id: I0f2966e2fd4ae8adc5cb21eb116c349bcc0c668f
2022-02-08 01:35:23 +00:00
Jooyung Han
472be14f26 Merge changes I11693286,I8d79a434
* changes:
  VNDK libs use "unique" APEX variants
  use_vndk_as_stable APEX shouldn't include VNDK lib
2022-02-08 01:03:41 +00:00
Chih-Hung Hsieh
9bcce2ef3a Disable tidy default DeprecatedOrUnsafeBufferHandling check
This will suppress warning like:
system/chre/chpp/app.c:637:3: warning: Call to function 'memset' is insecure
as it does not provide security checks introduced in the C11 standard.
Replace with analogous functions that support length arguments or provides
boundary checks such as 'memset_s' in case of C11
[clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]

Test: WITH_TIDY=1 CLANG_ANALYZER_CHECKS=1 make tidy-system-chre-chpp_subset
Change-Id: I87a7bba31aa10260fc408317a8cd54bf80c03152
2022-02-07 16:44:13 -08:00
Yu Liu
75be7b94d6 Support bssl hash injection for libcrypto.
Bug: 215541108
Test: Build libcrypto with Bazel and verify the hash injected, add unit
test
Change-Id: I0375307aab0b1e60a8be298d680e1e0af1ebb454

Change-Id: I9133ce398e2024fe7834a292bf2f5ba3222d630b
2022-02-07 14:15:42 -08:00
Treehugger Robot
1f1ad1f67d Merge "Update error messages for failed globs." am: c01e074fef am: f0fcf896f9 am: 61f5ba2ec4 am: f41f38cce2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1973544

Change-Id: I0ae667a5173bf61444a8e672b6c70b458556d5ce
2022-02-07 18:26:49 +00:00
Elliott Hughes
c19e95946a Merge "Disable BTI for now." am: b039496446 am: 188a5f90d8 am: 2bf5b9ca57 am: 2bfd0ddb90
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1969222

Change-Id: I0bcf26ddfa83f056e272b3e1cbec742fd01aa1ee
2022-02-07 18:03:26 +00:00
Treehugger Robot
c01e074fef Merge "Update error messages for failed globs." 2022-02-07 17:24:23 +00:00
Elliott Hughes
b039496446 Merge "Disable BTI for now." 2022-02-07 17:02:56 +00:00
Liz Kammer
0ea7998208 Update error messages for failed globs.
Currently error messages appear like:
&fs.PathError{Op:"open", Path:"..." Err:0x18}
which make them difficult to parse.

Test: CI
Change-Id: I18da18abc43230d0ea37d166179d07e585077f51
2022-02-07 08:56:47 -05:00
Chih-Hung Hsieh
63d59eb77c Use only single dash for tidy flags
* Work around RBE preprocessor bug, which rejects double dash flags.

Bug: 217778010
Test: make tidy-soong_subset
Change-Id: Ic7c0a95ae7afefb49cc9d124fd3c9f38fe2e0f56
2022-02-04 20:34:27 -08:00
Treehugger Robot
0eec7ea176 Merge "Remove unnecessary --warn-shared-textrel flags." am: 56fc48c482 am: 1cc8b23a02 am: c55e748b28 am: e6b66f6445
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1973342

Change-Id: Ib8a8e14dbba1e0090a1b66a74ce83ce148a52d9c
2022-02-05 01:00:40 +00:00
Treehugger Robot
56fc48c482 Merge "Remove unnecessary --warn-shared-textrel flags." 2022-02-04 23:58:41 +00:00
Sam Delmerico
67a4f2511b Merge "add target_compatible_with stanza for host targets" am: 75664acd70 am: c9c5269342 am: 608b32f41a am: d3b10485f0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1966480

Change-Id: I521a6c7e2ef12516bebe06661086ebe3338a1bad
2022-02-04 20:15:02 +00:00
Sam Delmerico
75664acd70 Merge "add target_compatible_with stanza for host targets" 2022-02-04 19:15:04 +00:00
Stephen Hines
a66590a98d Remove unnecessary --warn-shared-textrel flags.
This flag has never done anything for ld.lld, since it has this behavior
by default (and actually can't turn it off either). It's now being
removed as a valid flag from ld.lld, so it's time for Android to drop
the unnecessary flags. See https://reviews.llvm.org/D118942.

Test: builds
Change-Id: I22c344b7a55e275c1fbd5fef25f85e97a39de5c4
2022-02-04 11:02:17 -08:00
Liz Kammer
90585de317 Merge "Allowlist additional com.android.runtime blockers" am: cc1a2062f0 am: a26a05e7cd am: 56df1b8a9b am: 4d9e6e667a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1965179

Change-Id: Ia3353bbe1ab1956640790a61d402fbd0b458fce6
2022-02-04 15:20:10 +00:00
Liz Kammer
cc1a2062f0 Merge "Allowlist additional com.android.runtime blockers" 2022-02-04 14:17:32 +00:00
Chih-Hung Hsieh
13775aaefc Disable gnu-designator warnings. am: 9df9dd4d13 am: 176015cae6 am: 8832937e3a am: b490967af0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1971467

Change-Id: I966d3931f5a9cb58e3f89b4839d0a2dac982b218
2022-02-04 13:25:19 +00:00
Chih-Hung Hsieh
9df9dd4d13 Disable gnu-designator warnings.
Bug: 217613071
Test: make
Change-Id: I51a6afdf6d4b1549d2e3b65168c3cce52d8e197d
2022-02-04 00:30:20 -08:00
Jooyung Han
91f9203af4 VNDK libs use "unique" APEX variants
In case there are two vendor apexes(one with "use_vndk_as_stable:true",
and the other with "use_vndk_as_stable:false") a VNDK lib used by both
will have "APEX" variant and the former APEX will use "apex" variation.

For example,

 apex1(use_vndk_as_stable) -> foo -> libvndk
 apex2 -> bar -> libvndk

Since foo, bar and libvndk are mutated into two APEX variations("",
"apex10000"), foo will use the apex variation of libvndk.

To fix this, VNDK libs can use "unique" APEX variations. Then, in the
above example, foo will have "myapex1" variation and libvndk will have
two APEX variations("" and "apex2"). So foo will link to ""(non-APEX)
variation as fallback.

Bug: 216847402
Test: m nothing (soong tests)
Change-Id: I116932860ef79e22dc338a58b251e3ca693ab4f3
2022-02-04 13:07:14 +09:00
Sam Delmerico
75539d62ae add target_compatible_with stanza for host targets
Soong modules that are specific for the host platform (e.g.
java_library_host, cc_binary_host, java_genrule_host, etc.) should
not be built on the target platform (Android), so we add a
target_compatible_with attribute to skip this type of module on an
Android target build.

Bug: 215229742
Test: go test ./bp2build
Change-Id: Ifb76ef4e0dc4cb3adb6a64b5c375ce36f7973e48
2022-02-03 19:25:12 +00:00
Liz Kammer
35ca77edb6 Allowlist additional com.android.runtime blockers
To unblock mixed builds, uses a common mechanism to determine cc module
type across bp2build and mixed builds.

Test: mixed_droid.sh
Change-Id: I1f69ad0858cda549b7c95dbadd596e46df0f23b2
2022-02-03 11:17:05 -05:00
Edwin Wong
9586095081 Merge "Add android.hardware.drm-V1-ndk/_platform" 2022-02-03 00:54:43 +00:00
Elliott Hughes
c75994d623 Disable BTI for now.
Bug: https://issuetracker.google.com/216395195
Test: readelf -aW libc.so | grep PROPERTY
Change-Id: I4d157cbe5bf5b54cb7d3c4efe8fb74d4f72af6f3
2022-02-02 14:45:41 -08:00
Usta Shrestha
c9031001ad Merge "redundant statement" am: aab5e87431 am: fd551d0ba2 am: 8a144a3d88 am: e502431a38
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1965383

Change-Id: I37312a8f4f51a67c92d6d22e3198eb5359abc4c8
2022-02-01 03:16:26 +00:00
Usta Shrestha
e6b43abd62 redundant statement
Test: m nothing
Bug: n/a
Change-Id: Ida33234b5cf6d915a2d136d8bc0aa6684bfd33c0
2022-01-29 06:37:10 +00:00
Treehugger Robot
397c11b9b5 Merge "Revert "Reland "Enable hwasan use after scope detection.""" am: cd22b62add am: 86f074a1a4 am: cb6b5d76b8 am: 577a6d8e91
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1962182

Change-Id: Ifd92f38a8f4869ac7620c520f07ec692f799ec2b
2022-01-28 00:13:51 +00:00
Treehugger Robot
d867880303 Merge changes I728208ed,Ifdb50809 am: 428d5ad909 am: 6d67ba6d67 am: 6eb40a5b78 am: d1f8c91e4b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1963682

Change-Id: Ieb6d1c6655835a5e5e6fe011efcf1f3a5bb016f7
2022-01-27 23:13:11 +00:00
Treehugger Robot
cd22b62add Merge "Revert "Reland "Enable hwasan use after scope detection.""" 2022-01-27 22:54:24 +00:00
Pirama Arumuga Nainar
0d7d3e1647 [cc] Add per-file OWNERS for cc/coverage.go
Test: N/A
Change-Id: I728208ed9ef10e032fd12e495ba67121e4c849e5
2022-01-27 10:49:13 -08:00
Pirama Arumuga Nainar
f776c8c47c [cc/coverage] Override/disable -Wframe-larger-than
We can expect frame size increase with coverage instrumentation.

Test: N/A
Change-Id: Ifdb50809c83939ded5a26804aa0ae9404eb1a107
2022-01-27 10:47:55 -08:00
Yi Kong
df8b66863c Merge "Add tests for afdo.go" am: a86875eefb am: 0a3a678a16 am: 65ab797a36 am: f473605a47
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1961260

Change-Id: I58663272e24806104d21b2613d91902f4ceb3530
2022-01-27 05:30:32 +00:00
Yi Kong
a86875eefb Merge "Add tests for afdo.go" 2022-01-27 04:27:28 +00:00
Florian Mayer
fd337b3963 Revert "Reland "Enable hwasan use after scope detection.""
This reverts commit 0edaddf2ce.

Reason for revert: b/http://b/214007768

Change-Id: I60a2e3a5386601992fcb5632c142dd28bdb611b2
2022-01-27 03:31:28 +00:00
Treehugger Robot
ab776f7c64 Merge "[cc/tidy] Disable cert-err33-c" am: 2d305010af am: e66acc24ed am: 2d19e0908d am: 66c73ffe6d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960241

Change-Id: I4a2ab2411134f8e17663b255ced58afd238a552f
2022-01-26 12:06:13 +00:00
Treehugger Robot
2d305010af Merge "[cc/tidy] Disable cert-err33-c" 2022-01-26 10:34:58 +00:00
Yi Kong
d5954a2a92 Add tests for afdo.go
Bug: 79161490
Test: presubmit
Change-Id: I686b5226aad5011ab30a0a105f8c7866cd610502
2022-01-26 17:46:33 +08:00
Yi Kong
4fc46eebab Merge "Sampling PGO deprecation" am: 3440d0d474 am: 7449127548 am: 768f69320f am: bef7ee1451
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960104

Change-Id: If974f3b8e859f8374199dd396e3aef3e3ad4fe56
2022-01-26 07:18:06 +00:00