Commit Graph

7491 Commits

Author SHA1 Message Date
Colin Cross
c150d3c878 Merge "Declare proguard_dictionary as implicit output of r8" am: 8265a8b81f
am: 7d778cb4fd

Change-Id: I0a491b12bed64116e65465cb7a72f95c42471019
2018-05-16 22:37:07 -07:00
Colin Cross
7d778cb4fd Merge "Declare proguard_dictionary as implicit output of r8"
am: 8265a8b81f

Change-Id: I201e616913985f5924c67056760a1cc29207551b
2018-05-16 22:33:06 -07:00
Treehugger Robot
8265a8b81f Merge "Declare proguard_dictionary as implicit output of r8" 2018-05-17 05:24:05 +00:00
Colin Cross
c0c664cd56 Declare proguard_dictionary as implicit output of r8
Soong was generating proguard_dictionary, but not marking it as an
output, so ninja would fail with:
ninja: error: 'out/soong/.intermediates/bootable/recovery/tools/recovery_l10n/RecoveryLocalizer/android_common/proguard_dictionary', needed by 'out/target/common/obj/APPS/RecoveryLocalizer_intermediates/proguard_dictionary', missing and no known rule to make it

Fixes: 78770148
Test: mmma bootable/recovery/tools/recovery_l10n
Change-Id: I956f92519ea81d4fb1322114214099d46d734906
2018-05-17 03:46:09 +00:00
Jaekyun Seok
708c827b32 [automerger skipped] Merge "Delete product in installClean" into pi-dev
am: 61e3d778e0  -s ours

Change-Id: I1cb921229e858bc25aa633b414935d0656cfaeec
2018-05-16 15:26:11 -07:00
TreeHugger Robot
61e3d778e0 Merge "Delete product in installClean" into pi-dev 2018-05-16 22:02:07 +00:00
Ivan Lozano
8e79f37c83 [automerger skipped] Don't export UBSan minimal runtime symbols.
am: 1838ef9be4  -s ours

Change-Id: I51657d46f1c0dde69136e17b6e308868c220defa
2018-05-16 14:54:52 -07:00
Ivan Lozano
1838ef9be4 Don't export UBSan minimal runtime symbols.
When linking in the UBSan minimal runtime, don't export the symbols.
This was resulting in an edge case where symbols were sometimes
undefined at runtime on address sanitized builds if static library
dependencies were integer overflow sanitized.

Bug: 78766744
Test: readelf on libraries show either inclusion of the shared library
or no undefined symbols related to the minimal runtime.

Change-Id: Ide85c8c6b53b400ce9166ccaf96d250797fe4b24
Merged-In: Ide85c8c6b53b400ce9166ccaf96d250797fe4b24
(cherry picked from commit 59fdea2ac2)
2018-05-16 10:42:39 -07:00
Jaekyun Seok
5ad4b35fd4 Delete product in installClean am: f6307ccae1
am: 98032a65ac

Change-Id: I64f5da8e6dadd5a453e26c596c4c1e8bf7bf6b27
2018-05-15 23:45:03 -07:00
Jaekyun Seok
98032a65ac Delete product in installClean
am: f6307ccae1

Change-Id: I8c2a8debea0f6479ddf05c934de85aa40aee75e2
2018-05-15 23:38:30 -07:00
Jaekyun Seok
49457c4182 Delete product in installClean
Bug: 79780604
Test: succeeded building and tested with taimen
Change-Id: I11c4ecb839a28d852e0d5faf762afda33166ad48
Merged-In: I11c4ecb839a28d852e0d5faf762afda33166ad48
(cherry picked from commit f6307ccae1)
2018-05-16 12:39:23 +09:00
Jaekyun Seok
f6307ccae1 Delete product in installClean
Bug: 79780604
Test: succeeded building and tested with taimen
Change-Id: I11c4ecb839a28d852e0d5faf762afda33166ad48
2018-05-16 12:25:41 +09:00
George Burgess IV
739e92e036 Merge "Disable dtor inlining for clang-tidy" am: 5e011a2531
am: e4f8bd3770

Change-Id: I1177a324072e2f2689d5870d973b1cfea989e710
2018-05-15 15:41:26 -07:00
George Burgess IV
e4f8bd3770 Merge "Disable dtor inlining for clang-tidy"
am: 5e011a2531

Change-Id: I40e7ba8727a5e8f1b79193aef308b3f9b8a4c899
2018-05-15 15:34:46 -07:00
Treehugger Robot
5e011a2531 Merge "Disable dtor inlining for clang-tidy" 2018-05-15 22:15:55 +00:00
Christopher Ferris
6290b64f3d Remove cortex-a53 linker workaround for new cpus.
am: 79dff70b46

Change-Id: Ib6e6b334611973c524c850ce8133fe0885f7f0a3
2018-05-15 15:03:24 -07:00
Ivan Lozano
3262054a81 Merge "Don't export UBSan minimal runtime symbols." am: 9bf049dcbb
am: faa09cd8c2

Change-Id: Ic47917f3fece1ddd2a571c155f69ddc7761b90af
2018-05-15 13:04:26 -07:00
Ivan Lozano
faa09cd8c2 Merge "Don't export UBSan minimal runtime symbols."
am: 9bf049dcbb

Change-Id: I601420f8387f8a661d63e321ec903c34b56a01a4
2018-05-15 12:58:52 -07:00
Ivan Lozano
9bf049dcbb Merge "Don't export UBSan minimal runtime symbols." 2018-05-15 19:44:32 +00:00
Christopher Ferris
79dff70b46 Remove cortex-a53 linker workaround for new cpus.
Bug: 78133793

Test: Built target with cortex-a53 and verified that the flag is still
Test: there.
Test: Build target with cortex-a55/cortex-a75 and verified that the flag
Test: is not there.
Test: Built and booted on a taimen, ran bionic unit tests.
Change-Id: Ibd7f497ecf46e5781cd0265463b0782babdf062a
2018-05-15 11:23:01 -07:00
Dan Willemsen
37985e7ba9 Merge "Fix multiproduct_kati product list" am: 4dff19d6a2
am: 526fceb05c

Change-Id: Ieb5e6039257ac247f02fdb06ce2414e560a27afe
2018-05-15 09:28:37 -07:00
Dan Willemsen
526fceb05c Merge "Fix multiproduct_kati product list"
am: 4dff19d6a2

Change-Id: Ib02f8cd0fe4ca94ddce621cd28f6488aa93442a7
2018-05-15 09:24:06 -07:00
Treehugger Robot
4dff19d6a2 Merge "Fix multiproduct_kati product list" 2018-05-15 16:14:33 +00:00
Ivan Lozano
59fdea2ac2 Don't export UBSan minimal runtime symbols.
When linking in the UBSan minimal runtime, don't export the symbols.
This was resulting in an edge case where symbols were sometimes
undefined at runtime on address sanitized builds if static library
dependencies were integer overflow sanitized.

Bug: 78766744
Test: readelf on libraries show either inclusion of the shared library
or no undefined symbols related to the minimal runtime.

Change-Id: Ide85c8c6b53b400ce9166ccaf96d250797fe4b24
2018-05-15 08:37:18 -07:00
Jiyong Park
07ba19c49e Support recovery and recovery_available am: f9332f1c86
am: 84c2e79acf

Change-Id: I3e99976bd8277a7f318e28e2357ac3853c64d5db
2018-05-15 02:17:44 -07:00
Jiyong Park
84c2e79acf Support recovery and recovery_available
am: f9332f1c86

Change-Id: Ied7de896ee61ca3cddda8279c149bfee3056156f
2018-05-15 02:13:42 -07:00
Dan Willemsen
04d76ef47d Fix multiproduct_kati product list
When the config loading was changed to using AndroidProducts.mk lists
from soong_ui instead of finding them itself, multiproduct_kati stopped
being able to find all the products. Move the finder initialization
earlier so that we can dump the full list.

Test: build/soong/build_test.bash -only-config
Test: forrest runs of every downstream build_test
Change-Id: I085d40f9008a47b850783499365977a0ff70ac66
2018-05-15 00:54:25 -07:00
Jiyong Park
f9332f1c86 Support recovery and recovery_available
`recovery: true` installs a module to the recovery partition.
`recovery_available: true` makes a module to be available to other
`recovery:true` or `recovery_available: true` modules.

These to are very similar to vendor, vendor_available properties, except
for the target partition.

Bug: 67916654
Bug: 64960723
Test: m -j, toybox_recovery is installed to the recovery/root/sbin
Change-Id: Iaebe0593de16c69fa70de251a61f4d018a251509
2018-05-15 16:27:12 +09:00
Dan Willemsen
5cd937bdc9 Merge "Remove the unused tags property" am: ff9d8911f6
am: ff1b69616d

Change-Id: I2800ceee079e1236992d116102ed847d28b8a223
2018-05-15 00:16:29 -07:00
Jiyong Park
5c6dd1ca3e Merge "java_sdk_library does the apicheck by default" am: a8d897cc49
am: 2ae570eb6c

Change-Id: Ia9c12685d5d30173b79de14f5a853783f979c101
2018-05-15 00:06:07 -07:00
Dan Willemsen
ff1b69616d Merge "Remove the unused tags property"
am: ff9d8911f6

Change-Id: I38d28b6a06748fb4417bbd2f16a121cb0462e7ad
2018-05-15 00:01:21 -07:00
Jiyong Park
2ae570eb6c Merge "java_sdk_library does the apicheck by default"
am: a8d897cc49

Change-Id: I9f8759bd94a4cd051946db1d750285cf78fc551b
2018-05-14 23:55:35 -07:00
Dan Willemsen
ff9d8911f6 Merge "Remove the unused tags property" 2018-05-15 05:50:51 +00:00
Jiyong Park
a8d897cc49 Merge "java_sdk_library does the apicheck by default" 2018-05-15 05:30:41 +00:00
Dan Willemsen
b22da721b3 Merge "Handle readonly directories in tmpdir" am: 2eb7e2135c
am: e81e414fd6

Change-Id: I42bed325a3fa53179e81b8f4486a3438a179a695
2018-05-14 21:55:52 -07:00
Dan Willemsen
e81e414fd6 Merge "Handle readonly directories in tmpdir"
am: 2eb7e2135c

Change-Id: I7d65ebc9da7581ad39cc495416fc188bf0c30687
2018-05-14 21:51:19 -07:00
Treehugger Robot
2eb7e2135c Merge "Handle readonly directories in tmpdir" 2018-05-15 04:38:19 +00:00
Dan Willemsen
fe8b6453a7 Handle readonly directories in tmpdir
Some tests make their temporary directories readonly. If they fail or
crash before cleaning up, they could leave these readonly directories
behind with files in them. os.RemoveAll fails with an error in this
case, and we can't start the build until they're removed.

Test: `m blueprint_tools` to run the new go tests
Change-Id: I761f96579e96167ebfd98c6cca59765bd50536ec
2018-05-14 19:44:54 -07:00
Jiyong Park
58c518b594 java_sdk_library does the apicheck by default
droiddoc now supports apicheck. java_sdk_library uses it to
automatically perform apichecks against the not-yet-release API and
the latest-released API.

A module type prebuilt_apis is added. It finds api txt files and creates
filegroup modules so that it can be referenced from java_sdk_library
across the module boundary.

Bug: 77575606
Test: m -j
Test: m -j checkapi
Test: m -j update-api
Change-Id: I0ba859972eac060296e1df2e71c4e047392d4877
2018-05-15 10:57:01 +09:00
Dan Willemsen
f923f2b54c Remove the unused tags property
And fix up androidmk / bpfix to provide warnings about what to do
instead.

Test: m blueprint_tools  (runs the tests, ensures there aren't any tags left)
Change-Id: I1a3ad8600211050420041740207d6957f44463c8
2018-05-15 00:33:11 +00:00
Dan Willemsen
ee62abfb1e Merge changes I61fdd945,I746a00a3 am: 5473c9a60a
am: 25c0624dcb

Change-Id: Ief60ee8ebdba0af0e5a82de246aa2a1279a9004a
2018-05-14 17:32:05 -07:00
Jayant Chowdhary
2a9b72b43c Merge "Allow abi diffs sanitized variants of vndk libraries on production devices." am: ce617bbbdb
am: 516bc12773

Change-Id: Ib743113b3d093a7d1a52033377329ec080af2031
2018-05-14 17:27:33 -07:00
Dan Willemsen
25c0624dcb Merge changes I61fdd945,I746a00a3
am: 5473c9a60a

Change-Id: Ied629f7d2de8cdeb45e46de6263ee9468dd7374a
2018-05-14 17:17:01 -07:00
Treehugger Robot
5473c9a60a Merge changes I61fdd945,I746a00a3
* changes:
  bpfix: Convert local_include_dirs removal to PatchList
  bpfix: Add reorderCommonProperties
2018-05-15 00:08:08 +00:00
Jayant Chowdhary
516bc12773 Merge "Allow abi diffs sanitized variants of vndk libraries on production devices."
am: ce617bbbdb

Change-Id: I9638b92af5cf9fbc87ebf4076c4a8ff84a56a540
2018-05-14 17:06:01 -07:00
Jayant Chowdhary
ce617bbbdb Merge "Allow abi diffs sanitized variants of vndk libraries on production devices." 2018-05-14 23:54:49 +00:00
George Burgess IV
030ccee01c Disable dtor inlining for clang-tidy
LLVM r328258 turned on a feature called temporary dtor inlining by
default for all of C++ in clang-tidy. This feature appears to be
somewhat over-aggressive when objects are being passed by value. For
example, given:

void foo(std::unique_ptr<int> i);

void bar() {
  auto x = std::make_unique<int>();
  int *i = x.get();
  foo(std::move(x));
  *i = 99;
}

...clang-tidy will complain about `*i = 99;` being a definite
use-after-free. This is incorrect, however: `foo` could stash the
`unique_ptr` it's given in a global, or a class member, or ...

Until upstream fixes this bug, it's probably best to keep this disabled.

Bug: None
Test: Ran the analyzer across Android locally. Nothing broke; number of
complaints dropped significantly.

Change-Id: I806c7ead34b61f4a88a7e6ec1c94751836a21e70
2018-05-14 16:30:46 -07:00
Dan Willemsen
2b21a77ad9 bpfix: Convert local_include_dirs removal to PatchList
This way we can remove the line the property was on, not just the
property itself.

Test: `m blueprint_tools` to run the unit tests
Test: diff bpfix results on all of AOSP before/after this change
Change-Id: I61fdd945e6ee711c620b79683dfee7b7c751b3c4
2018-05-14 15:32:21 -07:00
Dan Willemsen
36c69ee42b bpfix: Add reorderCommonProperties
This will move the common properties:

  name
  defaults
  device_supported
  host_supported

To be listed first (and in that order) for every module. Other
properties are untouched.

This also adds a helper to test individual passes in an end-to-end
manner, and a helper to run passes that use PatchLists.

Test: `m blueprint_tools` to add the new tests
Test: Diff bpfix results over all of aosp before/after this change
Change-Id: I746a00a3731cb7597d2613ef2dc45a99654cd122
2018-05-14 15:32:21 -07:00
Jiyong Park
b7c7580ea8 Fix some minor bugs for droiddoc am: eeb8a6474c
am: 87e61f5667

Change-Id: I40204527e86539be025b3393c0c8c24d86f269e3
2018-05-13 19:32:53 -07:00