Commit Graph

50836 Commits

Author SHA1 Message Date
Dan Willemsen
027d4372ea Merge changes I685ab841,I6ab7e488 am: 215e2c828c am: b20ba12b80
am: c116988ed1

Change-Id: I7a1af98f94d51bdd11f0c549b84765269d6f57a5
2019-01-18 17:34:21 -08:00
Evgenii Stepanov
ffaf4815fc Merge "Limit 2 uses of SANITIZE_TARGET to ASan." 2019-01-19 01:32:51 +00:00
Dan Willemsen
c116988ed1 Merge changes I685ab841,I6ab7e488 am: 215e2c828c
am: b20ba12b80

Change-Id: I93f44c548c1406f0e5e7021cdd533eb7c849964c
2019-01-18 17:11:00 -08:00
Yifan Hong
45433e44dd Really support removing / adding partitions.
- When removing a partition, BlockDifference() object
will have tgt=EmptyImage(). Fix the asserts accordingly.
Also, BlockDifference object now allow tgt=None case.

- When adding a partition, BlockDifference() object
will have src=None. Fix the asserts accordingly.

Also, add unit tests to DynamicPartitionsDifference.

Test: create incremental OTA
Test: test_common.DynamicPartitionsDifferenceTest
Bug: 111801737

Change-Id: I3a35378ecf93111b8f44545cff6ae9696b6b4851
2019-01-18 17:09:33 -08:00
Dongwon Kang
167758a153 Move UPDATABLE_BOOT_(MODULES|JARS) to base_system.mk for further extension
Test: build & boot
Bug: 112766913

Change-Id: I5af02d44c4b4163acdc4e3078dcebd84556ee049
2019-01-18 17:06:18 -08:00
Dan Willemsen
b20ba12b80 Merge changes I685ab841,I6ab7e488
am: 215e2c828c

Change-Id: I25f979ee1c09f26d7db698f0f9eca646d2fbeeae
2019-01-18 16:50:44 -08:00
Suren Baghdasaryan
bbce584336 Merge "Add libprocessgroup into VNDK" 2019-01-19 00:39:14 +00:00
Anton Hansson
0dc9878af0 Add support for TARGET_SCREEN_DENSITY
This variable is used to populate the ro.sf.lcd_density property
in /vendor/build.prop, as well as choosing the correct density
bucket for assets in recovery.

Bug: 118676832
Test: inspect taimen and crosshatch in recovery
Test: adb shell getprop ro.sf.lcd_density
Change-Id: I80cf4d28ecfbae17f1ee206a279e7d9144bd7c05
2019-01-19 00:20:18 +00:00
Treehugger Robot
215e2c828c Merge changes I685ab841,I6ab7e488
* changes:
  Add PRODUCT_BUILD_*_IMAGE, BUILDING_*_IMAGE to control building of images
  Always package ext filesystem tools
2019-01-19 00:18:02 +00:00
Colin Cross
103d6e8856 Build docs zips with make docs
The docs zips were being built for make docs dist but not for
make docs.  Add them to ALL_DOCS and to the $(LOCAL_MODULE)
phony rule.

Bug: 123068677
Test: m docs
Test: m ds-docs
Change-Id: I32634c05e392f7a5483c81d59de35ca9bc4d4ad0
2019-01-18 16:08:14 -08:00
Dan Willemsen
ec6cc8521d Add previously debug-tagged modules
These all had `LOCAL_MODULE_TAGS := debug`

Test: treehugger
Change-Id: I848d1d9fb7e9921827ef6b5b72376710150ce839
2019-01-18 15:51:41 -08:00
Dan Willemsen
27aae66e7c Merge "Add PROGUARD_HOME and PROGUARD_DEPS" am: 5f93c3a929 am: 8768ded37b
am: 03e61a74a8

Change-Id: I5490f787ed065ab0f0657ca65ebaa41013198580
2019-01-18 15:37:24 -08:00
Dan Willemsen
03e61a74a8 Merge "Add PROGUARD_HOME and PROGUARD_DEPS" am: 5f93c3a929
am: 8768ded37b

Change-Id: Ida46e98db111b412656bd3573fc0d313b9a45679
2019-01-18 15:11:40 -08:00
David Brazdil
c93c2939b8 Merge "Move HIDDENAPI_FLAGS dependencies to frameworks/base" am: 12e7e928a2 am: 622ad444e9
am: a098903ede

Change-Id: I7d13c887bbef11c137d909a804ec5d2823b7b894
2019-01-18 15:02:48 -08:00
Henry Fang
4a03d1a98d Update CEC hal to 2.0
change make file for cec@2.0 hal
Test: manual
Bug: 122853595

Change-Id: I540a0c816c2d7abe6133ce0d2a499b5785b02a0a
2019-01-18 14:49:21 -08:00
David Brazdil
a098903ede Merge "Move HIDDENAPI_FLAGS dependencies to frameworks/base" am: 12e7e928a2
am: 622ad444e9

Change-Id: I4c23dbdd33a81e9efee378a83df6b60880a7a694
2019-01-18 14:49:20 -08:00
Dan Willemsen
8768ded37b Merge "Add PROGUARD_HOME and PROGUARD_DEPS"
am: 5f93c3a929

Change-Id: Ia3427ad28240fb524aa5ddcd37ed169bca62c9df
2019-01-18 14:45:25 -08:00
David Brazdil
622ad444e9 Merge "Move HIDDENAPI_FLAGS dependencies to frameworks/base"
am: 12e7e928a2

Change-Id: Ic17c3b1c6c041afb91a7ea8cb54ddeaea0f5cc41
2019-01-18 14:34:56 -08:00
Treehugger Robot
5f93c3a929 Merge "Add PROGUARD_HOME and PROGUARD_DEPS" 2019-01-18 22:18:50 +00:00
Treehugger Robot
12e7e928a2 Merge "Move HIDDENAPI_FLAGS dependencies to frameworks/base" 2019-01-18 22:13:53 +00:00
Evgenii Stepanov
60beecc90c Limit 2 uses of SANITIZE_TARGET to ASan.
These two places are checking for ifdef(SANITIZE_TARGET) but what
they are really looking for is the second stage of ASan build.

Fix the checks so that they do not apply to HWASan.

I have not seen any change in behavior, but there are some new files
under /system in hwasan build that were not there before, and things
keep working in general, so this feels like the right move.

Bug: 112438058
Test: none; SANITIZE_TARGET=hwaddress keeps working
Change-Id: I4544f408263b908be6ef4a47dd2b5c937e0c1f33
2019-01-18 14:06:11 -08:00
Dan Willemsen
674952098b Add PRODUCT_BUILD_*_IMAGE, BUILDING_*_IMAGE to control building of images
These centralize the decisions on whether to build certain images or
not, and allow the product definition to override that choice.

There are a few use cases here:

 * For GSI-like cases, we only want to build the system image. This
   didn't really change, but it's somewhat simpler to configure, and
   easier to understand the build logic.

 * On the opposite side, when you're planning on using a GSI, the device
   specific build can only build the vendor images (or some other set).

 * Some cases (Fuchsia, etc) don't want to build any images, as they'll
   be distributing the build artifacts in their own packaging.

I suspect in the future, TARGET_BUILD_APPS may be able to be refactored
into the third use case.

Test: treehugger
Test: Create a product definition that includes nothing, try to build it.
Test: compare build-aosp_crosshatch.ninja and build-crosshatch.ninja before/after
Change-Id: I685ab841be3718d3dd7052c28ccd764bb6f1991a
2019-01-18 13:11:34 -08:00
Dan Willemsen
df0808331d Always package ext filesystem tools
Every target we have needs these now.

Test: treehugger; codesearch
Change-Id: I6ab7e48887b19f956b2a7aeac78169f0e2035c73
2019-01-18 10:44:34 -08:00
Colin Cross
e5d5a4ce0f Merge "Separate dexpreopt deps from stripping deps" am: 7cda7650da am: 9037c76a09
am: 24d1b201e3

Change-Id: I5c5152de53cec7c36b29569ce797f8d0b83a1208
2019-01-18 07:52:24 -08:00
Colin Cross
24d1b201e3 Merge "Separate dexpreopt deps from stripping deps" am: 7cda7650da
am: 9037c76a09

Change-Id: I5ca535f85685afc45cc31d6e273b8e803eb6b458
2019-01-18 07:47:17 -08:00
Colin Cross
9037c76a09 Merge "Separate dexpreopt deps from stripping deps"
am: 7cda7650da

Change-Id: I8aad84eae3e7fc84a74205445e4b4dd8e22189be
2019-01-18 07:42:04 -08:00
Colin Cross
7cda7650da Merge "Separate dexpreopt deps from stripping deps" 2019-01-18 15:34:41 +00:00
David Brazdil
38f19aac1f Move HIDDENAPI_FLAGS dependencies to frameworks/base
Recent move of hiddenapi rules to soong sets the dependencies of
the hiddenapi_flags.csv rule in dex_preopt.mk but doesn't check
for existence of "frameworks/base" as the hiddenapi-generate-csv
rule in frameworks/base. Solve this by removing the dependency
injection and using the SOONG_HIDDENAPI_FLAGS variable directly
in frameworks/base.

This is necessary because go/art-build creates a fake
hiddenapi_flags.csv and if there is a dependency injection rule,
a phony target is created and all dependencies of flags.csv need
to be satisfied.

Test: master-art compiles
Change-Id: I13ef5e7ec167f9372a5629fe1894c7acd4091d29
2019-01-18 15:11:01 +00:00
Jeongik Cha
83c50324ca Define non-system module as variable
Define non_system_module in base_rules.mk when the module is product, vendor,
product_services or proprietary module.

Bug: 74699609

Test: m -j
Change-Id: Iebdd3ec8c643be3d9877b7a96cbdd83465fa3878
2019-01-18 18:24:30 +09:00
Dan Willemsen
4a9a24481d Add PROGUARD_HOME and PROGUARD_DEPS
So that we can pass this into MAINDEXCLASSES.

Fixes: 122988865
Test: OUT_DIR=$HOME/out mmma frameworks/base/core/tests/hosttests/test-apps
Change-Id: I955d3de46d348e3573a6773f69149e7cabab8904
2019-01-17 23:04:27 -08:00
Suren Baghdasaryan
6f4fd6c5e3 Add libprocessgroup into VNDK
Include libprocessgroup into vndk because libprocessgroup now implements
sched_policy control functions.

Bug: 111307099
Test: builds, boots
Change-Id: If18227e8a824a1e606df78dfe01d9d2437c62792
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-18 02:36:49 +00:00
Mark Salyzyn
2377996a50 Merge "build_image: Increase spare inodes to 12." am: aa58210dd0 am: fb37e0b6a2
am: 68fed3ce30

Change-Id: I4973b32d8799202eaee16075cab69c48dde4feca
2019-01-17 18:33:29 -08:00
Mark Salyzyn
68fed3ce30 Merge "build_image: Increase spare inodes to 12." am: aa58210dd0
am: fb37e0b6a2

Change-Id: If15f0120fd63197b510095492c51b11c48b0bcd1
2019-01-17 18:24:20 -08:00
Mark Salyzyn
fb37e0b6a2 Merge "build_image: Increase spare inodes to 12."
am: aa58210dd0

Change-Id: I4ff9d44984e043c88c31be523297330a20c4e12f
2019-01-17 18:19:03 -08:00
Treehugger Robot
aa58210dd0 Merge "build_image: Increase spare inodes to 12." 2019-01-18 02:06:46 +00:00
Colin Cross
ded0aec988 Separate dexpreopt deps from stripping deps
The strip rule does not need to wait for the boot image to finish,
create a separate DEXPREOPT_STRIP_DEPS list that only contains
tools used by GenerateStripRule in build/soong/dexpreopt/dexpreopt.go.

Bug: 123038675
Test: m checkbuild
Change-Id: I0814c8d99781533f5778e14547d3e9671e06317f
2019-01-17 16:41:36 -08:00
Ivan Lozano
7257cb9d84 Add mediacodec.policy to the mainline system.
Bug: 110363419
Bug: 116668460
Test: make -j
Change-Id: I557f99fe463435a78c6b803b08b944574319f0a9
2019-01-17 16:23:41 -08:00
Colin Cross
748e839bdf Merge changes from topics "hiddenapi-soong", "hostdex_install" am: d61a1aba36 am: 9cfe03b9d5
am: b1e0d646e6

Change-Id: Ib2b539012d410a54489e2845c2d7707c1fec42e7
2019-01-17 15:54:28 -08:00
Colin Cross
b1e0d646e6 Merge changes from topics "hiddenapi-soong", "hostdex_install" am: d61a1aba36
am: 9cfe03b9d5

Change-Id: Ie757f3e9c98d121967185b9d909c9b1ed82417fc
2019-01-17 15:30:06 -08:00
Colin Cross
9cfe03b9d5 Merge changes from topics "hiddenapi-soong", "hostdex_install"
am: d61a1aba36

Change-Id: I1e7a8806821414aa68b7309de79668ee6cd86d68
2019-01-17 15:21:35 -08:00
Colin Cross
d61a1aba36 Merge changes from topics "hiddenapi-soong", "hostdex_install"
* changes:
  Move hiddenapi to Soong
  Simplify soong_java_prebuilt.mk and soong_app_prebuilt.mk
2019-01-17 22:53:24 +00:00
Xin Li
594e8e6df6 [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master" am: ab9de0ab6e -s ours am: e2b87fa9be -s ours
am: 06ff142d70 -s ours
am skip reason: subject contains skip directive

Change-Id: I4d1cdeaadc5632924187d098b68fcd1d6cee0e31
2019-01-17 14:29:39 -08:00
Xin Li
06ff142d70 [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master" am: ab9de0ab6e -s ours
am: e2b87fa9be -s ours
am skip reason: subject contains skip directive

Change-Id: I591c3e1a725680a63a4b3f3bc365137bb650a179
2019-01-17 14:19:31 -08:00
Xin Li
26cd17d53f [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master am: dd1f2cf7de -s ours am: 7c28813adf -s ours
am: 3042c43e27 -s ours
am skip reason: subject contains skip directive

Change-Id: I3ee861d1bf2de35af26dbd91234c0c4d97c18fe6
2019-01-17 14:15:53 -08:00
Xin Li
e2b87fa9be [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master"
am: ab9de0ab6e -s ours
am skip reason: subject contains skip directive

Change-Id: Iec30206046901ce4e87688c4a336c0f26facc6bb
2019-01-17 14:12:56 -08:00
Xin Li
3042c43e27 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master am: dd1f2cf7de -s ours
am: 7c28813adf -s ours
am skip reason: subject contains skip directive

Change-Id: I5cb7fcac9a782b3ddd4ea127a48e5ef5268f3883
2019-01-17 14:02:55 -08:00
Xin Li
7c28813adf [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master
am: dd1f2cf7de -s ours
am skip reason: subject contains skip directive

Change-Id: Icffd0fd4affa17496d22d3d4e48b2ac68296bfa8
2019-01-17 13:51:04 -08:00
Xin Li
ab9de0ab6e Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master" 2019-01-17 21:19:43 +00:00
Mark Salyzyn
60fa99d491 build_image: Increase spare inodes to 12.
Test: builds device with DAP
Change-Id: I816a7da54bbe23d4eb1140ac0d101c0fee175f0a
2019-01-17 11:30:12 -08:00
Nicolas Geoffray
9c3766f6ca Merge "dex_preopt: differentiate between updatable boot jars and non-updatable boot jars." am: 85437e248d am: f2c2fe0707
am: f30bffd1b7

Change-Id: I21beec07776e36ae81cf299e1825f93bb7ad581a
2019-01-17 10:31:29 -08:00