Commit Graph

3749 Commits

Author SHA1 Message Date
Colin Cross
d7227f99eb Support boringssl hash injection on binaries and make it transitive
Move handling the inject_bssl_hash property to a helper function,
and also treat it as set if any static libraries have it set.

Bug: 137267623
Test: m checkbuild
Change-Id: Icb12cfffb20797c807b410daffbf7fcccb1b1975
2019-09-05 15:30:05 -07:00
Mitch Phillips
4de896e1ef Add i386 host fuzzing support w/ cc_fuzz.
Adds the host fuzzing support back for 32-bit x86 targets, now that the
toolchain has been updated to export this library.

Bug: 133261679
Test: `m example_fuzzer` on a 32-bit target/cross
Change-Id: I28285d531a53eebd28c9e1b733035be48696b48f
2019-09-05 13:34:44 -07:00
Colin Cross
3ada0befe8 Add suffix and target.vendor.suffix to shared libraries
And make prebuilt shared libraries suffix and stem too.

This will be used for the vendor version of the protobuf
runtime shared libraries to append the protobuf version
number to the installed file name, which will help with
updating protobuf in the future.

Bug: 117607748
Test: m checkbuild
Change-Id: I8919a4f2e1be1ced29198af758077baf56c1f7a7
2019-09-04 12:48:02 -07:00
Yi Kong
a49fc6beae Merge "Re-enable tautological-unsigned-enum-zero-compare" am: 47236f13fc am: 38e5eacedc am: b9dc979980 am: 12eafc1908
am: f696f96746

Change-Id: Id2720b05e5643076a7023ed708463dbd0cb76a46
2019-09-03 16:48:52 -07:00
Yi Kong
38e5eacedc Merge "Re-enable tautological-unsigned-enum-zero-compare"
am: 47236f13fc

Change-Id: I4def4ff498f48dfff56709b1f8dd28fbe4fad408
2019-09-03 14:50:24 -07:00
Treehugger Robot
47236f13fc Merge "Re-enable tautological-unsigned-enum-zero-compare" 2019-09-03 21:29:54 +00:00
Martin Stjernholm
242d9ed1ca Update dexpreopt for the ART APEX name change.
am: cc4b0ad706

Change-Id: I925557842275381d5a8754771a39cf72821628f0
2019-09-02 03:43:53 -07:00
Yi Kong
8ca12bd837 Re-enable tautological-unsigned-enum-zero-compare
Clang is smarter at producing this new warning now, producing far
fewer false positives. Re-enable the diagnostic for Android.

Test: build
Bug: 72331526
Change-Id: Ide827791c51587bceb977ae4116894a8cd620eb1
2019-09-01 14:11:01 -07:00
Martin Stjernholm
cc4b0ad706 Update dexpreopt for the ART APEX name change.
Test: Build & boot
Bug: 135753770
Exempt-From-Owner-Approval: Approved internally
Change-Id: I3aac9112b022cce3ef8cfdf4bdbbed8bb0c8f4c7
Merged-In: I3aac9112b022cce3ef8cfdf4bdbbed8bb0c8f4c7
2019-08-30 17:47:30 +01:00
Jiyong Park
115e49379c Merge "Automatically enable abi checker for the stub libs" am: c61c83db9a am: 777050e48e am: 93133d1b20 am: 277742fee0
am: 8755aa7089

Change-Id: I74847a4bf43bf8d4a2e61ad2fc7a9402933daf69
2019-08-29 23:44:02 -07:00
Jiyong Park
777050e48e Merge "Automatically enable abi checker for the stub libs"
am: c61c83db9a

Change-Id: I44b7eebdd0b2ac55b55c4b0f2fa1448bdf80ba9d
2019-08-29 23:10:19 -07:00
Treehugger Robot
c61c83db9a Merge "Automatically enable abi checker for the stub libs" 2019-08-30 05:29:23 +00:00
Yi Kong
e4f4b2648c Merge "Re-enable tautological-unsigned-zero-compare" am: 73e2125894 am: 09c3304fe4 am: 7231c4a615 am: 10048a30c7
am: e6340247fc

Change-Id: I06bce2f53f1945fadd59d6198a728f458fa36d3f
2019-08-29 19:46:43 -07:00
Yi Kong
09c3304fe4 Merge "Re-enable tautological-unsigned-zero-compare"
am: 73e2125894

Change-Id: I12b004231a9f19a85f8afb9d0ac1d78bf6a50cac
2019-08-29 19:05:03 -07:00
Yi Kong
73e2125894 Merge "Re-enable tautological-unsigned-zero-compare" 2019-08-30 01:44:27 +00:00
Mitch Phillips
c121e99483 Merge "Disable FORTIFY for fuzzer builds." am: 1e7f14b1d5 am: 586b8a2042 am: 93b63f6cf2 am: 09b2272c62
am: 009a5fa238

Change-Id: If00560c58bc53ad63ca4c3089394fb9f6888809b
2019-08-29 10:49:00 -07:00
Mitch Phillips
586b8a2042 Merge "Disable FORTIFY for fuzzer builds."
am: 1e7f14b1d5

Change-Id: Ifa6d2c356181af8005e8df12801141b17e5b99ae
2019-08-29 10:10:17 -07:00
Treehugger Robot
1e7f14b1d5 Merge "Disable FORTIFY for fuzzer builds." 2019-08-29 17:00:20 +00:00
Dan Shi
f105456cc0 Merge "Add option disable_framework for auto-generated test config" am: e7eb842bbb am: f11508a94f am: dede4f07b3 am: 8b8b7ae163
am: 854e2b4b3e

Change-Id: I552254eb780ce29edf6e31b7ba9695344d1ee558
2019-08-28 22:52:18 -07:00
Dan Shi
f11508a94f Merge "Add option disable_framework for auto-generated test config"
am: e7eb842bbb

Change-Id: I0f78c37159c19db327560f6473de78177231f746
2019-08-28 22:28:13 -07:00
Dan Shi
e7eb842bbb Merge "Add option disable_framework for auto-generated test config" 2019-08-29 05:18:20 +00:00
Dan Willemsen
45b3de5f61 Merge "Disallow __DATE__/__TIME__ on host builds" am: 63cce39166 am: ce33a3546c am: 548535f970 am: b0229c99f7
am: 8ea3e4e425

Change-Id: I88b019576ff3d33514b192f53c8b07d4ca4f9392
2019-08-28 20:08:00 -07:00
Dan Willemsen
ce33a3546c Merge "Disallow __DATE__/__TIME__ on host builds"
am: 63cce39166

Change-Id: Ib04880b728ecde0cd9789077fe9d26b8a96d7229
2019-08-28 19:31:57 -07:00
Jooyung Han
4b82aec3be Merge "soong: Add tests for depending on disabled module" am: a9caf47ea2 am: 7e035187e9 am: ca723e6232 am: 21eeb6b8b7
am: 759700d0c9

Change-Id: Ic2384636a27cf9d503e5d58aa2f604d9e83ce9b0
2019-08-28 19:28:24 -07:00
Ivan Lozano
d01a8c1f58 Merge "Add Rust support to Soong." am: c6de2d9482 am: eb18951d4d am: b0af5e354c am: 8feb87c335
am: fcf07852ac

Change-Id: I4a24c649c973f2d3cfa88cf7899ab98de116864c
2019-08-28 19:16:42 -07:00
Dan Willemsen
63cce39166 Merge "Disallow __DATE__/__TIME__ on host builds" 2019-08-29 02:14:27 +00:00
Jooyung Han
7e035187e9 Merge "soong: Add tests for depending on disabled module"
am: a9caf47ea2

Change-Id: I201c11b499650c96c3d52b53eda72f163364681e
2019-08-28 17:24:44 -07:00
Dan Willemsen
028b34cbc6 Merge "Save deps when asflags contains -xassembler-with-cpp" am: 7eedfe00e7 am: ba23aa723b am: 52da2254d3 am: 8c69e4d3b2
am: 557fe1b233

Change-Id: I5c2a2868b2f4fe5d8472fb60641b7bbefb1afbbe
2019-08-28 17:24:13 -07:00
Ivan Lozano
eb18951d4d Merge "Add Rust support to Soong."
am: c6de2d9482

Change-Id: I2fd8084c35e8c4a3a27a3e3d5a2cd8b181b1646f
2019-08-28 17:07:56 -07:00
Jooyung Han
a9caf47ea2 Merge "soong: Add tests for depending on disabled module" 2019-08-28 23:58:33 +00:00
Dan Shi
20ccd2125d Add option disable_framework for auto-generated test config
The new option will allow the auto-generated test config for cc_test to
include RunCommandTargetPreparer to disable framework before the test
run and re-enable it after the test run.

Bug: 140065309
Test: test hello_world_test with the new option.
Change-Id: If2189e9474f5b11bd0d0471e231a2cae14155389
2019-08-28 15:53:43 -07:00
Ivan Lozano
c6de2d9482 Merge "Add Rust support to Soong." 2019-08-28 22:04:56 +00:00
Ivan Lozano
ffee334706 Add Rust support to Soong.
Adds support to Soong for building rust modules. This currently only
supports x86_64 device and x86 linux host targets. The functionality
is sufficient to build crosvm.

Bug: 136189233
Test: Test module builds.
Test: crosvm builds.
Change-Id: I6ea04615834a6d673578ab10ea1a2eb04259fe09
2019-08-28 14:11:07 -07:00
Dan Willemsen
ba23aa723b Merge "Save deps when asflags contains -xassembler-with-cpp"
am: 7eedfe00e7

Change-Id: Iecedb5679553bdf39c393c76e218da277b6bb8a1
2019-08-28 13:12:01 -07:00
Mitch Phillips
b9b3e79096 Disable FORTIFY for fuzzer builds.
Disables FORTIFY for fuzz target builds. We generally build with a
sanitizer and want the sanitizer to handle the bugs and provide us with
a nice stack trace.

Bug: 140187921
Test: m example_fuzzer && $ANDROID_HOST_OUT/fuzz/example_fuzzer (note
that you get a proper ASan report instead of a fortify crash)

Change-Id: I15a117b26c401a03785fb44c0f796588f366bc55
2019-08-28 12:41:07 -07:00
Jiyong Park
a034b83988 Automatically enable abi checker for the stub libs
The header ABI checker is enabled by default for the libs that are used
across APEXes.

Bug: 138219814
Test: m
Change-Id: Ic0e9c5fdfa1259f500d990abc504c452436f3bd7
2019-08-28 22:58:11 +09:00
Yi Kong
30a3c7faca Re-enable tautological-unsigned-zero-compare
Clang is smarter at producing this new warning now, producing far
fewer false positives. Re-enable the diagnostic for Android.

Test: build
Bug: 72331526
Change-Id: I2020b887fbeb3cd833462e50df835a6cd104920d
2019-08-28 09:48:30 +00:00
Dan Willemsen
98ab311767 Save deps when asflags contains -xassembler-with-cpp
Usually, ".S" files are processes with the c preprocessor, and ".s"
files are not, so they don't have any dependency information, since it
is generated by the preprocessor.

But with the -xassembler-with-cpp flag, ".s" files are processed with
the preprocessor, so we should ask for dependency information from them.

Test: NINJA_ARGS="-t deps out/soong/.intermediates/external/sonivox/arm-wt-22k/libsonivox/android_arm_armv7-a-neon_core_static/obj/external/sonivox/arm-wt-22k/lib_src/ARM-E_filter_gnu.o" m
Test: treehugger
Change-Id: Iee7baeebc2b205b5a2f33e7c1705ea4a5b4fc95a
2019-08-27 21:20:40 -07:00
Dan Willemsen
5d980c878d Disallow __DATE__/__TIME__ on host builds
Instead of just making this an error when building for the device, also
turn on this error for host builds. This is more important as we begin
to use remote caches during the build.

Test: treehugger
Change-Id: I6fcc945464032d951729aead540ea77850c88c41
2019-08-27 19:37:10 -07:00
Tom Cherry
332434666b Merge "Remove setting _USING_LIBCXX" am: e12019c434 am: 792234ac98 am: 7f0d0bef68 am: b1c4a89f84
am: 8d4c83c90a

Change-Id: I538503e43382087e17690a21ac04f2e1675ea833
2019-08-27 08:44:55 -07:00
Tom Cherry
792234ac98 Merge "Remove setting _USING_LIBCXX"
am: e12019c434

Change-Id: I106eb72e2b93543547c3c6beb7b5644d3b94b4c2
2019-08-27 08:18:27 -07:00
Tom Cherry
e12019c434 Merge "Remove setting _USING_LIBCXX" 2019-08-27 15:10:27 +00:00
Treehugger Robot
309b9c02a5 Merge "Implement sysprop_library API stability check" 2019-08-27 00:44:34 +00:00
Mitch Phillips
3c97adc8e4 Merge "[cc_fuzz] Statically link libcxx." am: 577d147eb9 am: 2e0229b210 am: cb3fd20ee7 am: 2188e75c90
am: ed6bd34807

Change-Id: I300bdb68950bf9948b5292cd486e98948c765808
2019-08-26 13:59:56 -07:00
Jooyung Han
d48f3c3885 soong: Add tests for depending on disabled module
This will check if direct deps of android.Module type is "Enabled()".
Previously, this is checked only if a module calls VisitDeps*()
functions in GenerateAndroidBuildActions().

Most modules call VisitDeps*() in GenerateAndroidBuildActions(),
but some modules don't. For example, "apex" module calls
WalkDepsBlueprint() or VisitDirectDepsBlueprint() since it
exceptionally depends on non-android.Module modules.

Therefore, when an apex module depends on disabled(enabled:false) module,
build fails with panic, which is fixed by this change.

Test: m # runs soong tests
Change-Id: I81c5c148bbd51a253d2904690eb76ae7b6df1a0f
2019-08-26 13:19:42 +00:00
Pete Bentley
cb3ef46b85 Merge changes I75b4a761,I779f28c6,If1422372,I26307dd1 am: 792942de47 am: 677ba298a5 am: fd64089052 am: b1539670b4
am: e7efc5c4aa

Change-Id: I39660905cc8f621ddf8ae52102cd85efda0e2086
2019-08-24 02:25:33 -07:00
Yi Kong
d935e4d9e9 Merge "Switch to clang-r365631" am: bdefa541d9 am: e4a824d378 am: c75c2b5c7a am: 34af8b090e
am: 3709ef5777

Change-Id: Ie7bb3d2435c3164d83c87fa9493cf85a31502df8
2019-08-24 02:19:27 -07:00
Yi Kong
2dee46cbaf Merge "Revert "Re-enable ASAN globals instrumentation for devices."" am: 20cf012ad1 am: 5006a72ec9 am: defb3a18a9 am: 9dd516237c
am: bdcaaa77ae

Change-Id: If7779d8e4451bfc4cbe85a7f15e74c264f7ad24f
2019-08-24 02:19:09 -07:00
Mitch Phillips
2e0229b210 Merge "[cc_fuzz] Statically link libcxx."
am: 577d147eb9

Change-Id: I8590e07cf9feb08be222bfc6992ef289ee526674
2019-08-23 19:53:04 -07:00
Treehugger Robot
577d147eb9 Merge "[cc_fuzz] Statically link libcxx." 2019-08-23 21:09:52 +00:00