Commit Graph

30411 Commits

Author SHA1 Message Date
Yohann Roussel fa887390aa Fix bad JACK_PLUGIN variable
am: 16243bdbec

Change-Id: Ic0c8dfc081ce1bc0a267474bf1ce7d3ca3dfbb03
2016-09-22 09:41:30 +00:00
Yohann Roussel be50693fc1 Add support for Jack plugin
am: 53b7fbbe78

Change-Id: Idec54986c0afe10973c464c6edb533321441eea7
2016-09-22 09:41:22 +00:00
Benoit Lamarche 52eafee87a Merge changes from topic 'jack-d-b3-as-stable'
* changes:
  Fix bad JACK_PLUGIN variable
  Add support for Jack plugin
2016-09-22 09:34:27 +00:00
Dan Willemsen e875b39791 Merge "Package up proguard jack_dictionary"
am: f7d1a6d75f

Change-Id: Ia426e7d0fea6d0c6fc610d9d9fed20c9d2159ed6
2016-09-21 19:48:20 +00:00
Dan Willemsen f7d1a6d75f Merge "Package up proguard jack_dictionary" 2016-09-21 19:39:47 +00:00
Yohann Roussel 16243bdbec Fix bad JACK_PLUGIN variable
Changed to LOCAL_JACK_PLUGIN.

(cherry picked from commit 17924b136cb5bfc60d138e8c7e5c18a90b5965c3)

Test: Manually tested by some manual activations of the coverage plugin.
Change-Id: I1be4aaa502103fc308d35a5672dc4fe5900c4ebe
2016-09-21 10:54:42 +02:00
Yohann Roussel 53b7fbbe78 Add support for Jack plugin
And ensure compatibility with coverage plugin.

(cherry picked from commit 862bb84d37e3e6ca61080de58f206e512e09d4e0)

Bug: 28876950
Test: Manually tested by some manual activations of the coverage plugin.
Change-Id: I804558a501825357bf0812de626d2957eedbdc13
2016-09-21 10:53:45 +02:00
Colin Cross e373117cac Merge "Replace usages of my_register_name with my_all_targets"
am: 077d9d5fe7

Change-Id: I7e833dab3ff53e8524a227038c8de92e8e67393c
2016-09-21 02:05:53 +00:00
Treehugger Robot 077d9d5fe7 Merge "Replace usages of my_register_name with my_all_targets" 2016-09-21 00:38:59 +00:00
Colin Cross 3388670e78 Replace usages of my_register_name with my_all_targets
A few module types add extra dependencies on $(my_register_name), move
them to $(my_all_targets) so that they are built for mm and mma too.

Bug: 31526036
Test: mmm framework
Change-Id: I2e594ce771451a99691739b963f4ce517e9dd595
2016-09-20 16:03:50 -07:00
Dan Willemsen b6c061e9ff Package up proguard jack_dictionary
Bug: 31182185
Test: m dist in an unbundled branch
Change-Id: I7ee1ba076cfa03f294f8231f6bdd8fa8df5557af
2016-09-20 14:21:53 -07:00
Paul Duffin da3fdebc1d Merge "Add targets for building individual modules using javac"
am: cb6f7c2d86

Change-Id: Ic529ef16ed95c88bd32c68b050d2b784a6d6cf71
2016-09-20 11:56:48 +00:00
Paul Duffin cb6f7c2d86 Merge "Add targets for building individual modules using javac" 2016-09-20 11:51:40 +00:00
Dan Willemsen 1347d959de Merge "Fix link_type checking"
am: 665cda08f0

Change-Id: I95ca55160ae6a8b3a5d05a2a2cbc653dc3855981
2016-09-19 22:40:37 +00:00
Dan Willemsen 665cda08f0 Merge "Fix link_type checking" 2016-09-19 21:54:09 +00:00
Tao Bao 3db2c7fedd Merge "Add a script that verifies OTA package signature."
am: 3b0cb6e842

Change-Id: Ic0441a0652caf75660d599a5b773080c47f01f79
2016-09-19 17:36:35 +00:00
Treehugger Robot 3b0cb6e842 Merge "Add a script that verifies OTA package signature." 2016-09-19 17:28:01 +00:00
Paul Duffin 32bd0adf9c Add targets for building individual modules using javac
This is needed in order to be able to run error prone (which is
a plugin replacement for javac) on a subset of the java code.

Bug: 31507496
Test: Build javac-check-core-tests and check the resulting JAR
Change-Id: I5a556920572fcdad7b39d67e3f00fe0e0f1f8f46
2016-09-19 13:38:51 +01:00
Dan Willemsen 5f381cfcb2 Merge "Only update previous product config when changed"
am: 2fcacb5a22

Change-Id: I40024f4a6539130aa9395d6a923a57cd5fe49960
2016-09-17 02:36:20 +00:00
Dan Willemsen 2fcacb5a22 Merge "Only update previous product config when changed" 2016-09-17 02:29:06 +00:00
Tao Bao 9c63fb59bd Add a script that verifies OTA package signature.
Currently it supports verifying packages signed with RSA algorithms
(v1-v4 as in bootable/recovery/verifier.cpp). No support for ECDSA (v5)
signed packages yet.

$ ./build/tools/releasetools/check_ota_package_signature.py \
    bootable/recovery/tests/testdata/testkey_v1.x509.pem \
    bootable/recovery/tests/testdata/otasigned_v1.zip

Package: bootable/recovery/tests/testdata/otasigned_v1.zip
Certificate: bootable/recovery/tests/testdata/testkey_v1.x509.pem
Comment length: 1738
Signed data length: 2269
Use SHA-256: False
Digest: 115e688ec3b77743070b743453e2fc6ce8754484

VERIFIED

Bug: 31523193
Test: Used the tool to verify existing packages (like above).

Change-Id: I71d3569e858c729cb64825c5c7688ededc397aa8
2016-09-16 15:08:40 -07:00
Dan Willemsen beaa6df59f Merge "Remove objclean"
am: 1d4b79dde2

Change-Id: I89d814220509513c5948a811bfcc75241de6b3cc
2016-09-16 21:58:57 +00:00
Treehugger Robot 1d4b79dde2 Merge "Remove objclean" 2016-09-16 21:46:21 +00:00
Dan Willemsen 2cfbdf460d Only update previous product config when changed
I'm working on removing the --ignore_dirty=$(OUT_DIR)/% argument from
Kati. If we're always writing to a file that we're also reading, then
with that flag removed, we'll always reparse all the makefiles.

So instead, use the method from the generated java file cleanup where we
read from a "previous" file, write to a "current" file, then use a
cmp || mv to overwrite the "previous" file if necessary. When the flag
is removed, this will cause Kati to need to run twice any time this
changes, but it's better than forever.

Bug: 30947985
Test: Switch between aosp_arm-eng and full-eng
Change-Id: Id2d1445809b60ce26700bb2aca765df3b5c2b360
2016-09-16 13:17:08 -07:00
Dan Willemsen da7d25f2d1 Remove objclean
We don't need to manually remove objects when switching SANITIZE_TARGET
-- that will be handled by Ninja noticing that the command lines are
different.

Bug: 30947985
Test: None
Change-Id: I83c15981cf6ea258bb7fa85490b0b1ede1058aa6
2016-09-16 12:53:20 -07:00
Dan Albert ad53acf331 Merge changes from topics 'ndk-compiler-rt_extras', 'ndk-libc++-libdl'
am: 7b351cadfc

Change-Id: Ibce0de2cd113ccb1f97d9f83865be89961c22c54
2016-09-16 06:45:34 +00:00
Dan Albert d042352816 Use libcompiler-rt_extras with NDK builds.
am: c28e4bcb1c

Change-Id: I21541bee4a55951601b6cd110ec78ae94a5da94c
2016-09-16 06:45:32 +00:00
Dan Albert ec6223ec3c Always link libdl with libc++ for the NDK.
am: 2936a1e84b

Change-Id: I41b0ce041345477931b0b0f59212fcda31899259
2016-09-16 06:45:23 +00:00
Treehugger Robot 7b351cadfc Merge changes from topics 'ndk-compiler-rt_extras', 'ndk-libc++-libdl'
* changes:
  Use libcompiler-rt_extras with NDK builds.
  Always link libdl with libc++ for the NDK.
2016-09-16 06:40:32 +00:00
Ryan Campbell 1fd609359d Merge "Fix typo in coverage target out path."
am: c6507670f2

Change-Id: I09460fa54a7f63fefda7b648d615cf61ce86f778
2016-09-16 02:13:32 +00:00
Treehugger Robot c6507670f2 Merge "Fix typo in coverage target out path." 2016-09-16 02:06:18 +00:00
Ryan Campbell 737bc02ee8 Fix typo in coverage target out path.
Change-Id: I4a448708ab74e08b2c515039ee5d71c32861214e
2016-09-15 17:32:13 -07:00
Dan Willemsen 121e284b46 Fix link_type checking
This was printing "error:", but not actually triggering an error.
Instead of trying to write a single line bash script to handle this,
move the actual check into python. This allows us to print all of the
errors for a single module before triggering the failure.

Also updates the warning format and the warn.py script to properly parse
these warning. Many of the java:sdk -> java:platform warnings are false
positives due to the lack of LOCAL_SDK_VERSION markings on prebuilts.

Individual tags can be marked as warnings now, which lets us check for
system libraries linking against vendor libraries (which won't work on
AOSP). I'm not sure this is a completely valid check, which one reason
that it's just a warning.

Test: m all_link_types (with some missing libs commented out)
Change-Id: I333e418c9a4511b7c7e826891ae481da08fbf6f9
2016-09-15 14:40:39 -07:00
Colin Cross 195857c6dd Merge "Remove SRC_SYSTEM_HEADERS"
am: 4a6862e59b

Change-Id: I7864a2f482240f9e310d913d3dec07f99ad20c67
2016-09-15 18:38:57 +00:00
Treehugger Robot 4a6862e59b Merge "Remove SRC_SYSTEM_HEADERS" 2016-09-15 18:27:45 +00:00
Colin Cross 4ed13c38a5 Remove SRC_SYSTEM_HEADERS
It is inherited from Soong now.

Bug: 31492149
Change-Id: Ia9bfd9662dba16032dac68b55b4f0743c0688139
2016-09-15 09:29:15 -07:00
Yoshisato Yanagisawa 4d5f3043a2 Merge "goma.mk: do not start goma compiler_proxy if NOSTART_GOMA is set."
am: 766c348748

Change-Id: I14edc0203aeadfc85a46bc68fa849c4f3d231b87
2016-09-15 03:50:44 +00:00
Treehugger Robot 766c348748 Merge "goma.mk: do not start goma compiler_proxy if NOSTART_GOMA is set." 2016-09-15 03:41:24 +00:00
Dan Albert c28e4bcb1c Use libcompiler-rt_extras with NDK builds.
We want to build things in CTS (things built against the NDK) with
integer overflow checks. Some projects in the tree also make explicit
calls to the overflow checked builtins, and those projects need to be
built with the NDK (external/dng_sdk is the specific example that
brought this up).

Test: make checkbuild tests
Bug: None
Change-Id: Iab27dd0d931f723140de242049fa72f3b1ce0fb8
2016-09-14 16:08:48 -07:00
Dan Albert 2936a1e84b Always link libdl with libc++ for the NDK.
libc++ requires libdl whether it's statically linked or not.

Test: make checkbuild tests
Bug: None
Change-Id: I8abdcfaef779b358196716ab1193cebe278317ac
2016-09-14 16:08:04 -07:00
Chih-hung Hsieh ecbfa77903 Merge "Emit a table of warnings by project and severity."
am: 029ced528b

Change-Id: Ia4c1887c7e82623b9728f409e457d716d561716b
2016-09-14 16:48:44 +00:00
Chih-hung Hsieh 029ced528b Merge "Emit a table of warnings by project and severity." 2016-09-14 16:39:27 +00:00
Dan Willemsen f9fc0ea6fe Merge "Fix shared library install dependencies outside of /system"
am: 0b3f97b0d6

Change-Id: Ia2ffd13b26825c495559565f3c4542815956f660
2016-09-13 22:45:35 +00:00
Dan Willemsen 0b3f97b0d6 Merge "Fix shared library install dependencies outside of /system" 2016-09-13 22:39:21 +00:00
Dan Willemsen 5bdd08b2d9 Fix shared library install dependencies outside of /system
For properly picking the shared library install dependencies, HOST_OUT
and HOST_CROSS_OUT are necessary so that we don't add a dependency
between Linux and Windows. But for target modules, we must use
TARGET_OUT_ROOT instead of TARGET_OUT, or modules in /data and /vendor
won't have proper install dependencies.

Bug: 31462199
Test: m bionic-unit-tests; manual diff of generated ninja file
Change-Id: I828fa2664613296cc6c431813f5657abffdd2b8f
2016-09-13 13:47:06 -07:00
Ryan Campbell 6b92bb4ebb Merge "Implement path-based enabling of code coverage."
am: 1e1ecd5d07

Change-Id: I5f60032cfdb365a6f93bb9ca3617cbd08f6b4b21
2016-09-13 19:55:52 +00:00
Ryan Campbell 1e1ecd5d07 Merge "Implement path-based enabling of code coverage." 2016-09-13 19:48:34 +00:00
Dan Willemsen 5cf6a4578d Merge "Fix building static linux binaries"
am: 8bb71cef9f

Change-Id: Ied0e1f1d6ed4432536baeae74858f3f524a2ac65
2016-09-13 19:28:50 +00:00
Treehugger Robot 8bb71cef9f Merge "Fix building static linux binaries" 2016-09-13 19:19:46 +00:00
Dan Willemsen c9aa6fca41 Fix building static linux binaries
BUILD_HOST_static has been broken because I was stripping
-Wl,--start-group/-Wl,--end-group into a separate set of ldflags instead
of keeping them wrapped around some of the ldlibs. So don't pass some of
the build system flags through the ldlibs checker.

Bug: 30898128
Change-Id: I332b42679695cdc5da3cb0036290b6a3544699c0
2016-09-13 17:48:07 +00:00