Commit graph

12954 commits

Author SHA1 Message Date
Colin Cross
17f6de0251 Merge changes If670f20d,I8cf5f3b8
am: 663716bc35

Change-Id: I5be513f21166ee465ce5e83144103a178983ed17
2019-03-22 10:12:08 -07:00
Colin Cross
663716bc35 Merge changes If670f20d,I8cf5f3b8
* changes:
  Panic if logging is attempted after Close
  Wait for ninja proto processing to finish when exiting
2019-03-22 16:49:29 +00:00
Colin Cross
1001a7971a Rename jetifier property and add it to androidmk
Rename jetifier_enabled to jetifier since there are no users
yet and it is more consistent with the rest of the Soong
properties.  Also add it to androidmk translation.

Fixes: 123524520
Test: androidmk_test.go
Change-Id: Ib4c688cf3cb171a822ddf7dd49467522c4c1276c
2019-03-22 15:25:30 +00:00
Jaewoong Jung
79e3e79ee8 Merge "Add override_android_app module type." am: e9665723da am: 9874d6abe6
am: c3432e294e

Change-Id: I28638a23c6140ae1775187a2afc61b15db97f487
2019-03-22 07:57:11 -07:00
Jaewoong Jung
c3432e294e Merge "Add override_android_app module type." am: e9665723da
am: 9874d6abe6

Change-Id: I497f4278a972a4388195b1032a349312a200f6fe
2019-03-22 07:53:08 -07:00
Jaewoong Jung
9874d6abe6 Merge "Add override_android_app module type."
am: e9665723da

Change-Id: Ic06e7a630d030b92a7fe24417d9946e75a25c421
2019-03-22 07:49:13 -07:00
Jaewoong Jung
e9665723da Merge "Add override_android_app module type." 2019-03-22 14:36:04 +00:00
Jiyong Park
81a6bc06ac Merge ":module syntax support properties in apex_key" am: ebe2b86cbc am: f04c3cc24c
am: c29204d55b

Change-Id: I3f5a183d5fe63dc67e69eeec801baf57377e1556
2019-03-22 00:17:33 -07:00
Jiyong Park
c29204d55b Merge ":module syntax support properties in apex_key" am: ebe2b86cbc
am: f04c3cc24c

Change-Id: I1195f408aee87686e2ede363c9e06c06f25011da
2019-03-22 00:13:28 -07:00
Jiyong Park
f04c3cc24c Merge ":module syntax support properties in apex_key"
am: ebe2b86cbc

Change-Id: Ia2d5e2ae7dd6a8fe8b29bb624105c165f382dd78
2019-03-22 00:09:26 -07:00
Treehugger Robot
ebe2b86cbc Merge ":module syntax support properties in apex_key" 2019-03-22 06:57:33 +00:00
Colin Cross
1aeb049a54 Panic if logging is attempted after Close
Attempt to catch places where logs are truncated by panicing if
logging is attempted after Close.

Test: m nothing
Change-Id: If670f20d08832ed65b63af5589b548e9815f2f0d
2019-03-21 21:17:04 -07:00
Colin Cross
b98d3bcf4e Wait for ninja proto processing to finish when exiting
Wait for the ninja proto processing goroutine to notice the fifo
has closed and exit before continuing.

Test: m nothing
Change-Id: I8cf5f3b8bf6a91496c6d2bbbd3e811eb7f0c9d21
2019-03-21 21:17:04 -07:00
Dan Willemsen
2039c8ebfb Merge "Tell make that sh_test is a NATIVE_TEST" am: 7446606eeb am: 4204e66c4c
am: 66f363dbff

Change-Id: I5f14565e0ebd1393666199263894764db722617c
2019-03-21 20:28:37 -07:00
Dan Willemsen
66f363dbff Merge "Tell make that sh_test is a NATIVE_TEST" am: 7446606eeb
am: 4204e66c4c

Change-Id: I6430c61b005bafac6310461b9fc6bf8f04a3cfb6
2019-03-21 20:16:29 -07:00
Dan Willemsen
4204e66c4c Merge "Tell make that sh_test is a NATIVE_TEST"
am: 7446606eeb

Change-Id: I1c041820479d0cc2bc090913e6ad7077d49fddae
2019-03-21 20:08:31 -07:00
Treehugger Robot
7446606eeb Merge "Tell make that sh_test is a NATIVE_TEST" 2019-03-22 02:58:42 +00:00
Jiyong Park
6788256d09 :module syntax support properties in apex_key
public_key and private_key properties support :module syntax so that the
key pairs can be dynamically created during the build, which is useful
for one-time keys.

Bug: 128960614
Test: m (apex_test amended)

Change-Id: I249b1d29f247784193b0d733a7b6a20274ece105
2019-03-22 11:41:09 +09:00
Peter Collingbourne
8338297f77 Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan." am: df59655fa3 am: 15f0586f86
am: d485165c75

Change-Id: I476bf3798d4eeec998e1f56d5ae5b22ae4481e58
2019-03-21 19:40:22 -07:00
Peter Collingbourne
d485165c75 Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan." am: df59655fa3
am: 15f0586f86

Change-Id: I793c7b21a02d2315f84c80a587e09cdfbcbc5dcd
2019-03-21 19:36:18 -07:00
Peter Collingbourne
15f0586f86 Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan."
am: df59655fa3

Change-Id: Ib441f3fde7714feb4671d039a9b8ed4d9994ddfe
2019-03-21 19:32:16 -07:00
Peter Collingbourne
df59655fa3 Merge "Pass -fsanitize-hwaddress-abi=platform when building with hwasan." 2019-03-22 02:14:34 +00:00
Inseob Kim
2d99aace46 Merge "Fix checking of empty slice properties" am: 6b200500cc am: 2aad89a882
am: adabb74d08

Change-Id: I2529e13a5310163b22ce41c12e5ab2242c944b4a
2019-03-21 19:00:18 -07:00
Inseob Kim
adabb74d08 Merge "Fix checking of empty slice properties" am: 6b200500cc
am: 2aad89a882

Change-Id: Ia4e1533586ce470b6718950421eb7fcf19fb2ca4
2019-03-21 18:48:14 -07:00
Inseob Kim
2aad89a882 Merge "Fix checking of empty slice properties"
am: 6b200500cc

Change-Id: Iee776c587b66a28e007545e47c35703dc5efdc7a
2019-03-21 18:36:09 -07:00
Treehugger Robot
6b200500cc Merge "Fix checking of empty slice properties" 2019-03-22 01:22:11 +00:00
Jaewoong Jung
5fb5b2a7f5 Add synopsis for prebuilt_apis.
Test: m soong_docs
Change-Id: I0e2cefd3dd24e5c8483d32cc325a37e96d3d495c
2019-03-21 17:44:11 -07:00
Yi Kong
69c1ed91d8 Turn on new pass manager for PGO projects
With new pass manager, dex2oat benchmark showed 1.61% performance
improvement though binary size saw an increase of 3.37%.

For Googlers, detailed benchmark results are in go/android-pgo-npm.

Test: m checkbuild
Bug: 118894695
Change-Id: I1687886acac7f61e67265a9c73997fb241ad31e6
2019-03-21 23:43:42 +00:00
Peter Collingbourne
e726ba56ac Pass -fsanitize-hwaddress-abi=platform when building with hwasan.
Reduces size of walleye_hwasan-userdebug system.img by another 4.5MB.

Bug: 122363025
Change-Id: I6d15c237dc5f330ad574a73147b2b2c712fe125e
2019-03-21 16:22:00 -07:00
Jaewoong Jung
525443aa22 Add override_android_app module type.
This is a new implementation of overriding module types that makes use
of local variants. With this, product owners can use PRODUCT_PACKAGES to
decide which override module to include in their products.

Bug: 122957760
Bug: 123640028
Test: app_test.go
Change-Id: Ie65e97f615d006b6e9475193b6017ea9d97e8e97
2019-03-21 13:26:20 -07:00
Dan Willemsen
3db041948b Tell make that sh_test is a NATIVE_TEST
So that it ends up in VTS's DATA/nativetest like a cc_test, and
otherwise acts like a test.

Test: convert external/linux-kselftest to sh_test
Change-Id: I44b7cfca45f8fe5d7fbb6eaa845a79bd70f155ef
2019-03-21 12:44:57 -07:00
Inseob Kim
6e93ac9a32 Fix checking of empty slice properties
Properties can be empty (not nil), and in that case some weird error
messages will happen to be emitted.

Bug: N/A
Test: try to build with api_pacakges: [] and srcs: []
Change-Id: I492077616e742072696265796520737465616b21
2019-03-21 22:04:01 +09:00
Anton Hansson
b56333c19b Separate device and product overlays am: 53c88448fd am: d24adcf68e
am: 40286c75e4

Change-Id: I1e6ae2fe7f5cc57271edce235b702b83b64a7902
2019-03-21 04:46:05 -07:00
Anton Hansson
40286c75e4 Separate device and product overlays am: 53c88448fd
am: d24adcf68e

Change-Id: I25b593579f6eea9884ee4a869f470f72792e4b42
2019-03-21 04:41:50 -07:00
Anton Hansson
d24adcf68e Separate device and product overlays
am: 53c88448fd

Change-Id: I68b5fe44c44c886345b607d82d6f4e44ebc106d1
2019-03-21 04:36:34 -07:00
Anton Hansson
53c88448fd Separate device and product overlays
This change adds book-keeping of whether an overlay came from
DEVICE_PACKAGE_OVERLAYS or PRODUCT_PACKAGE_OVERLAYS. This is
later used when writing the output to soong_app_prebuilt.mk, to
use either LOCAL_SOONG_[DEVICE|PRODUCT]_RRO_PACKAGES depending
on the original source.

This change is intended to be a noop on its own, but allows a
follow-up make change to customize the location of the auto-generated
RRO packages.

Bug: 127758779
Test: verify noop on presubmit targets
Change-Id: Ib24fe1d05be132c360dd6966f7c83968c9939f77
2019-03-21 11:25:46 +00:00
Jiyong Park
6964c93121 Merge "Notice support for APEX" am: 21c81326ff am: 602b6ba221
am: ba47ea108a

Change-Id: I67ecf430ba38963084c4a65d3482a0a7ff5ba73e
2019-03-20 23:20:22 -07:00
Jiyong Park
ba47ea108a Merge "Notice support for APEX" am: 21c81326ff
am: 602b6ba221

Change-Id: Idd7a4c7c736fdc55a15f1fe445408a2b57294b2a
2019-03-20 23:15:19 -07:00
Jiyong Park
602b6ba221 Merge "Notice support for APEX"
am: 21c81326ff

Change-Id: Icabbf6807ed8c3d5e8c83cc26c8b0d143fdf02fb
2019-03-20 23:10:15 -07:00
Treehugger Robot
21c81326ff Merge "Notice support for APEX" 2019-03-21 06:04:14 +00:00
Vic Yang
b7700709dd Add support for no-vendor-variant VNDK am: efd249e62a am: 409b1d2375
am: 89ac74fed3

Change-Id: I11df12e61cab3d3f694573a558fe8862023e475c
2019-03-20 21:58:34 -07:00
Vic Yang
89ac74fed3 Add support for no-vendor-variant VNDK am: efd249e62a
am: 409b1d2375

Change-Id: I11cc3438265dcea0c3fc14246eac2558b9062f3b
2019-03-20 21:46:57 -07:00
Vic Yang
409b1d2375 Add support for no-vendor-variant VNDK
am: efd249e62a

Change-Id: I14b2a2ea2e613949f4f4394e58784ad1f54a8d3f
2019-03-20 21:40:07 -07:00
Vic Yang
efd249e62a Add support for no-vendor-variant VNDK
When no-vendor-variant VNDK is enabled, the vendor variant of VNDK
libraries are not installed.  Since not all VNDK libraries will be
ready for this, we keep a list of library names in cc/vndk.go to
indicate which libraries must have their vendor variants always
installed regardless of whether no-vendor-variant VNDK is enabled.

Also add --remove-build-id option to the strip script to facilitate
the check of functional identity of the two variants.

Bug: 119423884
Test: Add a dummy VNDK library and build with
      TARGET_VNDK_USE_CORE_VARIANT := true, with the corresponding
      build/make change.

Change-Id: Ieb1589488690e1cef1e310669a8b47a8b8759dac
2019-03-21 04:29:24 +00:00
Colin Cross
5b284c4e64 Merge "Export genrules to Make as phony packages" am: f8d3be9cb7 am: 9f35fb9b37
am: c2e1ffb736

Change-Id: I51e1c32a4c27cf2ae34793d41b67d15d46f74eca
2019-03-20 17:51:22 -07:00
Colin Cross
c2e1ffb736 Merge "Export genrules to Make as phony packages" am: f8d3be9cb7
am: 9f35fb9b37

Change-Id: I7742df8fea937a582a73829607db79f3b58ae690
2019-03-20 17:38:09 -07:00
Colin Cross
9f35fb9b37 Merge "Export genrules to Make as phony packages"
am: f8d3be9cb7

Change-Id: I36284e32fd5666aa5ad75e9e3725f70f4e5dde71
2019-03-20 17:26:39 -07:00
Treehugger Robot
f8d3be9cb7 Merge "Export genrules to Make as phony packages" 2019-03-21 00:07:21 +00:00
Jiyong Park
52818fcde8 Notice support for APEX
Notice file for an APEX is created by merging notice files for the
modules included in it (plus the notice file for the APEX itself if
specified).

Notice files having the same content are not duplicated; it is emitted
only once.

Bug: 128701495
Test: m (apex_test is amended)
Test: m and inspect $(PRODUCT_OUT)/obj/NOTICE.txt to check there are
license entries for /system/apex/*.apex files

Change-Id: I169d91038291a6c71615de97cf5b03174afab5d4
2019-03-21 08:05:50 +09:00
Yi Kong
7b504bf500 Merge "Turn on string-plus-int warning" am: 5a3f31b284 am: abc025924a
am: ca71f33520

Change-Id: Ifd8a14ac5e971e20a85eda86e1aec1ee16c357ae
2019-03-20 15:01:04 -07:00