Commit Graph

22906 Commits

Author SHA1 Message Date
Colin Cross b934116994 Use sdk variant of Soong modules when LOCAL_SDK_VERSION is set
Soong now makes a variant of native modules that set sdk_version.
Use the new variant for native modules or apps with JNI that are
defined in Make and set LOCAL_SDK_VERSION.

Test: m checkbuild
Bug: 149591340
Change-Id: Ief378a007e43b0aea31fd5845410bbffec0ffae6
2020-03-24 10:48:24 -07:00
Yi Kong bcbcd65a99 Add platform-wide sampling PGO option
Test: build
Bug: 79161490
Change-Id: Ibd30fffa0a97ca76155891f3aec8d7891226b9f1
2020-03-24 07:01:59 -07:00
Ulya Trafimovich c46e0673d0 Get rid of obsolete Make variable TARGET_CORE_JARS.
Test: aosp_walleye-userdebug boots.
Change-Id: Ibed8c8479b9c1f3ac333c66aeddea4f5f06c9aad
2020-03-23 15:35:00 +00:00
Jaewoong Jung c0d90ac9ac Merge "Fix test suite data files issue." 2020-03-20 18:10:13 +00:00
Jaewoong Jung b5aa16d44f Fix test suite data files issue.
The current test suite rule implementation has a bug where test data
files are excluded from the final suite zip files when a suite doesn't
have a designated testcases output directory, which is represented by
COMPATIBILITY_TESTCASES_OUT_$(suite_name).

Specifically, the rule that collects test data files for each suite
filters out suite output paths that conflict with module output paths,
which happens when a suite doesn't have its own testcases output
directory. It seems to have been done this way just to avoid make rule
conflict errors, but it ended up causing missing test data files.

This change fixes it by adding an indexing purpose only test suit file
variable.

Fixes: 140761783
Test: m general-tests
Test: Compared before vs after, no meaningful differences.
Test: Changed bc-tests to a device test and built general-tests.
Test: Before - data files missing, after - data files present
Change-Id: I2008992f4144c6ee115f4b4e4ac9caa4312bbe34
2020-03-19 06:47:35 -07:00
android-build-team Robot cdb76ea38e Make change and version bump to QQ2A.200501.001
Change-Id: Ie843b46958b008073dc60d426e9dff4134db2430
2020-03-19 04:53:43 +00:00
Paul Scovanner 2ec1e19d9a Update Security String to 2020-05-01
Bug: 151752725
Change-Id: Ief4b514032bfad1fad1a81c68b4f5e360569f105
(cherry picked from commit db9b1bd6fd)
2020-03-19 04:51:20 +00:00
Treehugger Robot d530443e82 Merge "Make RRO packages for system_ext" 2020-03-19 01:47:54 +00:00
Tianjie Xu eaed60c1a1 Add aftl inclusion proof
The otatools should talk to the aftl server and append the inclusion
proofs when building the vbmeta image. We should only do this during the
signing process when the network is always available.

Also the inclusion proof doesn't impact the final vbmeta image size on
coral, where the final size is 8192 after padding. This is below the
physical image of 65536.

Bug: 147870995
Test: unit tests pass, run sign_target_file_apks
Change-Id: If84c6bf5198c9b05f5e0c16ae6335971915f47e3
2020-03-18 13:11:41 -07:00
Yifan Hong 69430e65fe Also check empty SKU if SKUS are not defined
In the case when both ODM_MANIFEST_SKUS and ODM_MANIFEST_FILE are
both empty, also checks VINTF compatibility for empty SKU case.

Same for device manifest. Although right now, DEVICE_MANIFEST_FILE and
DEVICE_MANIFEST_SKUS cannot be both empty (because libvintf requires
vendor manifest exists barring manifest fragments), let libvintf throws
an error for this case. In the build system, simply handle vendor manifest
the same way as ODM manifest.

Bug: 148601741
Test: manual
Change-Id: Ia0655fd4d37f6286b164a3221ec4b2716f29147d
2020-03-17 20:27:32 -07:00
Jeongik Cha d99e77d6d6 Make RRO packages for system_ext
Until now, packages from system_ext don't create RRO packages, instead
it uses static overlay, but to make system_ext common, it should use
RRO.

Bug: 150820813
Test: m && check if there are RRO packages that use from system_ext apps
Change-Id: Id0ddb66adca07a6bb4dda66fbee49fd476ac5342
2020-03-18 00:55:48 +00:00
Yifan Hong 28ffd73591 Proper checks for vendor and ODM SKUs
If DEVICE_MANIFEST_FILE / ODM_MANIFEST_FILES is set, also include check
for empty vendor / odm SKU, respectively. Then, do cross product of
vendor SKUs and ODM skus, and check each possible combination.

Test: build with and without vendor skus
Test: m check-vintf-all
Bug: 148601741

Change-Id: I23cc81998e7afc36c43540bf6d615b4d4b288447
2020-03-13 18:32:07 -07:00
Aurimas Liutikas cd80e3b9eb Remove unnecessary dependency.
This dependency is now defined in ALL_SDK_FILES.

Test: lunch sdk; make sdk
Change-Id: Ia740466e493d745d83039ba9991547a6c2d3bd2c
2020-03-12 16:12:27 -07:00
David Srbecky 37493d8252 Merge "Install boot.art image for host as well (used by ART tests)." 2020-03-12 18:20:42 +00:00
Oliver Nguyen b02f7dbaa4 Export llvm-profdata for Clang coverage builds.
This tool must match the one used to compile the source code for
compatibility.

Bug: 143977934
Test: m CLANG_COVERAGE=true dist
Change-Id: I71e0e7afb05dedd5f6a09d5e4099387c6262387f
2020-03-10 17:07:58 -07:00
Roopesh Nataraja 11e776fc32 Build DEVICE manifests and fragments for each SKU
Single vendor can support multiple skus with different
capabilities. Add support to define and build sku
based device manifests.

Specify DEVICE manifests in BoardConfig.mk as below.

  # installed to /vendor/etc/vintf/manifest_{sku}.xml
  DEVICE_MANIFEST_SKUS := sku1 sku2 sku3

  DEVICE_MANIFEST_SKU1_FILE := device/foo/bar/manifest_sku1.xml
  DEVICE_MANIFEST_SKU2_FILE := device/foo/bar/manifest_sku2.xml
  DEVICE_MANIFEST_SKU3_FILE := device/foo/bar/manifest_sku3.xml

Bug: 148601741

Change-Id: Id57d4ad21b0d3edf8d60d07446b6b806c1df20ab
2020-03-09 15:09:08 -07:00
Dan Willemsen 97ec812708 Mark the current BUILD_* warnings as errors by default
This switches:

  BUILD_COPY_HEADERS / LOCAL_COPY_HEADERS
  BUILD_HOST_EXECUTABLE
  BUILD_HOST_SHARED_LIBRARY
  BUILD_HOST_STATIC_LIBRARY

to errors by default. Devices can set
BUILD_BROKEN_USES_BUILD_HOST_EXECUTABLE (etc) to turn these errors back
to warnings. I've done that for all of our internal devices.

Bug: 130719878
Bug: 130696912
Bug: 130722971
Bug: 130723227
Test: remove the BUILD_BROKEN_USES_* lines from a device, see errors
Change-Id: I1aecf97f64e281df3682ff0a0fb3ac4283790acd
Merged-In: I1aecf97f64e281df3682ff0a0fb3ac4283790acd
(cherry picked from commit c4bdff5f7e)
2020-03-07 11:29:29 -08:00
Elliott Hughes f71c05a8e5 Remove unused mips workarounds.
This was never really finished, and hasn't been supported for years.

Test: treehugger
Change-Id: I7668088d1449f33025aaf36fae0817894c84a877
2020-03-06 16:46:59 -08:00
Colin Cross 28ff3e3f94 Disable goma for javac actions in Make
goma can't handle the --system argument that Android must pass to
javac.

Bug: b/143658984
Test: treehugger
Change-Id: I7091a14f940ae696930c9d4a7869ae3a81a33fbe
2020-03-05 20:46:47 +00:00
Treehugger Robot 90d4027542 Merge "Trim down dont_bother_goals" 2020-03-05 19:07:15 +00:00
Bill Peckham 573f458718 Merge "Don't touch .installable_files for non-FULL_BUILD" 2020-03-05 18:49:48 +00:00
Automerger Merge Worker 9d5134760c Merge "initial GKI boot.img support" am: 28a7820be2
Change-Id: I620304b97f0ab8f9f440aab1c5dc8e4fe18c4819
2020-03-05 00:43:36 +00:00
Treehugger Robot 28a7820be2 Merge "initial GKI boot.img support" 2020-03-05 00:31:27 +00:00
Dan Willemsen 395358edae Trim down dont_bother_goals
This had caused the nodeps targets to break when I added the
auto-cleanup feature, as we wrote out smaller lists of what was
installed. The functionality of dont_bother_goals is also being fixed in
https://android-review.googlesource.com/c/platform/build/+/1250929/

But there's also no reason to have all of these targets in
dont_bother_goals, as they can just re-use the cached kati build graph.

Bug: 149460609
Test: m systemimage && m snod    <did not delete everything>
Test: m snod    <still see warning>
Test: codesearch for uses of MAKECMDGOALS and these targets
Change-Id: Ib8e7ba67e5ad980be4bdcf521c5156eea7941f97
2020-03-05 00:21:25 +00:00
Automerger Merge Worker a78856cee6 Merge "Skip VNDK variant check on coverage builds." am: 791a8b5128
Change-Id: I506aac7d8dfe868ac123d7b68628e5e67864998e
2020-03-05 00:04:48 +00:00
Oliver Nguyen 791a8b5128 Merge "Skip VNDK variant check on coverage builds." 2020-03-04 23:55:32 +00:00
Bill Peckham 7c3aa02ca3 Don't touch .installable_files for non-FULL_BUILD
If we're not doing a full build, leave
$(PRODUCT_OUT)/.installable_files* alone rather
than truncating it. This prevents the clean logic
in Soong from removing everthing that we're trying
to use to build an image using the snod, vnod, etc.
goals.

Bug: 149460609
Test: make droid, make vnod, verify vendor.img
Change-Id: I612e32621b8045d085829507f22f6385b859f0c2
2020-03-04 15:12:52 -08:00
Steve Muckle 3363a0b8d6 initial GKI boot.img support
The GKI boot.img should be generated alongside the GSI. To make this
possible, define a flag (TARGET_NO_VENDOR_BOOT) that can be used to
disable the generation of the vendor_boot image.

Bug: 138323550
Change-Id: I91181853b26815e68a2fa2216b68579780d034dc
2020-03-04 10:54:56 -08:00
android-build-team Robot 49ceb3a8a7 Version bump to QQ2A.200405.005 [core/build_id.mk]
Change-Id: I2c3bb280ca65a4f8b8ff34b4e12c6ef0f19d7b47
2020-03-02 23:56:06 +00:00
TreeHugger Robot 098949fe60 Merge "DO NOT MERGE - Merge QQ2A.200305.003 into stage-aosp-master" into stage-aosp-master 2020-02-29 04:06:10 +00:00
Xin Li 51e18647ba DO NOT MERGE - Merge QQ2A.200305.003 into stage-aosp-master
Bug: 150410372
Change-Id: I09b3a138aa19a34400a7dfc8ef60dc52bae4c492
Merged-In: I89aaa622a1aa3a58cb6c35206be9244166f6ca84
2020-02-28 21:34:35 +00:00
android-build-team Robot e39209ff15 Version bump to QQ2A.200405.004 [core/build_id.mk]
Change-Id: Ifd87c0f533e0c01d8892997c55c9c8ba21fa0f7e
2020-02-28 21:26:53 +00:00
Automerger Merge Worker 87f76601de Merge "Move build number file to out/soong" am: 47b08fbab5
Change-Id: I8561be9fcabc54526fbf5efa48ef32b08f025b96
2020-02-28 20:32:26 +00:00
Treehugger Robot 47b08fbab5 Merge "Move build number file to out/soong" 2020-02-28 20:15:52 +00:00
Automerger Merge Worker 8ec17a7bcc Merge "Include LICENSE files, when available, in notices." am: 5167fb0a37
Change-Id: Iccf223694b8de22fa0e2d1be2a3dd93e8567fa21
2020-02-27 23:37:56 +00:00
Bob Badour 5167fb0a37 Merge "Include LICENSE files, when available, in notices." 2020-02-27 23:29:26 +00:00
Automerger Merge Worker 6ebc180650 Merge "Package vts-tradefed.jar in general-tests" am: 04c90d44f7
Change-Id: I674f8f399cc67c30c0dfd4fd129775045c5bed93
2020-02-27 22:26:13 +00:00
Treehugger Robot 04c90d44f7 Merge "Package vts-tradefed.jar in general-tests" 2020-02-27 22:17:19 +00:00
David Srbecky 6dd11eccc5 Install boot.art image for host as well (used by ART tests).
This will allow us to remove the core.art image compiled in make.

Test: m test-art-host-gtest
Bug: 147817558
Bug: 147819342
Change-Id: Ie17e5818ddeb200843b13d36ade6d1a5428a9a48
2020-02-27 21:04:49 +00:00
Bob Badour 9da828c1b4 Include LICENSE files, when available, in notices.
As a first step to removing the go/android3p instructions to copy or
to link NOTICE to LICENSE, include LICENSE files in the notices, which
will allow deleting all of the copied/linked NOTICE files.

The change causes a couple minor additions to the system image notice
files.

Test: manually built and compared before and after notices

Change-Id: Id23cae4a8f2d103e1379f4341340fc56c5943dc2
2020-02-27 19:19:23 +00:00
Automerger Merge Worker 2150099d65 Merge "Partition the targets for notice files." am: 684350d24f
Change-Id: If17662be626c33c9b7f9ca3c742f58fb76d0492e
2020-02-27 15:31:10 +00:00
Bob Badour 4b25c90e52 Partition the targets for notice files.
Partition the targets into those appearing in system images, those
appearing somewhere unreadable by the Settings UI, whose notices
must appear in a readable system image, and those not appearing
on the device thus not needing notices. Assert no other targets
appear under $(PRODUCT_OUT).

Test: manually built and tested phone image

Change-Id: If82cb36f98f8e6066d1c67bb4d15976be433d403
2020-02-26 16:49:28 -08:00
Colin Cross d68a88402f Move build number file to out/soong
Move the build number file to out/soong so Soong can treat it
as an output path, and pass the name of the file to Soong instead
of the command to read it.

Test: m checkbuild
Change-Id: I9e1aecf33d11fe4fde34cd57cc9b1f1ad49b0424
2020-02-25 00:06:46 +00:00
Oliver Nguyen 4a4c834b09 Skip VNDK variant check on coverage builds.
Coverage builds result in different core and vendor variants due to
different coverage metadata from static libraries. Skip this check only
on coverage builds.

Bug: 143977934
Test: m CLANG_COVERAGE=true COVERAGE_PATHS='*'
Change-Id: I906745e951b36a87cedf998a93bdc390196a606e
2020-02-24 15:18:45 -08:00
Automerger Merge Worker 353523d684 Merge "Touch same_vndk_variant.timestamp" am: 5832bf1f5a
Change-Id: I521974518d645cefb27c821053954563cdf2171c
2020-02-22 15:25:43 +00:00
Colin Cross c989ff3d75 Touch same_vndk_variant.timestamp
Fix uneccessary rebuilds on incremental builds by touching the
same_vndk_variant.timestamp output file.

Test: m && m
Change-Id: Ieb1b47f8a6cc406139c326a527041239fdb627d0
2020-02-21 07:31:32 -08:00
Automerger Merge Worker d8d9a50090 Merge "do not clear output kernel module directory" am: 733ad20963
Change-Id: I9de52a01cf0c04f909dcd711d8bd152fa3bf9b50
2020-02-21 01:17:24 +00:00
Treehugger Robot 733ad20963 Merge "do not clear output kernel module directory" 2020-02-21 01:02:09 +00:00
Steve Muckle 5e0ff33d0f do not clear output kernel module directory
When using an archive to provide kernel modules, the archive is directly
expanded into the output directory. The output directory is currently
removed prior to that to ensure no stale modules are present if they
were removed as part of a change in an incremental build.

Unfortunately if kernel modules are also provided via the regular
BOARD_*_KERNEL_MODULES macros, the removal of the output kernel module
directory will race with the copying of kernel modules in
BOARD_*_KERNEL_MODULES, resulting in some of those kernel modules not
being present in the output.

Kernel modules removed from BOARD_*_KERNEL_MODULES do not currently get
removed from the output directory in an incremental build anyway. So in
order to support using BOARD_*_KERNEL_MODULES and
BOARD_*_KERNEL_MODULES_ARCHIVE conurrently, take out the removal of the
output directory prior to archive expansion.

Bug: 149866863
Change-Id: Ib373650ddcb0fb5782a13d68a8869a9117e42ccc
2020-02-20 10:19:06 -08:00
Automerger Merge Worker e1570cb99d Merge "Adding vendor_boot-debug.img" am: 31d4a5aed7
Change-Id: I48f3ded6c5c63aa9a828a529880f0cdb2918f8e2
2020-02-20 04:12:10 +00:00
Treehugger Robot 31d4a5aed7 Merge "Adding vendor_boot-debug.img" 2020-02-20 03:56:58 +00:00
android-build-team Robot cdfa6634ad Version bump to QQ2A.200405.003 [core/build_id.mk]
Change-Id: I2cee263cf10e3511b4d012a8789f5caec5742c45
2020-02-20 00:53:41 +00:00
Dan Shi 7edfb7f659 Package vts-tradefed.jar in general-tests
vts-core.xml imports some vts only preparer to run un-converted vts
python tests.

Bug: 149249068
Test: unittest
Change-Id: Ibdecb250f78c07d7645be4b140b8cfaeda99d79b
2020-02-19 15:22:11 -08:00
Automerger Merge Worker 3e052fc8e1 Merge changes from topic "vts-package" am: ab39096ee7
Change-Id: If8f30e49210ba244c85b12a36a31ddb10f927a0d
2020-02-19 22:22:02 +00:00
Automerger Merge Worker ce62eaaabe Change vts-core package to generic *ts package rule am: 4e143cdc85
Change-Id: If3ef9ae3f0c77c7423382f4ba96b34ce7ed5ca2e
2020-02-19 22:21:58 +00:00
Automerger Merge Worker d9bbafdbf2 Merge "Support empty jacoco-report-classes.jar" am: 62eee30f34
Change-Id: I6f387c538f04d20439250aaa72fe544791abc97f
2020-02-19 22:16:59 +00:00
Dan Shi ab39096ee7 Merge changes from topic "vts-package"
* changes:
  Add vts related artifacts to vts-core package
  Change vts-core package to generic *ts package rule
2020-02-19 21:05:55 +00:00
Treehugger Robot 62eee30f34 Merge "Support empty jacoco-report-classes.jar" 2020-02-19 20:30:46 +00:00
Automerger Merge Worker cfb18c0777 Merge "Add a new make target called `haiku-line-coverage`" am: 54839bb77e
Change-Id: I9b07b2d0b3fdf2cae2b061ce06add9198f7ae456
2020-02-19 19:47:46 +00:00
Kyriakos Ispoglou 54839bb77e Merge "Add a new make target called `haiku-line-coverage`" 2020-02-19 19:07:20 +00:00
Dan Shi 5e06288e7c Add vts related artifacts to vts-core package
Bug: 149249068
Test: m -j vts-core
vts-core-tradefed run singleCommand vts-core -m VtsKernelLtp

Change-Id: I7fc25f83985bdf7bb34b29f7b28510ef0ade8e4b
2020-02-19 10:44:24 -08:00
Automerger Merge Worker a392047a05 Merge "build: Add vendor.prop and odm.prop capability" am: 6ed2deb9d5
Change-Id: Ib2a6c2ed9bbb33cceb1d8fa7f938ecadf42f5bb8
2020-02-18 22:05:28 +00:00
Treehugger Robot 6ed2deb9d5 Merge "build: Add vendor.prop and odm.prop capability" 2020-02-18 21:45:08 +00:00
Dan Shi 4e143cdc85 Change vts-core package to generic *ts package rule
The current package logic is based on general-tests and device-tests,
which have special rules to package test artifacts in a diffrent way.
vts-core suite should follow the generic *ts package rule.

Bug: 149249068
Test: m -j vts-core && vts-core-tradefed
run some vts-core test

Change-Id: Ib6ab7eb0fb4b8c898a0b3617d10be04dc98c2daa
2020-02-18 13:38:38 -08:00
Bowgo Tsai 6a68367e6e Adding vendor_boot-debug.img
Commit I30137c3caef91805d9143d404e5e4d06c0fccc30 adds boot-debug.img
to allow adb root with an user build GSI image.

  https://source.android.com/compatibility/vts/vts-on-gsi

Another commit I5b005097b73f59857c3a2f92d693b3e67ee8424e adds
vendor_boot.img to pair with a generic kernel image, the GKI boot.img.

To allow adb root for devices using a GKI, vendor_boot-debug.img is
introduced. The image combination used in VTS will be:

    Old devices without GKI:
      GSI system.img + boot-debug.img + vendor.img, etc.

    New devices with GKI:
      GSI system.img + GKI boot.img + vendor_boot-debug.img + vendor.img, etc.

Note that boot-debug.img still can be used on new devices for
non-compliance scenario.

Bug: 147849477
Test: lunch aosp_cf_x86_64_phone-userdebug; make vendorbootimage_debug
Test: `make dist`, checks that both vendor_boot-debug.img and
      vendor-ramdisk-debug.cpio.gz are in $OUT/ and out/dist.
Test: `make dist`, checks that installed-files-vendor-ramdisk-debug.{json,txt} are
       in $OUT/ and out/dist.
Change-Id: I66b662d8b1e5c619ed7bb81e40233fe9df363b27
2020-02-18 13:46:17 +08:00
Kyriakos Ispoglou f00a0dbffc Add a new make target called `haiku-line-coverage`
This CL adds a new make target for line coverage, That is, by running
`make haiku-line-coverage` you can get a set of all profile (*.gcno) files
for all fuzz targets and for all critical components of Android,
packed into a zip called `line_coverage_profiles.zip`. Furthermore the set of
all fuzz targets are instrumented with line coverage and packed into
another zip called `line_coverage_fuzz_targets.zip`

To properly run the make target enable NATIVE_LINE_COVERAGE first:
NATIVE_LINE_COVERAGE=true NATIVE_COVERAGE=true COVERAGE_PATHS=* make haiku-line-coverage

Bug: b/148234755
Test: Make target buils successfully on master/aosp. Binaries tested on taimen
devices.

Change-Id: I6a1e11068119337628c2ae5ee3baf2fc394add05
2020-02-17 11:18:11 -08:00
Colin Cross d81f4b3461 Support empty jacoco-report-classes.jar
If EMMA_INSTRUMENT is turned on but no APKs were built the rule to
collect jacoco-report-classes.jar would error with missing directories
and an empty zip file.  Switch to soong_zip, which doesn't error
on empty zip files, and hide the errors if $(TARGET_COMMON_OUT_ROOT)
or $(HOST_COMMON_OUT_ROOT) don't exist.

Test: m EMMA_INSTRUMENT=true TARGET_BUILD_APPS=Camera2
Change-Id: I09e30e37dc38f32f55b3f91bfc4d12c9e753083f
2020-02-14 10:36:47 -08:00
Ivan Lozano 1a013b86f8 Merge "Remove execute-only support." am: c6a34608d0
Change-Id: I156d986e19075c5c21218f94138774ece0460ece
2020-02-14 14:56:52 +00:00
Ivan Lozano c6a34608d0 Merge "Remove execute-only support." 2020-02-14 14:42:49 +00:00
Ivan Lozano 3cd1ebeaee Remove execute-only support.
With kernel support being removed for execute-only memory layouts,
remove support for XOM until there's kernel support again.

This allows us to gain the code-size improvements from
"-z noseparate-code".

Bug: 147300048
Test: Compiled binaries no longer marked XOM by default.

Change-Id: I08a054e903b202f513d3b3381afd606bb87cf257
2020-02-13 14:20:28 -05:00
Automerger Merge Worker 9c2afcf9c6 Merge "Modify D8 template to not have inputs under the output directory." am: 8e3f73576f
Change-Id: Id3e17717fea5c99624dba7cad5c79ec6dda8f603
2020-02-13 16:20:01 +00:00
Ramy Medhat 8e3f73576f Merge "Modify D8 template to not have inputs under the output directory." 2020-02-13 16:09:49 +00:00
Automerger Merge Worker 0296ecb601 Merge "Make PRODUCT_BOOT_JARS and PRODUCT_UPDATABLE_BOOT_JARS disjoint." am: 0445b496c1
Change-Id: I21b704bfee4d8b9b49cc4b06444001bcf0e97f58
2020-02-13 13:48:33 +00:00
Ulyana Trafimovich 0445b496c1 Merge "Make PRODUCT_BOOT_JARS and PRODUCT_UPDATABLE_BOOT_JARS disjoint." 2020-02-13 13:36:25 +00:00
Ulya Trafimovich 36101543e9 Make PRODUCT_BOOT_JARS and PRODUCT_UPDATABLE_BOOT_JARS disjoint.
This is to unify boot jars with system server jars:
PRODUCT_SYSTEM_SERVER_JARS and PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS
do not overlap.

Test: aosp_walleye-userdebug boots

Exempt-From-Owner-Approval: cherry-pick.
Bug: 146363577
Change-Id: Ief8994cc34cb6f7951051313dd66a1334a3a73b4
Merged-In: Ief8994cc34cb6f7951051313dd66a1334a3a73b4
(cherry picked from commit 19ed3a0db7)
2020-02-13 13:36:11 +00:00
Ramy Medhat c3427499ca Modify D8 template to not have inputs under the output directory.
Test: presubmit

Change-Id: I800664acdeffa04ce83a8446bece411f018af2e2
2020-02-13 07:19:53 -05:00
Automerger Merge Worker d3a28a3676 Merge "Implement BOARD_VNDK_VERSION" am: b21ca5795e
Change-Id: I103d0e3a580ef3a7665502a3dd1dc95612045efc
2020-02-13 11:17:02 +00:00
Treehugger Robot b21ca5795e Merge "Implement BOARD_VNDK_VERSION" 2020-02-13 11:01:10 +00:00
Automerger Merge Worker 70248b3392 Merge "core/Makefile: pass value of PRODUCT_USE_DYNAMIC_PARTITION_SIZE" am: 77ffb564a9
Change-Id: Idffbd1ee45442fb11bd92f2bc67bd1409aa2ee86
2020-02-12 01:42:46 +00:00
android-build-team Robot 7ea314069b Version bump to QQ2A.200405.002 [core/build_id.mk]
Change-Id: Ie9b57c7b511a9c84c1b4597f4c51fbe8351c7583
2020-02-12 01:27:21 +00:00
Treehugger Robot 77ffb564a9 Merge "core/Makefile: pass value of PRODUCT_USE_DYNAMIC_PARTITION_SIZE" 2020-02-12 01:26:51 +00:00
android-build-team Robot af859e4142 Make change and version bump to QQ2A.200405.001
Change-Id: If7e82f7ae668b507933e510eb446b170080361b5
2020-02-12 00:01:27 +00:00
Paul Scovanner b5b9163ea9 Update Security String to 2020-04-05
Bug:149240442
(cherry picked from commit d451ad7167)

Change-Id: I8f17591378e2ee8f2bf42d94de4d220f472da1ae
2020-02-11 23:56:57 +00:00
android-build-team Robot 76d1db68a2 Make change and version bump to QQ2A.200401.001
Change-Id: Idc91fb202e6524ec033984a0304cf4664c141172
2020-02-11 19:08:33 +00:00
Paul Scovanner ea529bd138 Update Security String to 2020-04-01
Bug:149240442
(cherry picked from commit f9edfe3714)

Change-Id: I70ca2967a445b099f2938ff2f4eb5444bd0a283d
2020-02-11 19:06:33 +00:00
Automerger Merge Worker 823e8030a8 Merge "Implement vendor snapshot" am: 7decc032c2
Change-Id: I88f0d8228aa78c84931bf9cca10d486ff5b707eb
2020-02-10 23:52:53 +00:00
Treehugger Robot 7decc032c2 Merge "Implement vendor snapshot" 2020-02-10 23:40:50 +00:00
Automerger Merge Worker 7bb6cf5277 Merge "Do not assign 'false' to PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE" am: 10a1d48e31
Change-Id: Id7a7b8a6d498601e149fd64a75bab3f35d9381a6
2020-02-10 21:40:27 +00:00
Justin Yun 03f4ed3415 Do not assign 'false' to PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE
When OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is set to
false, it must not copy the value to
PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE but leave it empty
because Soong always set EnforceProductPartitionInterface to true if
PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE has value.

Bug: 148952638
Test: Build with
      OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE=false

Change-Id: I6435157ff993e53669b4244c9be74efbcc84107d
2020-02-11 04:05:24 +09:00
Tamas Petz 89418f058e core/Makefile: pass value of PRODUCT_USE_DYNAMIC_PARTITION_SIZE
Regardless of the value of PRODUCT_USE_DYNAMIC_PARTITION_SIZE
"use_dynamic_partition_size=true" is passed to build_image.sh.
Pass the value of PRODUCT_USE_DYNAMIC_PARTITION_SIZE just like it is
done for other properties.

Test: 1. build a target with fixed partition sizes and
         "PRODUCT_USE_DYNAMIC_PARTITION_SIZE := false".
      2. check the value of "use_dynamic_partition_size" in the
         corresponding system_image_info.txt.
      3. repeat steps 1 and 2 with this fix and see the difference.

Change-Id: Ia121d3d67f554f8ae4e211ad4e2c381a43409f01
2020-02-10 11:34:48 +01:00
Automerger Merge Worker bfb27d2a25 Merge "Remove UseApexImage and GenerateApexImage." am: 1dffdf84d1
Change-Id: I7b58e16d9c0ec0784ba86ee0ed102b6a49d661cf
2020-02-09 23:17:22 +00:00
Nicolas Geoffray 1dffdf84d1 Merge "Remove UseApexImage and GenerateApexImage." 2020-02-09 22:53:56 +00:00
Nicolas Geoffray 02df14a67a Remove UseApexImage and GenerateApexImage.
These options are not used anymore.

Bug: 119800099
Exempt-From-Owner-Approval: Rebase after conflict
Test: m
Change-Id: I1057a6fc420b45e326ec7744b6df159f950ad853
2020-02-09 22:53:25 +00:00
Treehugger Robot e31e093b85 Merge "DO NOT MERGE - Merge QQ1A.200205.002 into master" 2020-02-08 01:29:23 +00:00
Xin Li 85eb793810 DO NOT MERGE - Merge QQ1A.200205.002 into master
Bug: 147428392
Change-Id: I5aef3e956613109476784479f54b43f081ab734f
Merged-In: I0f06b04cf4c824b9c975d9b84f4a0e8171acef75
2020-02-07 19:29:26 +00:00
Automerger Merge Worker e95dbbfc69 Merge "Use ART image for make-based preopt." am: d1d4b74f63
Change-Id: If240bf1c5875a0ce858b185d617d594ee5708110
2020-02-07 17:07:44 +00:00
Vladimir Marko d1d4b74f63 Merge "Use ART image for make-based preopt." 2020-02-07 16:58:04 +00:00
Vladimir Marko 7ea8a3d9fa Use ART image for make-based preopt.
Test: taimen-userdebug boots when built with
      DEXPREOPT_USE_ART_IMAGE=true
Test: Check logcat for checksum verification failures.
      (Build ART with extra logging in OatFileAssistant.)
Test: Check that bootclasspath-checksums from some prebuilt
      oat files contain only one image checksum followed by
      dex file checksums with
          grep -az -A1 -E '^bootclasspath-checksums$' <oat-file> | \
          xargs -0 echo | gawk '{print $2}'
Bug: 119800099
Change-Id: I241b65d7323901906ffcde91ca9ba173e1755ad7
2020-02-07 14:42:09 +00:00
Automerger Merge Worker 11b0f7cc06 Merge "Support dexpreopt against the primary boot image." am: c3f9db077e
Change-Id: I242e0950b35cb605058ee2f3463095664c47b9df
2020-02-07 14:30:47 +00:00
Vladimir Marko c3f9db077e Merge "Support dexpreopt against the primary boot image." 2020-02-07 14:12:52 +00:00
Vladimir Marko 30bbf37de2 Support dexpreopt against the primary boot image.
Test: taimen-userdebug boots when built with
      DEXPREOPT_USE_ART_IMAGE=true
Bug: 119800099
Change-Id: I1c0860de87a0280d93a63b9135d071c595f1d925
2020-02-07 09:54:59 +00:00
Automerger Merge Worker 8c86a2872d Merge "Extend add_soong_config_var to support variable list" am: 00e02e97d5
Change-Id: I133ad8bfd074af04d5ce08ae7b1b29726dc4e394
2020-02-07 03:54:23 +00:00
Bill Peckham 00e02e97d5 Merge "Extend add_soong_config_var to support variable list" 2020-02-07 03:34:32 +00:00
Automerger Merge Worker e5656d0eba Merge "Add PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29" am: 562d15a67d
Change-Id: I9db247a6d43b628a3af3e53f06e10ef8cae4d855
2020-02-07 02:02:49 +00:00
Treehugger Robot 562d15a67d Merge "Add PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29" 2020-02-07 01:46:41 +00:00
Bill Peckham 62f5a4711e Extend add_soong_config_var to support variable list
Bug: b/149049342
Test: Supply list, inspect $(OUT)/soong/soong.variables
Change-Id: I905229441e392f6190bea6ae2169b0ecd1743d45
2020-02-06 15:30:46 -08:00
Automerger Merge Worker 2c9931fbe9 Merge "Add functions for easier vendor var definitions." am: 24e2f7c0f1
Change-Id: Ie75048860bad50197be04013e0cfa4401c54b253
2020-02-06 03:30:19 +00:00
Sundong Ahn f3cd49787a Add PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29
The PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29 is added. This value is base
module when shipping api level is less than or equal to 29.

Bug: 124531214
Test: m -j
Change-Id: I0f06b04cf4c824b9c975d9b84f4a0e8171acef75
Merged-In: I0f06b04cf4c824b9c975d9b84f4a0e8171acef75
(cherry picked from commit a18f974bd7)
2020-02-06 01:44:03 +00:00
Bill Peckham dba4b00232 Add functions for easier vendor var definitions.
The add_soong_config_namespace adds a namespace and
initializes it to be empty. The add_soong_config_var
function adds a pre-existing variable as a Soong
config variable, and the add_soong_config_var_value
function defines a make variable and also adds it as
a soong config variable.

Bug: 144532889
Test: $(OUT)/soong/soong.variables contains variables.
Change-Id: I5cc6a670a089ecd5163f19f7a2fba33f5860c952
2020-02-06 00:21:31 +00:00
Automerger Merge Worker 0181bbb6bb Merge "Add exec_strategy as CLI flags to all rewrapper commands" am: 4475590a45
Change-Id: I198485413d88f2625dd99e16cd6c67003b717c81
2020-02-05 20:35:22 +00:00
Kousik Kumar d463007dfc Add exec_strategy as CLI flags to all rewrapper commands
Bug: b/148798195
Test: The same change is live in master-build-rbe-testing branch where
its not causing any behavior change, and also it works for
RemoteExecution where RBE_CXX_EXEC_STRATEGY variable is set.
2020-02-05 16:06:47 +00:00
Automerger Merge Worker 89d0ab8c75 Merge "Add support for LINE_COVERAGE (2/2)" am: 65e9798709
Change-Id: I15d2e57619f32267143dab8795ac14deb84ef3de
2020-02-04 22:46:42 +00:00
android-build-team Robot 6f46bdfe93 Version bump to QQ2A.200305.004 [core/build_id.mk]
Change-Id: Ifede36f69c29a09085a159c53a11ab9375b3a243
2020-02-04 05:55:07 +00:00
Rashed Abdel-Tawab 194ed8e88d build: Add vendor.prop and odm.prop capability
This replicates the longtime existing handling of system.prop,
as well as the recently added handling of product.prop.

Change-Id: I8ab2b29bd0b5f0f2bcc0928d6a2a871c40582d3f
2020-02-01 22:53:52 +00:00
Kyriakos Ispoglou c3627b55dd Add support for LINE_COVERAGE (2/2)
This is the 2nd part of the CL.

Bug: b/147604881
Test: Code works successfully on Taimen devices
Change-Id: I834c8743f1f66e7515952b804e6da8a99edf8c2e
2020-01-31 14:37:11 -08:00
Automerger Merge Worker eb9359ee08 Merge "Rename NativeCoverage to Native_coverage" am: a4d2d6578e
Change-Id: I77f41a8a0aa96d2fb8b161c861bcf5d71f7ef131
2020-01-31 16:40:42 +00:00
Treehugger Robot a4d2d6578e Merge "Rename NativeCoverage to Native_coverage" 2020-01-31 03:12:22 +00:00
Automerger Merge Worker d67ff5cc29 Merge "Mark BUILD_HOST_EXECUTABLE as deprecated" am: e2e32f5d27
Change-Id: Ie6e325a82bb20e864417fc6a01f76d27499a7145
2020-01-30 17:45:22 +00:00
Dan Willemsen e2e32f5d27 Merge "Mark BUILD_HOST_EXECUTABLE as deprecated" 2020-01-30 16:37:07 +00:00
Baligh Uddin d770e83b05 Merge "Add mke2fs.conf to otatools"
am: 86b4532286

Change-Id: I8ca73117f75eb34751d26eed19c1c6ee09a83a2b
2020-01-30 03:23:15 -08:00
Yifan Hong 96d8391a6a Merge "Disallow VINTF metadata for PRODUCT_COPY_FILES"
am: 67f58406ee

Change-Id: I2460c310b37195b47c01268c4e6400e297fd334f
2020-01-30 03:22:49 -08:00
Baligh Uddin 6a8234bf43 Add mke2fs.conf to otatools
BUG: 148452817
2020-01-29 17:42:59 -08:00
Yifan Hong 67f58406ee Merge "Disallow VINTF metadata for PRODUCT_COPY_FILES" 2020-01-30 00:50:59 +00:00
Dan Willemsen 4c3a01f105 Mark BUILD_HOST_EXECUTABLE as deprecated
The last common user has been removed

Bug: 130696912
Test: treehugger
Change-Id: I7920719edfdef295f4136326445836053db5adf8
2020-01-29 13:27:18 -08:00
Colin Cross 30c91a72ed Merge "Enforce LOCAL_CERTIFICATE is set in soong_app_prebuilt.mk"
am: 5c3725510a

Change-Id: Ic55c310a7abcc98b995e774aaf591d69605eed78
2020-01-29 09:59:01 -08:00
Treehugger Robot 5c3725510a Merge "Enforce LOCAL_CERTIFICATE is set in soong_app_prebuilt.mk" 2020-01-29 17:42:51 +00:00
Vic Yang 64d0b72f81 Merge "Remove unused no_vendor_variant_vndk_check target"
am: 526551f013

Change-Id: Id13c047df6da98ce0ab23b625c1578c2db2d3571
2020-01-28 23:04:41 -08:00
Treehugger Robot 526551f013 Merge "Remove unused no_vendor_variant_vndk_check target" 2020-01-29 06:54:01 +00:00
Baligh Uddin 7d88e726cc Merge "Add explicitly merge_zips to otatools package"
am: 0434412bcd

Change-Id: I2b536927f621f7d7cc6fcd0fdc246433bcea4db4
2020-01-28 22:24:38 -08:00
Baligh Uddin 0434412bcd Merge "Add explicitly merge_zips to otatools package" 2020-01-29 06:16:16 +00:00
Vic Yang 3ec918d342 Remove unused no_vendor_variant_vndk_check target
This was missed when we moved from a single target for checking all
VNDK libraries to using timestamp files for checking individual VNDK
libraries.

Test: Build success.
Change-Id: I3be19f6755b24fff2446449a9dbc84db9a20ea41
2020-01-28 21:01:38 -08:00
Tianjie Xu a25d76f2c8 Add explicitly merge_zips to otatools package
Since it's under soong/out/host, we need to explicitly copy it into the
otatools.zip

Bug: 146508800
Test: build and check otatools.zip
Change-Id: I83e201601cf03b6eb01ead912a78f22f750aa4be
2020-01-28 19:17:35 -08:00
Daniel Rosenberg 0675f9d743 Merge "Add build properties to enable casefold and prj_quota"
am: dac25a96df

Change-Id: I0ce364177d52a683a156cca012e18019a47d4c46
2020-01-28 16:04:41 -08:00
Daniel Rosenberg dac25a96df Merge "Add build properties to enable casefold and prj_quota" 2020-01-28 23:53:25 +00:00
Steven Laver cca79e581f Merge "Add a missing ',' in the VNDK variant identicalness check"
am: c99128cdbf

Change-Id: I6b7fa1f1211b9a49bce5e312e77f376efc7f1bb1
2020-01-28 14:52:05 -08:00
Dan Willemsen e0f634f426 Merge "Mark (BUILD_|LOCAL_)COPY_HEADERS as [more] deprecated"
am: 5daf724d15

Change-Id: I01ad1a7e81b5079b99def9642afc1cc0350831b8
2020-01-28 14:47:31 -08:00
Colin Cross a8008259f9 Merge "Fix building docs as part of checkbuild"
am: 35e12a7020

Change-Id: I6d3e445979e8d390841d24c01cbf37f8d6a20445
2020-01-28 14:46:48 -08:00
Steven Laver c99128cdbf Merge "Add a missing ',' in the VNDK variant identicalness check" 2020-01-28 22:38:56 +00:00
Dan Willemsen 5daf724d15 Merge "Mark (BUILD_|LOCAL_)COPY_HEADERS as [more] deprecated" 2020-01-28 22:38:43 +00:00
Colin Cross 35e12a7020 Merge "Fix building docs as part of checkbuild" 2020-01-28 22:24:00 +00:00
Colin Cross 24c77395be Enforce LOCAL_CERTIFICATE is set in soong_app_prebuilt.mk
Missing LOCAL_CERTIFICATE produces an apkcerts.txt file that
has no key for the APK, which confuses the signing tools.
Enforce that it is set.

Bug: 147765187
Test: m apkcerts-list
Change-Id: I1299505d193deba5956954e5d9b6e4c727456b9c
2020-01-28 14:13:52 -08:00
Automerger Merge Worker 1f58479935 Merge "Add RBE support for Javac, R8, and D8 if respective env vars are set." am: 2899e4871d
Change-Id: I8fa09e31be17050b69f54ed0f102ab0a8f3d1252
2020-01-28 20:07:56 +00:00
Ramy Medhat 2899e4871d Merge "Add RBE support for Javac, R8, and D8 if respective env vars are set." 2020-01-28 19:49:05 +00:00
Steven Laver 6a9ff71894 Add a missing ',' in the VNDK variant identicalness check
The invocation of verify-vndk-libs-identical is missing a ',' between
the second and third parameters, in commit
4873e65c8d.

Change-Id: I88d230db4e6fed5939b1fe9d636d440a00773a41
2020-01-28 11:31:33 -08:00
Ramy Medhat a9cc25d785 Add RBE support for Javac, R8, and D8 if respective env vars are set.
Test: aosp_crosshatch build with and without the new variables.
Change-Id: I252ff5dd8e372edf8c86e25348c8a2bfab41d70d
2020-01-28 10:25:25 -05:00
Dan Willemsen 66d21d4a30 Mark (BUILD_|LOCAL_)COPY_HEADERS as [more] deprecated
We've considered these deprecated for a while, and have reduced where
they may be used, but let's actually throw warnings and call them out
specifically now.

Bug: 130719878
Test: lunch aosp_arm; m nothing   [see no warnings]
Test: lunch aosp_crosshatch; m nothing   [see LOCAL_COPY_HEADERS warnings]
Test: lunch aosp_taimen; m nothing  [see BUILD_COPY_HEADERS warnings]
Change-Id: I8c12012366d84667de0d223bbde38d8b90419e36
2020-01-27 19:45:04 -08:00
Colin Cross 57aa92a4e5 Merge "Give strip depfile a unique name, properly include it"
am: 15e0680af1

Change-Id: Ie7a6d822a08f04e3ca321f66ce5614003c2e5362
2020-01-27 16:04:48 -08:00
Treehugger Robot 15e0680af1 Merge "Give strip depfile a unique name, properly include it" 2020-01-27 23:38:00 +00:00
Tianjie Xu f10be1e153 Merge "Add apexer and dependencies to otatools"
am: 19dbfceafd

Change-Id: Id9140f3e340ff8aae5f1061a562953bc5717c9e0
2020-01-27 15:30:14 -08:00
Tianjie Xu 19dbfceafd Merge "Add apexer and dependencies to otatools" 2020-01-27 23:21:52 +00:00
Colin Cross 3e87e83557 Give strip depfile a unique name, properly include it
$(LOCAL_BUILT_MODULE).d may conflict with the .d file for a .o file,
use $(LOCAL_BUILT_MODULE).strip.d.  Also pass the required second
arg to include-depfile.

Bug: 148387048
Test: m checkbuild
Change-Id: I1f5f4c38010294a12d6777439b0f66c0102c1c96
2020-01-27 22:06:21 +00:00
Daniel Rosenberg 6cc2c81f4d Add build properties to enable casefold and prj_quota
This adds the ability to format f2fs and ext4 in a way that supports
casefolding and project quotas. Project quotas require wider inodes, and
thus cannot be enable apart from at build time. Casefolding can be
configured with f2fs.fsck/tune2fs later.

Both features are enabled via inheriting emulated_storage.mk in the
device.mk

Bug: 138322712
Bug: 138321217
Test: Enable on device with related patches, view fs configuration on /data
Change-Id: Ib1ab0589006ff1b3fb7478b7e9b0a8aad71e4b09
2020-01-27 12:45:47 -08:00
Colin Cross 43e74295e0 Fix building docs as part of checkbuild
s/module_to_check/modules_to_check/

Bug: 118815658
Test: m checkbuild
Change-Id: I53e10747ed404509fd11adb72e641c702e27655b
2020-01-27 11:36:07 -08:00
Tianjie Xu eb8a0a0036 Add apexer and dependencies to otatools
We need them to extract and repack the apex file when signing
the apex.

Bug: 146508800
Test: build
Change-Id: Ib38055eac24f28ac59610d03275de05b77d3eeb0
2020-01-27 11:05:54 -08:00
Dan Willemsen e2b3e1a84d Merge "Deprecate BUILD_HOST_SHARED_LIBRARY"
am: 9fe2479849

Change-Id: I2a8274203c91f107344b05793f70f8813be12d4b
2020-01-24 16:58:29 -08:00
Yifan Hong 7bf299b6db Merge "Add BOARD_USES_RECOVERY_AS_BOOT to readonly list."
am: 715c6a8794

Change-Id: Ie86e5ee8ae355cea0e4439764be3058ab2580c4d
2020-01-24 16:55:49 -08:00
Yifan Hong 40ff694e13 Export BOARD_USES_RECOVERY_AS_BOOT to soong.
am: 9a190e25d0

Change-Id: I8ca6afcac64c70b3aaae12eecd41cd8053830422
2020-01-24 16:31:38 -08:00
Dan Willemsen 9fe2479849 Merge "Deprecate BUILD_HOST_SHARED_LIBRARY" 2020-01-25 00:09:48 +00:00
Yifan Hong 5e57a778cd Disallow VINTF metadata for PRODUCT_COPY_FILES
VINTF metadata must be checked by defining
DEVICE_MANIFEST_FILE and friends, instead of being
copied with PRODUCT_COPY_FILES directly.

This can be worked arond with BUILD_BROKEN_VINTF_PRODUCT_COPY_FILES.

Test: Add the following and see errors:

PRODUCT_COPY_FILES += \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/vintf/manifest.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/vintf/manifest/foo.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/vintf/compatibility_matrix.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/vintf/manifest.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/vintf/manifest/foo.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/vintf/compatibility_matrix.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/etc/vintf/manifest.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/etc/vintf/compatibility_matrix.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/compatibility_matrix.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_ODM)/etc/manifest.xml \
    device/XXX/manifest.xml:$(TARGET_COPY_OUT_ODM)/etc/vintf/manifest.xml \

Test: test again with BUILD_BROKEN_VINTF_PRODUCT_COPY_FILES := true

Bug: 147506249

Change-Id: Id75a9690b3c71fdc9a4e1b4e9be2caa63183cf7c
2020-01-24 15:07:35 -08:00
Yifan Hong 8d29737259 Add BOARD_USES_RECOVERY_AS_BOOT to readonly list.
Test: builds
Change-Id: I391e0d168c79e84c1a2acd4fe693e3ed9fbddb53
2020-01-24 14:28:03 -08:00
Colin Cross 74daa974bb Rename NativeCoverage to Native_coverage
Rename NativeCoverage to Native_coverage so it can be used as a
product_variable in Soong.

Test: m checkbuild
Change-Id: I86463a5c9b6cf4ba628cbdfb200625dc1e59e559
2020-01-24 14:27:11 -08:00
Dan Willemsen 084c6ef6fa Deprecate BUILD_HOST_SHARED_LIBRARY
There are no common users left.

Also add some sanity checks to ensure that people don't attempt to use
LOCAL_IS_HOST_MODULE := true with the BUILD_(STATIC|SHARED)_LIBRARY
module types (I'm not sure it would work, but it definitely wouldn't be
good).

Bug: 130722971
Test: treehugger
Test: check the warnings on the build_test builds from treehugger
Change-Id: I3e571ef80379955149adbceff4500e51dfa016c6
2020-01-24 13:21:21 -08:00
Yifan Hong 9a190e25d0 Export BOARD_USES_RECOVERY_AS_BOOT to soong.
Test: pass
Bug: 147347110
Change-Id: I4ba4f626f02c42b1700a971326557abd23da8340
2020-01-23 13:21:09 -08:00
android-build-team Robot ad00196e16 Version bump to QQ2A.200305.003 [core/build_id.mk]
Change-Id: Iaa087ed79e7879f7b7d8e2f344bbbd6596e73659
2020-01-23 19:21:22 +00:00
Inseob Kim f0cec69de9 Implement BOARD_VNDK_VERSION
This allows BOARD_VNDK_VERSION to be set to old versions. With VNDK
snapshot and vendor snapshot installed, newer system and older vendor
image can be built in the same time.

Bug: 65377115
Test: 1) VNDK_SNAPSHOT_BUILD_ARTIFACTS=true m dist vndk vendor-snapshot
Test: 2) install snapshot under source tree
Test: 3) set BOARD_VNDK_VERSION and boot cuttlefish
Change-Id: Ic5fefc8bcb866584b27f021a429cb6670a2e3048
2020-01-23 12:52:25 +00:00
Inseob Kim c465e20400 Implement vendor snapshot
Vendor snapshot can be captured with "m dist vendor-snapshot". With
vendor snapshot and vndk snapshot, older version of /vendor and newer
version of /system will be able to be built together by setting
BOARD_VNDK_VERSION to past vendor's version.

Only vendor modules under AOSP are to be captured. In detail, modules
under following directories are ignored:
- cts/
- device/
- external/clang/
- external/llvm/
- hardware/, except for:
    - interfaces/, libhardware/, libhardware_legacy/, ril/
- vendor/

Bug: 65377115
Test: m dist vendor-snapshot
Change-Id: Ib5859e409f8ab281ca137cae21e9ea08abd8a0b1
2020-01-23 21:51:08 +09:00
Yifan Hong f243891f3f Merge "Do not check VINTF if no files"
am: 84c1309730

Change-Id: I10c47483413fc62f57671a5a2a81bea11258d0c2
2020-01-22 14:59:08 -08:00
Yifan Hong 84c1309730 Merge "Do not check VINTF if no files" 2020-01-22 22:51:04 +00:00
Oliver Nguyen d4692b03ea Merge "Add CLANG_COVERAGE build flag to soong config."
am: 125f7dc84d

Change-Id: I00230a947695715157425999cd2f90173d6e3098
2020-01-22 14:41:31 -08:00
Oliver Nguyen 125f7dc84d Merge "Add CLANG_COVERAGE build flag to soong config." 2020-01-22 22:34:35 +00:00
Jeongik Cha a7f1ee1ac8 Merge "Turn on PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE if PRODUCT_SHIPPING_API_LEVEL > 29"
am: 02b1498d5a

Change-Id: Idd23b218bc9c6203865f642d78dfa4c3bafdbdc6
2020-01-21 16:45:00 -08:00
Treehugger Robot 02b1498d5a Merge "Turn on PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE if PRODUCT_SHIPPING_API_LEVEL > 29" 2020-01-22 00:36:40 +00:00
Justin Yun 24102883f3 Merge "Restore "Linktype check for native:product""
am: 839eb98241

Change-Id: I9a48eb53227819ecd6d0a29f561f189130991e48
2020-01-21 16:24:56 -08:00
Justin Yun 2bfe0a1a25 Restore "Linktype check for native:product"
Similar to native:vendor, native:product can use VNDK libs but not
vndk_private.
It is activated when PRODUCT_PRODUCT_VNDK_VERSION is set.

This restores the reverted commit
4e7e76fe5a (aosp/1197274).
The problem of the original CL was assuming no modules have both
LOCAL_PRODUCT_MODULE and LOCAL_USE_VNDK in the old implementations.
But many vendor modules in the targets without setting
PRODUCT_PRODUCT_VNDK_VERSION in old branches had both flags that
caused link failures.
To make it no-op without PRODUCT_PRODUCT_VNDK_VERSION, I defined
LOCAL_USE_VNDK_PRODUCT that is set to true if
PRODUCT_PRODUCT_VNDK_VERSION is defined and LOCAL_PRODUCT_MODULE is
true.

Bug: 146620523
Test: build with PRODUCT_PRODUCT_VNDK_VERSION := current
Change-Id: I344c7dc1c47f08706c101e486ff07c3f10aff8ac
2020-01-22 00:16:25 +00:00
Peter Collingbourne 99c9c3bb81 Merge "Update make build system for dynamic unwinder."
am: b1d7545e1b

Change-Id: I140b18fe5c4d498f773ab0c60c473a66c87b0b11
2020-01-21 14:10:22 -08:00
Peter Collingbourne b1d7545e1b Merge "Update make build system for dynamic unwinder." 2020-01-21 21:28:44 +00:00
Yifan Hong af9b0701e3 Do not check VINTF if no files
Do not check VINTF integrity / compatibility if
no files are built to /system/etc/vintf/* or /vendor/etc/vintf/*.

Test: m check-vintf-all on gsi_gms_arm64
Test: m check-vintf-all on coral

Fixes: 147749718
Fixes: 148007775

Change-Id: I874d1558e0b891b9d307eec536b1071d382a43f5
2020-01-21 13:21:52 -08:00
Justin Yun b94f1cdabd Merge "Revert "Linktype check for native:product""
am: d7466880dc

Change-Id: If472ddb76883fc1c5217117dfa23e575bfec6b94
2020-01-19 23:48:40 -08:00
Justin Yun dd5401713c Revert "Linktype check for native:product"
This reverts commit 4e7e76fe5a.

Reason for revert: build breaks (bid: 6147225) and postsubmit test fails.
There are some modules that have both "product_specific: true" and "vendor_available: true", which tags the module as "native:product" unintentionally.
We need to clean up these cases first and revisit this CL.

Bug: 146620523
Bug: 147987741
Change-Id: Ib07543235d72a135b6b732aaa909c147d2df832b
2020-01-20 07:39:41 +00:00
Justin Yun f39eb0fadb Merge "Linktype check for native:product"
am: 2e7a67bde7

Change-Id: I53e993ada82e7daec20fe74a0a624536a8848966
2020-01-19 17:28:42 -08:00
Justin Yun 4e7e76fe5a Linktype check for native:product
Similar to native:vendor, native:product can use VNDK libs but not
vndk_private.
It is activated when PRODUCT_PRODUCT_VNDK_VERSION is set.

Bug: 146620523
Test: build with PRODUCT_PRODUCT_VNDK_VERSION := current
Change-Id: Icfd94dfc30e77581991799d9e2f408f57da22cea
2020-01-19 23:46:47 +00:00
Vic Yang f659596d8d Merge "Don't check VNDK variants when asan is used"
am: 7c42c3f55e

Change-Id: Ia43fd791c5c486adff06d888a67f5925d8b4e6c8
2020-01-17 20:52:41 -08:00
Vic Yang 90c3aca9bf Don't check VNDK variants when asan is used
Bug: 147911208
Test: Build with SANITIZE_TARGET=address
Change-Id: I161da92d2ed5c59ccf404cf93e04734cc85c2df9
2020-01-17 15:30:44 -08:00
Vic Yang 5465af32d2 Merge "Always check VNDK variant identicalness"
am: 5023711e9d

Change-Id: I24e041f3b64d6ee9f1c64c78a7995cf96e3a16bb
2020-01-17 12:29:39 -08:00
Yifan Hong 05c7ecaa00 Merge changes from topic "build_time_vintf"
am: 0188eb5d25

Change-Id: I0145144d40b539ee85f27a6fa1fadd230596b40a
2020-01-17 12:28:52 -08:00
Tobias Thierer 664375d166 Merge "Track addition of internal classes derived from OpenJDK 9+181."
am: 48b67473c6

Change-Id: I5b25f744a04e12bba0e6c28e8489d210a53a5b2d
2020-01-17 12:23:41 -08:00
Treehugger Robot 5023711e9d Merge "Always check VNDK variant identicalness" 2020-01-17 18:45:41 +00:00
Yifan Hong 0188eb5d25 Merge changes from topic "build_time_vintf"
* changes:
  Reland "Improve BUILT_ASSEMBLED_*_MANIFEST checks"
  Reland "Add check-vintf-all target."
2020-01-17 18:37:37 +00:00
Treehugger Robot 48b67473c6 Merge "Track addition of internal classes derived from OpenJDK 9+181." 2020-01-17 16:41:48 +00:00
Tobias Thierer c6cb1c3815 Track addition of internal classes derived from OpenJDK 9+181.
Bug: 147483640
Test: Treehugger

Change-Id: Ib934f0fe4e2aeadcc83bbae3c2efaf45a38081d4
2020-01-17 14:40:22 +00:00
Automerger Merge Worker a9eb75db71 Merge "Allow codename.fingerprint format for minSdkVersion" am: 345dad3c36
Change-Id: I10e17129aa1b98296139a757d7936282958cb9f2
2020-01-17 07:55:18 +00:00
Treehugger Robot 345dad3c36 Merge "Allow codename.fingerprint format for minSdkVersion" 2020-01-17 07:43:31 +00:00
Dan Willemsen a9d2208cb1 Merge "Add strict module check to package-modules.mk"
am: 951ae30d56

Change-Id: I05619d5bcf0eede440a591a75ad5c9ac21a07467
2020-01-16 16:07:49 -08:00
Treehugger Robot 951ae30d56 Merge "Add strict module check to package-modules.mk" 2020-01-17 00:03:07 +00:00
TreeHugger Robot 2f0743483b Merge "DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master" into stage-aosp-master 2020-01-16 18:29:25 +00:00
Baligh Uddin 7ce531de8e Allow codename.fingerprint format for minSdkVersion
Use codename.fingerprint format for minSdkVersion if it is unset
in the manifest and
UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true.

BUG: 130541924
2020-01-16 10:04:55 -08:00
Dan Willemsen 09c11073ac Add strict module check to package-modules.mk
The test lists keep getting out of date. Add a per-caller option so that
once they're clean on all builds we can stop them from regressing.

Test: add my_modules_strict := {true,false,,foo} to user
Change-Id: I3e09a8cbe5a07bbbff042b26cea7041c331dde96
2020-01-15 20:54:13 -08:00
Yifan Hong 2e4f20f540 Merge "device_(manifest|matrix).xml -> vendor_*" 2020-01-16 04:09:08 +00:00
android-build-team Robot c3a9cb18ab Version bump to QQ2A.200305.002 [core/build_id.mk]
Change-Id: I91a18ae5d0c7f7ecc01ccaba25819e571681d419
2020-01-16 01:59:23 +00:00
Xin Li 6764f473a5 DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master
Bug: 146167222
Change-Id: I5adf4130f45200f3abfa2d65178a1640918e5a06
2020-01-15 15:56:28 -08:00