OSDN Git Service

android-x86/build.git
7 years agoMerge "Use DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS for vendor/google_devices" am: 3d38042a00
Chih-Hung Hsieh [Fri, 30 Sep 2016 23:39:36 +0000 (23:39 +0000)]
Merge "Use DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS for vendor/google_devices" am: 3d38042a00
am: c3118d2cd2

Change-Id: I699d22bd5cf4593e31a702aa81c98104ab84874a

7 years agoMerge "Use DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS for vendor/google_devices"
Chih-Hung Hsieh [Fri, 30 Sep 2016 23:36:05 +0000 (23:36 +0000)]
Merge "Use DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS for vendor/google_devices"
am: 3d38042a00

Change-Id: I0f25786d7ef6e860093ce7c4760269f77065170a

7 years agoMerge "Use DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS for vendor/google_devices"
Treehugger Robot [Fri, 30 Sep 2016 23:25:17 +0000 (23:25 +0000)]
Merge "Use DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS for vendor/google_devices"

7 years agoUse DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS for vendor/google_devices
Chih-Hung Hsieh [Fri, 30 Sep 2016 17:41:27 +0000 (10:41 -0700)]
Use DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS for vendor/google_devices

Many source files under vendor/google_devices
are old third party code with too many clang-tidy
misc-macro-parentheses warnings.

Test: build with WITH_TIDY=1
Change-Id: I79248af3ece9c7a4436b8cf5e6c25f224fd8201b

7 years agoMerge "releasetools: Fix the reference to OPTIONS.info_dict." am: 0a5b59e78b
Tao Bao [Fri, 30 Sep 2016 17:48:38 +0000 (17:48 +0000)]
Merge "releasetools: Fix the reference to OPTIONS.info_dict." am: 0a5b59e78b
am: 8b6d59e110

Change-Id: If2385afbd245654f27a96f02414856a7ce546a00

7 years agoMerge "releasetools: Fix the reference to OPTIONS.info_dict."
Tao Bao [Fri, 30 Sep 2016 17:45:50 +0000 (17:45 +0000)]
Merge "releasetools: Fix the reference to OPTIONS.info_dict."
am: 0a5b59e78b

Change-Id: Id4f6669baa861f606d960bc9bb371c6ef728aa36

7 years agoMerge "releasetools: Fix the reference to OPTIONS.info_dict."
Tao Bao [Fri, 30 Sep 2016 17:39:22 +0000 (17:39 +0000)]
Merge "releasetools: Fix the reference to OPTIONS.info_dict."

7 years agoreleasetools: Fix the reference to OPTIONS.info_dict.
Tao Bao [Fri, 30 Sep 2016 04:59:06 +0000 (21:59 -0700)]
releasetools: Fix the reference to OPTIONS.info_dict.

sign_target_files_apks.py calls common.GetBootableImage() but without
calling 'OPTIONS = common.OPTIONS' first. In common.GetBootableImage(),
we should use the local info_dict parameter instead of OPTIONS.info_dict.

Test: sign_target_files_apks.py generates signed-TF.zip successfully.

Change-Id: Ia3d32b88691c26e5fb98feea709e3e3c3eb70fdb

7 years agoMerge "Add LOCAL_EXPORT_C_INCLUDE_DEPS" am: 1c0b5eaf83
Dan Willemsen [Fri, 30 Sep 2016 01:46:30 +0000 (01:46 +0000)]
Merge "Add LOCAL_EXPORT_C_INCLUDE_DEPS" am: 1c0b5eaf83
am: b1fdb9745f

Change-Id: I3388804b77e7125526bf6ea2814bbeb38bbc5f31

7 years agoMerge "Add LOCAL_EXPORT_C_INCLUDE_DEPS"
Dan Willemsen [Fri, 30 Sep 2016 01:44:00 +0000 (01:44 +0000)]
Merge "Add LOCAL_EXPORT_C_INCLUDE_DEPS"
am: 1c0b5eaf83

Change-Id: I356a040d02e2838fada7ae8472078579b516e8b0

7 years agoMerge "Add LOCAL_EXPORT_C_INCLUDE_DEPS"
Treehugger Robot [Fri, 30 Sep 2016 01:38:04 +0000 (01:38 +0000)]
Merge "Add LOCAL_EXPORT_C_INCLUDE_DEPS"

7 years agoAdd LOCAL_EXPORT_C_INCLUDE_DEPS
Dan Willemsen [Thu, 29 Sep 2016 19:08:29 +0000 (12:08 -0700)]
Add LOCAL_EXPORT_C_INCLUDE_DEPS

This shouldn't be necessary for most makefiles, since we add
$(LOCAL_GENERATED_SOURCES) to this already included, but for prebuilts
that aren't actually prebuilts (Soong modules), we need to pass
dependencies so that the generated headers are built before being used.

Bug: 31742855
Test: Use, inspect build-*.ninja
Change-Id: I8d9f675af639d3f40780d48a016fc079a82531c2

7 years agoMerge "Update for new Android Verified Boot (AVB)." am: 8ee6d119d1
David Zeuthen [Thu, 29 Sep 2016 18:04:21 +0000 (18:04 +0000)]
Merge "Update for new Android Verified Boot (AVB)." am: 8ee6d119d1
am: 621a3dbf7a

Change-Id: I1e7101853ba81ba21f68b9a72993dc731653692a

7 years agoMerge "Update for new Android Verified Boot (AVB)."
David Zeuthen [Thu, 29 Sep 2016 17:59:50 +0000 (17:59 +0000)]
Merge "Update for new Android Verified Boot (AVB)."
am: 8ee6d119d1

Change-Id: I4445455b1b16c6c920c39d7a1d66520eeda385cf

7 years agoMerge "Update for new Android Verified Boot (AVB)."
David Zeuthen [Thu, 29 Sep 2016 17:48:40 +0000 (17:48 +0000)]
Merge "Update for new Android Verified Boot (AVB)."

7 years agoUpdate for new Android Verified Boot (AVB).
David Zeuthen [Thu, 15 Sep 2016 17:43:54 +0000 (13:43 -0400)]
Update for new Android Verified Boot (AVB).

This updates the build system for the new Android Verified Boot
codebase. As this is based on Brillo Verified Boot, this change replaces
the existing BVB support.

Android Verified Boot is enabled by the BOARD_AVB_ENABLE variable

 BOARD_AVB_ENABLE := true

This will make the build system create vbmeta.img which will contain a
hash descriptor for boot.img, a hashtree descriptor for system.img, a
kernel-cmdline descriptor for setting up dm-verity for system.img and
append a hash-tree to system.img.

Additionally, the descriptors are left in boot.img and system.img so a
third party can create their own vbmeta.img file linking - using the
option --chain_partition - to these images. If this is not needed
footers can be erased using the 'avbtool erase_footer' command. It's
also harmless to just leave them in the images.

By default, the algorithm SHA256_RSA4096 is used with a test key from
the AVB source directory. This can be overriden by the
BOARD_AVB_ALGORITHM and BOARD_AVB_KEY_PATH variables to use e.g. a
4096-bit RSA key and SHA-512:

 BOARD_AVB_ALGORITHM := SHA512_RSA4096
 BOARD_AVB_KEY_PATH := /path/to/rsa_key_4096bits.pem

To prevent rollback attacks, the rollback index should be increased on a
regular basis. The rollback index can be set with the
BOARD_AVB_ROLLBACK_INDEX variable:

 BOARD_AVB_ROLLBACK_INDEX := 5

If this is not set, the rollback index defaults to 0.

The variable BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS can be used to specify
additional options passed to 'avbtool make_vbmeta_image'. Typical
options to be used here include '--prop', '--prop_from_file', and
'--chain_partition'.

The variable BOARD_AVBTOOL_BOOT_ADD_HASH_FOOTER_ARGS can be used to
specify additional options passed to 'avbtool add_hash_footer' for
boot.img. Typical options to be used here include '--hash_algorithm' and
'--salt'.

The variable BOARD_AVBTOOL_SYSTEM_ADD_HASHTREE_FOOTER_ARGS can be used
to specify additional options passed to 'avbtool add_hashtree_footer'
for systems.img. Typical options to be used here include
'--hash_algorithm', '--salt', and '--block_size'.

BUG=31264226
TEST=Manually tested on edison-eng by inspecting {boot, system,
  vbmeta}.img in out/ directory as well as their counterparts in
  the IMAGES/ directory of edision-target_files-eng.zeuthen.zip

Merged-In: Ic9a61cfc65c148b12996e57f04da5432eef6b982

Change-Id: I97042655bca15e7eac899f12c5bada2f6184d307

7 years agoMerge "Only run warn.py's main function if it is the main program." am: 312c310f7c
Meike Baumgärtner [Thu, 29 Sep 2016 04:11:30 +0000 (04:11 +0000)]
Merge "Only run warn.py's main function if it is the main program." am: 312c310f7c
am: ce4e16d835

Change-Id: I44973ef0f9ff3f8e1bc641db592b1ac3c96d051a

7 years agoMerge "Only run warn.py's main function if it is the main program."
Meike Baumgärtner [Thu, 29 Sep 2016 04:06:29 +0000 (04:06 +0000)]
Merge "Only run warn.py's main function if it is the main program."
am: 312c310f7c

Change-Id: I4b2c7dce195e62172a81154e261ced167d997ab5

7 years agoMerge "Only run warn.py's main function if it is the main program."
Treehugger Robot [Thu, 29 Sep 2016 03:58:07 +0000 (03:58 +0000)]
Merge "Only run warn.py's main function if it is the main program."

7 years agoMerge "Switch to using clang-3289846." am: 7ec2a39c3f
Stephen Hines [Thu, 29 Sep 2016 03:07:57 +0000 (03:07 +0000)]
Merge "Switch to using clang-3289846." am: 7ec2a39c3f
am: 523543b17c

Change-Id: Ifa9434cb0ca7ea0f57b436305b72f4d22af5b4b1

7 years agoMerge "Switch to using clang-3289846."
Stephen Hines [Thu, 29 Sep 2016 03:03:56 +0000 (03:03 +0000)]
Merge "Switch to using clang-3289846."
am: 7ec2a39c3f

Change-Id: I67851b34b3c901d8bab93c9ba6f5456eca2aba91

7 years agoMerge "Switch to using clang-3289846."
Stephen Hines [Thu, 29 Sep 2016 02:56:49 +0000 (02:56 +0000)]
Merge "Switch to using clang-3289846."

7 years agoOnly run warn.py's main function if it is the main program.
Meike Baumgärtner [Wed, 28 Sep 2016 17:48:06 +0000 (10:48 -0700)]
Only run warn.py's main function if it is the main program.

Test: run warn.py --byproject build.log
Change-Id: I155cce8c952d6d8a02c8e1809bf61a46c847c26e

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am...
Adam Seaton [Wed, 28 Sep 2016 23:50:43 +0000 (23:50 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am: b6621dcce4 am: 34a991851b am: 19f744cb11 am: e38c8eff17  -s ours am: f34934a398 am: bbde7f4d61 am: b29e4b5072 am: bf456ce691
am: c66709e250

Change-Id: I7ce273af0c92ff86f021728f776d38429689a268

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am...
Adam Seaton [Wed, 28 Sep 2016 23:47:43 +0000 (23:47 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am: b6621dcce4 am: 34a991851b am: 19f744cb11 am: e38c8eff17  -s ours am: f34934a398 am: bbde7f4d61 am: b29e4b5072
am: bf456ce691

Change-Id: I322af25b017e60b81202de28ee03ec0657e4db61

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am...
Adam Seaton [Wed, 28 Sep 2016 23:44:12 +0000 (23:44 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am: b6621dcce4 am: 34a991851b am: 19f744cb11 am: e38c8eff17  -s ours am: f34934a398 am: bbde7f4d61
am: b29e4b5072

Change-Id: Ic2e3c2cae87d0ef219c57ec45fe953ab89a92a27

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am...
Adam Seaton [Wed, 28 Sep 2016 23:41:12 +0000 (23:41 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am: b6621dcce4 am: 34a991851b am: 19f744cb11 am: e38c8eff17  -s ours am: f34934a398
am: bbde7f4d61

Change-Id: I2cd175f60442ff8359e17e5a5d6b12407fc0ee93

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am...
Adam Seaton [Wed, 28 Sep 2016 23:38:12 +0000 (23:38 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am: b6621dcce4 am: 34a991851b am: 19f744cb11 am: e38c8eff17  -s ours
am: f34934a398

Change-Id: Id21149fb75f586dbd8a5bd25eadaf0c76699bd50

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am...
Adam Seaton [Wed, 28 Sep 2016 23:35:12 +0000 (23:35 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am: b6621dcce4 am: 34a991851b am: 19f744cb11
am: e38c8eff17  -s ours

Change-Id: Ie6a3cba97e517bbe4e0e2d3154523dbe8c28ba9d

7 years agoMerge "Fix pylint warning and refactor project_list." am: 6784a3fcdd
Chih-Hung Hsieh [Wed, 28 Sep 2016 17:57:47 +0000 (17:57 +0000)]
Merge "Fix pylint warning and refactor project_list." am: 6784a3fcdd
am: ac2df1c205

Change-Id: I7f2017a50ab5b5aee425e86211e0746538e94e90

7 years agoMerge "Fix pylint warning and refactor project_list."
Chih-Hung Hsieh [Wed, 28 Sep 2016 17:54:47 +0000 (17:54 +0000)]
Merge "Fix pylint warning and refactor project_list."
am: 6784a3fcdd

Change-Id: I6ddc536af0c9ebf735ed14032d98880ed4f2175b

7 years agoMerge "Fix pylint warning and refactor project_list."
Treehugger Robot [Wed, 28 Sep 2016 17:47:41 +0000 (17:47 +0000)]
Merge "Fix pylint warning and refactor project_list."

7 years agoMerge "Analyze unchanged blocks in odex files." am: 6e12b72966
Tao Bao [Wed, 28 Sep 2016 17:15:45 +0000 (17:15 +0000)]
Merge "Analyze unchanged blocks in odex files." am: 6e12b72966
am: 0493339a1f

Change-Id: Icfdd5a0f02f43fdca2adf6468b106fcd403614bc

7 years agoMerge "Analyze unchanged blocks in odex files."
Tao Bao [Wed, 28 Sep 2016 17:13:14 +0000 (17:13 +0000)]
Merge "Analyze unchanged blocks in odex files."
am: 6e12b72966

Change-Id: Ic99c7293f6887ee8a4e3ad4e66ca9140e7dbeba9

7 years agoMerge "Analyze unchanged blocks in odex files."
Tao Bao [Wed, 28 Sep 2016 17:08:10 +0000 (17:08 +0000)]
Merge "Analyze unchanged blocks in odex files."

7 years agoSwitch to using clang-3289846.
Stephen Hines [Wed, 28 Sep 2016 15:51:55 +0000 (08:51 -0700)]
Switch to using clang-3289846.

Bug: http://b/30252254
Test: Built/boot platform using latest prebuilts.
Change-Id: I7c9357a99afec323fd766e93b5d5e941e9e06244

7 years agoMerge "Fix Google pylint warnings." am: aa5f2ccde2
Chih-hung Hsieh [Wed, 28 Sep 2016 04:19:56 +0000 (04:19 +0000)]
Merge "Fix Google pylint warnings." am: aa5f2ccde2
am: 2d06a27ae6

Change-Id: Id90eacb4b5316ac1cecd4c8578127fbf6a1c5102

7 years agoMerge "Fix Google pylint warnings."
Chih-hung Hsieh [Wed, 28 Sep 2016 04:17:25 +0000 (04:17 +0000)]
Merge "Fix Google pylint warnings."
am: aa5f2ccde2

Change-Id: Ide1a5bffa1745737142ffde982268addd8c253bb

7 years agoFix pylint warning and refactor project_list.
Chih-Hung Hsieh [Tue, 27 Sep 2016 22:39:28 +0000 (15:39 -0700)]
Fix pylint warning and refactor project_list.

Bug: 31377083
Test: run warn.py --byproject build.log
Change-Id: Id442cf6608bf5c14784063c05f5ff0b731f17486

7 years agoMerge "Fix Google pylint warnings."
Chih-hung Hsieh [Wed, 28 Sep 2016 04:10:26 +0000 (04:10 +0000)]
Merge "Fix Google pylint warnings."

7 years agoMerge "Remove WITH_SYNTAX_CHECK" am: c114bd9dbf
Dan Willemsen [Wed, 28 Sep 2016 01:55:17 +0000 (01:55 +0000)]
Merge "Remove WITH_SYNTAX_CHECK" am: c114bd9dbf
am: d640e062e8

Change-Id: Ia808c46ce1089210eaa5db02b446cfca0ed5cdde

7 years agoMerge "Remove WITH_SYNTAX_CHECK"
Dan Willemsen [Wed, 28 Sep 2016 01:52:16 +0000 (01:52 +0000)]
Merge "Remove WITH_SYNTAX_CHECK"
am: c114bd9dbf

Change-Id: I9e6c2a9c6aa48e27efe9b32d496ca21f47d4a447

7 years agoMerge "Remove WITH_SYNTAX_CHECK"
Treehugger Robot [Wed, 28 Sep 2016 01:44:23 +0000 (01:44 +0000)]
Merge "Remove WITH_SYNTAX_CHECK"

7 years agoFix Google pylint warnings.
Chih-Hung Hsieh [Wed, 28 Sep 2016 01:08:52 +0000 (18:08 -0700)]
Fix Google pylint warnings.

* Rename 'severity' to 'Severity'.
* Fix bad line indentations and space.

Test: run warn.py --byproject build.log
Change-Id: I33d701cca408b5ca4715be8d44c890942b7d132a

7 years agoMerge "Add buttons to group warning by project or severity." am: 9796175d0f
Chih-Hung Hsieh [Tue, 27 Sep 2016 21:22:40 +0000 (21:22 +0000)]
Merge "Add buttons to group warning by project or severity." am: 9796175d0f
am: 9dee2ac43c

Change-Id: I10ff9eb5c01a9d594ccc3332b5a8daaf673705c8

7 years agoMerge "Add buttons to group warning by project or severity."
Chih-Hung Hsieh [Tue, 27 Sep 2016 21:20:12 +0000 (21:20 +0000)]
Merge "Add buttons to group warning by project or severity."
am: 9796175d0f

Change-Id: I4d016ce0450870351a0454314f43d0cf75487993

7 years agoMerge "Add buttons to group warning by project or severity."
Treehugger Robot [Tue, 27 Sep 2016 21:10:40 +0000 (21:10 +0000)]
Merge "Add buttons to group warning by project or severity."

7 years agoMerge "Enable LOCAL_SANITIZE:=cfi and add LOCAL_SANITIZE_DIAG." am: 2358c55d70
Evgenii Stepanov [Tue, 27 Sep 2016 21:01:26 +0000 (21:01 +0000)]
Merge "Enable LOCAL_SANITIZE:=cfi and add LOCAL_SANITIZE_DIAG." am: 2358c55d70
am: 04b11c5acd

Change-Id: Iafb3730cc96056b09e26fa95e9bf9e73588d4315

7 years agoMerge "Enable LOCAL_SANITIZE:=cfi and add LOCAL_SANITIZE_DIAG."
Evgenii Stepanov [Tue, 27 Sep 2016 20:58:56 +0000 (20:58 +0000)]
Merge "Enable LOCAL_SANITIZE:=cfi and add LOCAL_SANITIZE_DIAG."
am: 2358c55d70

Change-Id: Ib36748ff1fe5f8bad82b37d27f9d1a94d5a8e0ee

7 years agoMerge "Enable LOCAL_SANITIZE:=cfi and add LOCAL_SANITIZE_DIAG."
Evgenii Stepanov [Tue, 27 Sep 2016 20:51:41 +0000 (20:51 +0000)]
Merge "Enable LOCAL_SANITIZE:=cfi and add LOCAL_SANITIZE_DIAG."

7 years agoFix for non-empty a[name] tags in openJdk based javadocs.
Przemyslaw Szczepaniak [Tue, 27 Sep 2016 09:08:40 +0000 (09:08 +0000)]
Fix for non-empty a[name] tags in openJdk based javadocs.
am: a7edd92c45

Change-Id: Iaef35c55e7af6f27a12944491026ee45b5ef8312

7 years agoMerge "Remove spaces from DEFAULT_TIDY_HEADER_DIRS" am: f69e48b30b
Dan Willemsen [Tue, 27 Sep 2016 01:24:11 +0000 (01:24 +0000)]
Merge "Remove spaces from DEFAULT_TIDY_HEADER_DIRS" am: f69e48b30b
am: 785d69a849

Change-Id: I5362a422641f40c3472d3a7506cc8a6354b8a09a

7 years agoMerge "Remove spaces from DEFAULT_TIDY_HEADER_DIRS"
Dan Willemsen [Tue, 27 Sep 2016 01:22:11 +0000 (01:22 +0000)]
Merge "Remove spaces from DEFAULT_TIDY_HEADER_DIRS"
am: f69e48b30b

Change-Id: I63e8c0dc06332c620b16fdb27b396b39ad2d44cf

7 years agoMerge "Remove spaces from DEFAULT_TIDY_HEADER_DIRS"
Treehugger Robot [Tue, 27 Sep 2016 01:10:30 +0000 (01:10 +0000)]
Merge "Remove spaces from DEFAULT_TIDY_HEADER_DIRS"

7 years agoRemove WITH_SYNTAX_CHECK
Dan Willemsen [Tue, 27 Sep 2016 00:37:19 +0000 (17:37 -0700)]
Remove WITH_SYNTAX_CHECK

It's no longer used. The majority of the platform is on clang anyways.

Test: m -j
Change-Id: I4fb4375eaad2469e169d34c47ae3fe2a0540aeec

7 years agoMerge "build: add hwservicemanager to the core packages" am: 69bd0bf22a
Iliyan Malchev [Tue, 27 Sep 2016 00:12:12 +0000 (00:12 +0000)]
Merge "build: add hwservicemanager to the core packages" am: 69bd0bf22a
am: 3f044f007f

Change-Id: I4d7af1e21242752e8c0c9a9822d31e2efdbecd81

7 years agoMerge "build: add hwservicemanager to the core packages"
Iliyan Malchev [Tue, 27 Sep 2016 00:08:15 +0000 (00:08 +0000)]
Merge "build: add hwservicemanager to the core packages"
am: 69bd0bf22a

Change-Id: Icd688e7e59c95ae91787c9f35e5c3d814062b1ce

7 years agoMerge "build: add hwservicemanager to the core packages"
Treehugger Robot [Mon, 26 Sep 2016 23:54:53 +0000 (23:54 +0000)]
Merge "build: add hwservicemanager to the core packages"

7 years agoRemove spaces from DEFAULT_TIDY_HEADER_DIRS
Dan Willemsen [Mon, 26 Sep 2016 22:43:45 +0000 (15:43 -0700)]
Remove spaces from DEFAULT_TIDY_HEADER_DIRS

I'm preparing to move this to Soong, and it's simpler to compare if the
spaces are removed here (to match the other lists in this file).

Test: WITH_TIDY=true; compare build.ninja before and after change
Change-Id: Ib27a19a36ebb1132300a8c1eeace1202685dfc4c

7 years agoAdd buttons to group warning by project or severity.
Chih-Hung Hsieh [Fri, 23 Sep 2016 02:22:07 +0000 (19:22 -0700)]
Add buttons to group warning by project or severity.

* Add more project patterns.
* Add more top level comments for global variables and functions.
* Resequence severity numbers to match the dump order.
* Emit warning messages and tables to static HTML JavaScript arrays.
* Replace old static HTML table dumper functions with
  new dynamic HTML JavaScript to generate sections of warnings.
* Warning messages are grouped into sections by severity or projects.
* Better descriptions for SKIP warning patterns.
* Replace output function with print.

Bug: 31377083
Test: run warn.py --byproject build.log
Change-Id: I7b44ef6223d5b2f1aa31655a5a47d854f9a1dedc

7 years agoMerge "Fix Google pylint warnings." am: bcd229277a
Chih-Hung Hsieh [Mon, 26 Sep 2016 21:25:25 +0000 (21:25 +0000)]
Merge "Fix Google pylint warnings." am: bcd229277a
am: 64af14a4d2

Change-Id: I332da66829738d6793ca1795103f903271f235c6

7 years agoMerge "Fix Google pylint warnings."
Chih-Hung Hsieh [Mon, 26 Sep 2016 21:22:56 +0000 (21:22 +0000)]
Merge "Fix Google pylint warnings."
am: bcd229277a

Change-Id: Ia7948dfee4dbb48957c4e0ab4b5517e4d9cff71e

7 years agobuild: add hwservicemanager to the core packages
Iliyan Malchev [Mon, 19 Sep 2016 22:20:14 +0000 (15:20 -0700)]
build: add hwservicemanager to the core packages

b/31458381
b/31240290

Test: passing build and runtime tests

Change-Id: I294c70d93d23ada94ff1175f2d3babd5b836eeee
Signed-off-by: Iliyan Malchev <malchev@google.com>
7 years agoMerge "Fix Google pylint warnings."
Treehugger Robot [Mon, 26 Sep 2016 21:18:07 +0000 (21:18 +0000)]
Merge "Fix Google pylint warnings."

7 years agoFix Google pylint warnings.
Chih-Hung Hsieh [Mon, 26 Sep 2016 17:56:43 +0000 (10:56 -0700)]
Fix Google pylint warnings.

* Rename variables and functions to follow Google coding style.
* Fix line indentations to follow Google coding style.
* Add module and function docstrings.
* Change shebang line to avoid pylint warning.
* Suppress some pylint warnings to avoid too many changes at once.
* Fix typos.

Test: run warn.py --byproject build.log
Change-Id: I569961981b562e35cb5609a96cd5ebb40a80829c

7 years agoFix for non-empty a[name] tags in openJdk based javadocs.
Przemyslaw Szczepaniak [Mon, 26 Sep 2016 15:21:13 +0000 (16:21 +0100)]
Fix for non-empty a[name] tags in openJdk based javadocs.

openJdk based android javadoc contains <a name=... tags
that are non-empty. Currently they are being hidden,
causing badly formatted pages for some java.* classes
(missing text and random whitespace blocks).

This change makes the existing a[name] hiding rule
apply only to empty tags.

Test: make docs
Bug: 31700998
Change-Id: Ifa75bbabe308d7aed0cce6165c1113e5a382a121

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am...
Adam Seaton [Fri, 23 Sep 2016 21:42:12 +0000 (21:42 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am: b6621dcce4 am: 34a991851b
am: 19f744cb11

Change-Id: I27a1788567a70e80185ac90eb5c787f2a611ebae

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am...
Adam Seaton [Fri, 23 Sep 2016 21:38:43 +0000 (21:38 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313 am: b6621dcce4
am: 34a991851b

Change-Id: I87c80e08a201ae4b5e39b1f86810b45e5c0dca6f

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313
Adam Seaton [Fri, 23 Sep 2016 21:36:42 +0000 (21:36 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc am: b404280313
am: b6621dcce4

Change-Id: I30d82900a829b6eb86419db32c22da1dc435d1a6

7 years agoUpdate Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc
Adam Seaton [Fri, 23 Sep 2016 21:34:42 +0000 (21:34 +0000)]
Update Security String to 2016-11-05 on klp-dev am: 5ecba8e0cc
am: b404280313

Change-Id: I98abad9af83a371a3e0b7916397f5a44e255b0f9

7 years agoUpdate Security String to 2016-11-05 on klp-dev
Adam Seaton [Fri, 23 Sep 2016 21:32:42 +0000 (21:32 +0000)]
Update Security String to 2016-11-05 on klp-dev
am: 5ecba8e0cc

Change-Id: I915af51aaa29f29fabcffe2729ab04cd73cd76cd

7 years agoAnalyze unchanged blocks in odex files.
Tao Bao [Tue, 20 Sep 2016 05:26:30 +0000 (22:26 -0700)]
Analyze unchanged blocks in odex files.

In BBOTA, we generate patches based on _all_ the blocks of a pair of
input files (src and tgt). For security incremental OTAs, one common
pattern is that only a few blocks are changed in odex files (e.g.
headers). We don't really need to stash/patch the unchanged blocks.

This CL analyzes the unchanged blocks in odex files and computes the
diff for the changed blocks only. It reduces the OTA install time by
about 25% to 40% in our experiments, by paying an increase of 5% to 30%
OTA generation time cost.

Bug: 31570716
Test: Generate an incremental and apply on device.

Change-Id: If842c1afeff6894a3d27eb60b7e8f65a179b7977

7 years agoMerge "Recognize new warning messages." am: b0553ca65b
Chih-Hung Hsieh [Fri, 23 Sep 2016 04:38:41 +0000 (04:38 +0000)]
Merge "Recognize new warning messages." am: b0553ca65b
am: d95f164112

Change-Id: I063024bfa1bf1ad1ef516905ec04a0902cc840c1

7 years agoMerge "link_type check: Support modules installed into /data" am: 8870658397
Dan Willemsen [Fri, 23 Sep 2016 04:37:25 +0000 (04:37 +0000)]
Merge "link_type check: Support modules installed into /data" am: 8870658397
am: 6d720a64c7

Change-Id: Ia4490684199bcf8d96b36f0a65c160ffe51d8d24

7 years agoMerge "Recognize new warning messages."
Chih-Hung Hsieh [Fri, 23 Sep 2016 04:37:12 +0000 (04:37 +0000)]
Merge "Recognize new warning messages."
am: b0553ca65b

Change-Id: Ic2f262f62121e19e1daba9a0a3c95fd6ebcc2b1a

7 years agolink_type check: Support modules installed into /data am: 3594cee467
Dan Willemsen [Fri, 23 Sep 2016 04:37:11 +0000 (04:37 +0000)]
link_type check: Support modules installed into /data am: 3594cee467
am: 16448d0b27

Change-Id: If1fc6d6d584dd5b58b2a8b84ad7e819d4d6d127b

7 years agoMerge "link_type check: Support modules installed into /data"
Dan Willemsen [Fri, 23 Sep 2016 04:35:14 +0000 (04:35 +0000)]
Merge "link_type check: Support modules installed into /data"
am: 8870658397

Change-Id: I73b1dcc5296c2ed3b3dec9d5be0adb3645fd5ded

7 years agolink_type check: Support modules installed into /data
Dan Willemsen [Fri, 23 Sep 2016 04:35:13 +0000 (04:35 +0000)]
link_type check: Support modules installed into /data
am: 3594cee467

Change-Id: I3735c05d317aa5c125471c7e91124cd45ebe4a98

7 years agoMerge "Recognize new warning messages."
Treehugger Robot [Fri, 23 Sep 2016 04:33:11 +0000 (04:33 +0000)]
Merge "Recognize new warning messages."

7 years agoMerge "link_type check: Support modules installed into /data"
Treehugger Robot [Fri, 23 Sep 2016 04:30:02 +0000 (04:30 +0000)]
Merge "link_type check: Support modules installed into /data"

7 years agoRecognize new warning messages.
Chih-Hung Hsieh [Wed, 21 Sep 2016 21:00:23 +0000 (14:00 -0700)]
Recognize new warning messages.

* -Wunnamed-type-template-args and -W#pragma-messages

Test: run warn.py with build.log.
Change-Id: I36277e001081604f92a4d9c92f9a0b5d3f0ee5e5

7 years agoMerge "Pass userdebug/eng variant to Soong" am: 19f24492db
Dan Willemsen [Fri, 23 Sep 2016 00:23:17 +0000 (00:23 +0000)]
Merge "Pass userdebug/eng variant to Soong" am: 19f24492db
am: 7ebc69e881

Change-Id: Ib3524a0f7e8634164ab77a10873f0e3afb4e47f1

7 years agoMerge "Pass userdebug/eng variant to Soong"
Dan Willemsen [Fri, 23 Sep 2016 00:21:40 +0000 (00:21 +0000)]
Merge "Pass userdebug/eng variant to Soong"
am: 19f24492db

Change-Id: Ic13d60a9bf2c036f3d1babcecda6c5b50c5e9a69

7 years agoMerge "Pass userdebug/eng variant to Soong"
Treehugger Robot [Fri, 23 Sep 2016 00:16:52 +0000 (00:16 +0000)]
Merge "Pass userdebug/eng variant to Soong"

7 years agoMerge "Simplify warn.py and output of warning count table and tablerow." am: eac773047f
Chih-Hung Hsieh [Fri, 23 Sep 2016 00:13:41 +0000 (00:13 +0000)]
Merge "Simplify warn.py and output of warning count table and tablerow." am: eac773047f
am: d7f5496a7c

Change-Id: Ia434a91fd21427107170931bc7a6dd26199754f1

7 years agoMerge "Simplify warn.py and output of warning count table and tablerow."
Chih-Hung Hsieh [Fri, 23 Sep 2016 00:11:13 +0000 (00:11 +0000)]
Merge "Simplify warn.py and output of warning count table and tablerow."
am: eac773047f

Change-Id: I25da893dc7add3c92fda9fe003a2cd23f9971e36

7 years agoMerge "Simplify warn.py and output of warning count table and tablerow."
Treehugger Robot [Fri, 23 Sep 2016 00:06:26 +0000 (00:06 +0000)]
Merge "Simplify warn.py and output of warning count table and tablerow."

7 years agoPass userdebug/eng variant to Soong
Dan Willemsen [Thu, 22 Sep 2016 21:52:53 +0000 (14:52 -0700)]
Pass userdebug/eng variant to Soong

Test: Run build with eng/userdebug/user and check the soong.variables
Change-Id: I7cd71a94e92526b6cc61303b13b7bc593cbbfc3a

7 years agoSimplify warn.py and output of warning count table and tablerow.
Chih-Hung Hsieh [Thu, 22 Sep 2016 20:43:12 +0000 (13:43 -0700)]
Simplify warn.py and output of warning count table and tablerow.

* Use a loop to initialize empty 'members' and 'option' of warnpatterns.
* Create severity.{color,columnheader,header} from an attributes list.
* Compute totalbyproject and totalbyseverity from a constructor.
* Skip all-zero rows and columns in the warning count table.
* Remove redundant spaces and newlines in tablerow output.

Test: run through build.log files
Change-Id: I4d3fa4ecd92e1afab91d85b7535d03f8696e83d8

7 years agoSupport "ID" lang code in place of "IN".
Dirk Dougherty [Thu, 22 Sep 2016 20:08:54 +0000 (20:08 +0000)]
Support "ID" lang code in place of "IN".
am: fc61720cd5

Change-Id: I5b83ffec940a6b0c0d613955027b7b0668cbe589

7 years agolink_type check: Support modules installed into /data
Dan Willemsen [Thu, 22 Sep 2016 17:56:36 +0000 (10:56 -0700)]
link_type check: Support modules installed into /data

Test: compare build.ninja before/after, look at warnings.html
Change-Id: I1b78748dd80b73d2601b2adf0aaac8a6b2b350d5

7 years agoMerge changes from topic 'jack-d-b3-as-stable' am: 52eafee87a
Benoit Lamarche [Thu, 22 Sep 2016 11:47:56 +0000 (11:47 +0000)]
Merge changes from topic 'jack-d-b3-as-stable' am: 52eafee87a
am: 95cea98863

Change-Id: I73136c06aafd0d57192c62a9eeb262de85e00121

7 years agoFix bad JACK_PLUGIN variable am: 16243bdbec
Yohann Roussel [Thu, 22 Sep 2016 11:46:09 +0000 (11:46 +0000)]
Fix bad JACK_PLUGIN variable am: 16243bdbec
am: fa887390aa

Change-Id: I50ffe581aa848fd1b1fe3109eacd19dce4049632

7 years agoAdd support for Jack plugin am: 53b7fbbe78
Yohann Roussel [Thu, 22 Sep 2016 11:46:01 +0000 (11:46 +0000)]
Add support for Jack plugin am: 53b7fbbe78
am: be50693fc1

Change-Id: I67172f4e42cca74f793426912cc8b0ff036bf47c

7 years agoMerge changes from topic 'jack-d-b3-as-stable'
Benoit Lamarche [Thu, 22 Sep 2016 09:43:29 +0000 (09:43 +0000)]
Merge changes from topic 'jack-d-b3-as-stable'
am: 52eafee87a

Change-Id: I7e4fb947fe8f2c5ea8d1091583c468f8c9ca3d35

7 years agoFix bad JACK_PLUGIN variable
Yohann Roussel [Thu, 22 Sep 2016 09:41:30 +0000 (09:41 +0000)]
Fix bad JACK_PLUGIN variable
am: 16243bdbec

Change-Id: Ic0c8dfc081ce1bc0a267474bf1ce7d3ca3dfbb03

7 years agoAdd support for Jack plugin
Yohann Roussel [Thu, 22 Sep 2016 09:41:22 +0000 (09:41 +0000)]
Add support for Jack plugin
am: 53b7fbbe78

Change-Id: Idec54986c0afe10973c464c6edb533321441eea7

7 years agoMerge changes from topic 'jack-d-b3-as-stable'
Benoit Lamarche [Thu, 22 Sep 2016 09:34:26 +0000 (09:34 +0000)]
Merge changes from topic 'jack-d-b3-as-stable'

* changes:
  Fix bad JACK_PLUGIN variable
  Add support for Jack plugin

7 years agoSupport "ID" lang code in place of "IN".
Dirk Dougherty [Thu, 22 Sep 2016 01:29:18 +0000 (18:29 -0700)]
Support "ID" lang code in place of "IN".

Change-Id: I56632e638fdda81e494cbb7080502b35393a291f

7 years agoMerge "Package up proguard jack_dictionary" am: f7d1a6d75f
Dan Willemsen [Wed, 21 Sep 2016 19:50:50 +0000 (19:50 +0000)]
Merge "Package up proguard jack_dictionary" am: f7d1a6d75f
am: e875b39791

Change-Id: Ibe68192917534f603872e698131534e55973edae