Commit Graph

26060 Commits

Author SHA1 Message Date
android-build-team Robot bd325f4148 Version bump to RQ2A.210305.003 [core/build_id.mk]
Change-Id: Ie97631ff9629e4987def3e31ac345b7f7072e265
2021-01-23 00:01:47 +00:00
Liz Kammer c8381ba16b Add soong config var for library linking strategy
Support building cc modules with different library linking strategies
for apexes, to support different apex strategies pre/post S

Test: m APEX_BUILD_FOR_PRE_S_DEVICES
      library_linking_strategy_sample_binary
Bug: 154663937
Change-Id: Ic95ddce5e2b0619adff5b6b8a4e2da0d44df7173
2021-01-22 13:08:00 -05:00
Ulya Trafimovich 514d809b20 Add LOCAL_PROVIDES_USES_LIBRARY and use it in module dexpreopt config.
The new variable stores the name of the <uses-library>, if for some
reason it is different than the name of the module for that library
(normally they are the same, but sometimes differ). If the variable is
undefined or defined to an empty string, the name of the <uses-library>
is considered to be the same as the name of its module. It is recorded
in a module's dexpreopt.config file as "ProvidesUsesLibrary" field.

Bug: 132357300
Test: lunch aosp_cf_x86_phone-userdebug && m
Change-Id: Iac1be0fac79a944e4c26867cc58e274b76709da8
2021-01-22 12:09:30 +00:00
Ulya Trafimovich 1047a0a4be Add subcontexts field to JSON class loader context representation.
For now the subcontexts are always empty. A follow-up change will
actually populate that field from dependencies' dexpreopt.config files.

Bug: 132357300
Test: lunch aosp_cf_x86_phone-userdebug && m
Change-Id: I6cf0e8363dff4b406cb62ba3d76d566dbfec57e7
2021-01-22 12:00:24 +00:00
Evgenii Stepanov d0bd7f0db6 Merge "Support memtag_heap sanitizer type in make." 2021-01-21 20:21:13 +00:00
Jiyong Park 3c87560119 Add a missing guard around JACOCO_REPORT_CLASSES_ALL
Fixing a mistake that was made by
https://android-review.googlesource.com/c/platform/build/+/1549484/

Bug: N/A
Test: m nothing
Change-Id: I5d4c14934e9fa3fc493dcddb2916d39054da7422
2021-01-21 12:48:11 +09:00
Treehugger Robot 75c4e3483f Merge "Concat INTERNAL_*IMAGE_FILES into INTERNAL_ALLIMAGES_FILES" 2021-01-21 00:28:02 +00:00
Evgenii Stepanov 3330b2fe0b Support memtag_heap sanitizer type in make.
Bug: b/135772972
Test: build with SANITIZE_TARGET=memtag_heap
Change-Id: I0f66649e7a689c9f050dc49974e218b56698254c
2021-01-20 22:27:49 +00:00
Treehugger Robot 6e455b8ca3 Merge "Emit virtual_ab_compression prop to dynamic_parttiion_info.txt" 2021-01-20 19:04:11 +00:00
Nicolas Geoffray c6c4f08a8c Merge "Remove unused variables." 2021-01-20 18:13:20 +00:00
Ulyana Trafimovich 8951930f21 Merge "Do not suppress compilation of boot images because of TARGET_BUILD_APPS." 2021-01-20 17:46:02 +00:00
Bill Peckham ddf8f61ce5 Merge "Enable prebuilt hiddenapi CSV files." 2021-01-20 17:43:48 +00:00
Bowgo Tsai 7ac96037c3 Moving $OUT/vendor-ramdisk-debug.cpio.lz4 to intermediate dir
vendor-ramdisk-debug.cpio.lz4 will be packed into a
vendor_boot-debug.img and usually won't be flashed directly.

Moving it to the intermediate build directory.

Bug: None
Test: make vendorbootimage_debug
Change-Id: I86ea72c7a3484a90286139624408d07ce4bf994c
2021-01-20 22:33:13 +08:00
Nicolas Geoffray ed9395a929 Remove unused variables.
Test: m
Bug: 176171716
Change-Id: I203d08607688ae6f165f0d5c7eee5d13c61eeefa
2021-01-20 14:32:55 +00:00
Ulya Trafimovich 7f8b7a1123 Do not suppress compilation of boot images because of TARGET_BUILD_APPS.
Bug: 176171716
Test: build_mainline_modules.sh and ensure that the ART boot image is
    built: `find out -type f -name '*.art'` is nonempty for every arch.
Change-Id: I5163ebe1f8db3d4d921bab0f83cd388ba29419ec
2021-01-20 14:04:30 +00:00
Yo Chiang 865fd0c010 Merge "Specify --ramdisk_name for vendor ramdisks for vendor_boot v4" 2021-01-20 08:50:30 +00:00
Treehugger Robot b45217bdc4 Merge "Includes recovery resources into vendor_boot-debug.img" 2021-01-20 02:06:10 +00:00
Inseob Kim 890f84fe71 Merge "Implement directed vendor snapshot" 2021-01-20 01:17:23 +00:00
Ryan Prichard 39ac1faf76 Merge "Switch platform EH unwinder to prebuilt LLVM libunwind" 2021-01-20 00:10:58 +00:00
Kelvin Zhang 239a79ae19 Emit virtual_ab_compression prop to dynamic_parttiion_info.txt
Test: mm -j && mm -j dist, make sure virtual_ab_compression is set to
true in dynamic_partition_info.txt of target_File.zip

Change-Id: Id0d46bd8ed738b2b69a0c01481b7db0c7127f773
2021-01-19 16:11:32 -05:00
Yo Chiang 68ab626aac Specify --ramdisk_name for vendor ramdisks for vendor_boot v4
When building vendor_boot v4 with multiple vendor ramdisks, pass the
name of each ramdisk to mkbootimg.

Bug: 177882072
Test: Modify a device BoardConfig and verify the built vendor_boot.img
  with unpack_bootimg
Change-Id: I679d277aa88f1e10678d2f74b579e4140536e267
2021-01-19 18:58:43 +08:00
Bowgo Tsai ceaa411fcb Includes recovery resources into vendor_boot-debug.img
Commit I56dda56bab7def1540f4fb506323e3e605620cd4 adds
BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT and includes
$(TARGET_RECOVERY_ROOT_OUT) directory when building vendor
ramdisk if BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT is set.

We should do the same thing when building the vendor debug
ramdisk as well. Otherwise, lacking some recovery files
makes the device unable to boot into fastbootd/recovery mode.

Bug: 177712689
Test: `make vendorbootimage_debug`, then unpack
      ./obj/PACKAGING/vendor-boot-debug_intermediates/vendor-ramdisk-debug.cpio.lz4
      to check it includes recovery resources via:
      `lz4 -d -c ../vendor-ramdisk-debug.cpio.lz4 | cpio -idm`
Test: device can boot into fastbootd after flashing vendor_boot-debug.img

Change-Id: I4744c6600866436ed7d5a321e67e20b8f3da8a81
2021-01-19 17:07:45 +08:00
Bill Peckham e3cf60911a Enable prebuilt hiddenapi CSV files.
By enabling these hiddenapi CSV files to be prebuilt, it
becomes possible to create a split build that supports
the hiddenapi encode dex step, but doesn't contain all
of the java sources needed to generate the CSV files.

Bug: 175048716
Test: m nothing
Test: new TestHiddenAPISingletonWithPrebuiltCsvFile
Test: local build without prebuilt hiddenapi
Test: local build with prebuilt hiddenapi
Change-Id: Ia38c5016d2aeba54aa537a5ce601898d46330730
2021-01-16 22:07:40 +00:00
android-build-team Robot 46048438dd Make change and version bump to RQ2A.210305.002
Change-Id: I44c2bbb22fe285162d612e5e5b88ea7e7a5504b9
2021-01-15 00:28:19 +00:00
Paul Scovanner 2ca855c5f5 Update Security String to 2021-03-05
Bug: 177091143
Change-Id: I6d6542306c51ac1682f02cbce6701688d2bdbea2
(cherry picked from commit 9c4665257c)
2021-01-15 00:28:05 +00:00
android-build-team Robot e4ee55a60e Version bump to RQ2A.210305.001 [core/build_id.mk]
Change-Id: I493f0c3fdb3df02fc685ecc0e8936bf5e74a12e1
2021-01-14 23:05:22 +00:00
Yabin Cui 462c12dfae Disable unsigned-shift-base by default.
New clang compiler enables unsigned-shift-base as part of
integer sanitizers. But it makes some daemons crash at
libc++.

Bug: 177566116
Test: build.
Change-Id: I6d64fa5002b6035be4d960441eb5176c97152af9
2021-01-14 14:14:08 -08:00
android-build-team Robot 2a85407c26 Version bump to RQ2A.210105.005 [core/build_id.mk]
Change-Id: I8c24b12224ceadc26a8098e11f9302364f010547
2021-01-14 20:57:31 +00:00
Treehugger Robot d041e4babf Merge "Make ro.product.cpu.abilist.* to be fetched dynamically" 2021-01-14 18:34:22 +00:00
Martin Stjernholm 23e4ab2edf Merge "Add check that a module doesn't try to override itself." 2021-01-14 10:36:25 +00:00
android-build-team Robot 73e7049dea Version bump to RQ2A.210105.004 [core/build_id.mk]
Change-Id: I9eabaedf9e8e7024ea1b152b14af27f581ef9772
2021-01-14 07:55:04 +00:00
Ryan Prichard 6f19c3e06f Switch platform EH unwinder to prebuilt LLVM libunwind
Bug: http://b/153025717
Test: device boots
Change-Id: I8efa33c8375d67a24eb7f6e7512d6149d718a467
2021-01-13 19:36:53 -08:00
Jiyong Park f66f0ececc Concat INTERNAL_*IMAGE_FILES into INTERNAL_ALLIMAGES_FILES
As we add more partitions, INTERNAL_*IMAGE_FILES variables has grown
and the places where the variables are referenced had to be touched
everytime. This change introduces a new variable
INTERNAL_ALLIMAGES_FILES which concatnates INTERNAL_*IMAGE_FILES, and
replaces the uses of the variables with the new one.

Bug: N/A
Test: m
Change-Id: I62a0f725a0f6999421d04a6261370be9124e62d7
2021-01-14 11:23:12 +09:00
Treehugger Robot 0c6951f829 Merge "jacoco-report-classes-all.jar doesn't depend on fake modules" 2021-01-14 00:28:17 +00:00
Jiyong Park 4a693b28e6 jacoco-report-classes-all.jar doesn't depend on fake modules
The reason that the jar file depended on modules_to_install was to
collect files from other partitions, not just system. It isn't the
intention to gather fake modules like phony modules and more importantly
their dependencies (LOCAL_REQUIRE_MODULES). This change explicitly
filters out the fake modules to make the intent clearer.

In fact, the jar file depending on fake modules can have a side effect
that overridden modules are installed. It can happen as follows:

PRODUCT_PACKAGES += A B C

LOCAL_MODULE := A
LOCAL_REQUIRED_MODULES := B
include $(BUILD_PHONY_PACKAGE)

LOCAL_MODULE := B
include $(BUILD_XXX)
...

LOCAL_MODULE := C
LOCAL_OVERRIDES_MODULES := B
include $(BUILD_XXX)

modules_to_install is set to

out/target/product/xxx/fake_packages/A-timestamp
out/target/product/xxx/system/.../C

; B is correctly overridden.

But there still is an order-only dependency from A to B which is created
by add-all-target-to-target-required-modules-deps. Unfortunately,
overridden isn't take into account here.

So, if the jacoco jar file depends on modules_to_install, both B and C
are installed. And if the creation of system.img happens later, the two
are included together, which is an error.

A preferred way of fixing this is to amend
add-all-target-to-target-required-modules-deps so that override is take
into account. However, it will likely to require more Make tricks. This
change takes a much easier path; pruning the fake packages from the
dependencies so that its dependencies which might be wrong can't be
installed.

Bug: 175400393
Test: build/soong/soong_ui.bash --make-mode SKIP_ABI_CHECKS=true
SOONG_COLLECT_JAVA_DEPS=true TARGET_PRODUCT=cf_x86_phone
TARGET_BUILD_VARIANT=userdebug
TARGET_USERDATAIMAGE_PARTITION_SIZE=17179869184 droid dist
DIST_DIR=out/dist EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true
CLANG_COVERAGE=true NATIVE_COVERAGE_PATHS="*"
NATIVE_COVERAGE_EXCLUDE_PATHS="art bionic/libc device"
continuous_instrumentation_tests continuous_native_tests device-tests
platform_tests
No com.android.art.apex in system.img

Change-Id: Ie8a917b7c3985c3a4f19372a4430accd84124e83
2021-01-13 22:12:52 +09:00
Orion Hodson f79835fca2 Merge "Remove implicit include path for jni.h" 2021-01-13 06:11:03 +00:00
Treehugger Robot 9d2219c2da Merge "Add dependencies on java resources when packaging APK without classes" 2021-01-13 00:57:08 +00:00
Colin Cross 9644ec811f Add dependencies on java resources when packaging APK without classes
When an APK is packaged without any classes.dex files the resources
are packaged directly, and so the packaging rule must depend on the
resources.

Fixes: 177295654
Test: prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-aosp_cf_x86_64_phone.ninja -t query out/target/product/vsoc_x86_64/obj/APPS/CtsSplitApp_x86_64_intermediates/package.apk
Change-Id: I786e71439f11e7bd5e20e010b66fbf529eb57a5a
2021-01-12 15:08:08 -08:00
Evgenii Stepanov de32b6d59c Merge "Include/exclude paths for memtag sanitizer." 2021-01-12 19:33:02 +00:00
Ulyana Trafimovich c275c68dfd Merge "Initialize DEX_PREOPT_DEFAULT based on global dexpreopt settings." 2021-01-12 10:12:14 +00:00
Evgenii Stepanov 10b4d0ad5d Include/exclude paths for memtag sanitizer.
Bug: b/135772972
Test: none
Change-Id: Ib198c359b92b82573cb66fd6d993aece0e9ff7d9
2021-01-11 21:15:21 -08:00
android-build-team Robot 63bdab48cc Version bump to RQ2A.210105.003 [core/build_id.mk]
Change-Id: I756c880f842c0b8ea97590229bb212c313b60d4b
2021-01-12 04:54:55 +00:00
Treehugger Robot 7c6370772f Merge "Add unit_test option to module-info.json" 2021-01-12 02:37:47 +00:00
SzuWei Lin 7240eca439 Merge "Skip generate-common-build-props for older devices without /product" 2021-01-12 01:28:36 +00:00
Peter Collingbourne 4e98e687ec Merge "Remove ANDROID_EXPERIMENTAL_MTE." 2021-01-11 20:42:44 +00:00
Peter Collingbourne fcd9ccf4a1 Remove ANDROID_EXPERIMENTAL_MTE.
Now that the feature guarded by this flag has landed in Linux 5.10
we no longer need the flag, so we can remove it.

Bug: 135772972
Change-Id: I02fa50848cbd0486c23c8a229bb8f1ab5dd5a56f
2021-01-11 10:55:51 -08:00
Ulya Trafimovich e245e00d7b Initialize DEX_PREOPT_DEFAULT based on global dexpreopt settings.
Bug: 177214554
Test: lunch cf_x86_phone-userdebug && m
Test: Ensure that `find out -name dexpreopt.config` lists before and
    after the fix are identical (for target cf_x86_phone-userdebug).
Test: TARGET_PRODUCT=mainline_modules_x86_64 \
    TARGET_BUILD_VARIANT=userdebug \
    build/soong/soong_ui.bash --make-mode UipbUtil
Change-Id: I28b38c08ad570d53dc679f9b42975545d457416e
2021-01-11 17:02:16 +00:00
android-build-team Robot 63f78c1414 Version bump to RQ2A.210105.002 [core/build_id.mk]
Change-Id: I3fe2e76713ba8f52ac37cf48897c7729a1f382bb
2021-01-09 01:51:24 +00:00
yangbill 732b858481 Add unit_test option to module-info.json
Bug: 176096135
Test: atest -m hello_world_test, check module-info.json
Change-Id: Id8bc2eb0d93896afcbe5ce87b0205528615f090e
2021-01-08 17:36:56 +08:00
Treehugger Robot 17652e8981 Merge "Implement fake vendor snapshot" 2021-01-08 00:24:51 +00:00
Bob Badour ddfcfb8e2b Merge changes from topic "revert-1541855-revert-1377717-metalics-BOEMJWNSHV-PBOZXBJQZD"
* changes:
  Revert^2 "Rough-in license metadata support to make."
  Revert^2 "Add variables for notice deps, license kinds etc."
2021-01-07 22:42:08 +00:00
Inseob Kim c497641e6f Implement fake vendor snapshot
A fake vendor snapshot is a vendor snapshot whose prebuilt binaries and
captured headers are all empty. It's much faster to be built than the
real vendor snapshot, so users can exploit the fake vendor snapshot to
reduce the size of vendor snapshot they need, by installing the fake
snapshot and then inspecting the ninja dependencies.

Bug: 157967325
Test: m dist vendor-fake-snapshot
Change-Id: I7fa5d5033a296965b21e840765cc7fe02fd1f44e
2021-01-07 13:56:33 +09:00
Bob Badour 7a95820907 Revert^2 "Rough-in license metadata support to make."
Changed shell script to /bin/sh syntax for portability to mac_os etc.

54066744f0

Change-Id: Ibd472fc1bedfdc228a704108f0280b13ab1c9333
2021-01-06 20:52:43 -08:00
Bob Badour 21bd34fe09 Revert^2 "Add variables for notice deps, license kinds etc."
dcfb9c5ef5

Change-Id: I6a60f55ab0e7013061a695cb1b7c5ffde29577dd
2021-01-06 20:46:49 -08:00
Jose "Pepe" Galmes bee0c588a8 Merge "Support for recovery snapshot." 2021-01-06 21:17:54 +00:00
Bob Badour 2d76d2df84 Merge changes from topic "revert-1377717-metalics-BOEMJWNSHV"
* changes:
  Revert "Add variables for notice deps, license kinds etc."
  Revert "Rough-in license metadata support to make."
2021-01-06 19:17:43 +00:00
Jerome Gaillard dcfb9c5ef5 Revert "Add variables for notice deps, license kinds etc."
Revert "Export soong license data to make."

Revert "Add ability to declare licenses in soong."

Revert submission 1377717-metalics

Reason for revert: This has broken renderscript_mac target for aosp-master, see b/176909442

Reverted Changes:
I26ac54ca9:Define the standard license_kind rules.
I656486070:Export soong license data to make.
If9d661dfc:Export soong license data to make.
I97943de53:Add ability to declare licenses in soong.
Icaff40171:Rough-in license metadata support to make.
Ib8e538bd0:Add variables for notice deps, license kinds etc.

Change-Id: I1f672e6e8ec48f0141bb4b6cc4eb2efed1eeef6b
2021-01-06 19:00:05 +00:00
Jerome Gaillard 54066744f0 Revert "Rough-in license metadata support to make."
Revert "Export soong license data to make."

Revert "Add ability to declare licenses in soong."

Revert submission 1377717-metalics

Reason for revert: This has broken renderscript_mac target for aosp-master, see b/176909442

Reverted Changes:
I26ac54ca9:Define the standard license_kind rules.
I656486070:Export soong license data to make.
If9d661dfc:Export soong license data to make.
I97943de53:Add ability to declare licenses in soong.
Icaff40171:Rough-in license metadata support to make.
Ib8e538bd0:Add variables for notice deps, license kinds etc.

Change-Id: Iaf2243cba16f6191b022371a14f81ef8194a47d1
2021-01-06 19:00:05 +00:00
Bob Badour 5e35fecc1d Merge changes from topic "metalics"
* changes:
  Rough-in license metadata support to make.
  Add variables for notice deps, license kinds etc.
2021-01-06 18:08:06 +00:00
Inseob Kim d8cc1352b5 Implement directed vendor snapshot
Vendors can now generate only needed modules by setting the following
Makefile variables:

- DIRECTED_VENDOR_SNAPSHOT: set to true
- VENDOR_SNAPSHOT_MODULES: list of snapshot candidates

e.g.

DIRECTED_VENDOR_SNAPSHOT := true
VENDOR_SNAPSHOT_MODULES := toybox_vendor sh_vendor libbase libcutils ...

Bug: 157967325
Test: m dist vendor-snapshot after setting those in BoardConfig.mk
Change-Id: Iea1ddbe78e143316fb6cb5027de90b9c83252f80
2021-01-06 23:10:41 +09:00
Bill Yi 0fc21ee8a5 Merge "Merge RQ1A.210105.003 to aosp-master - DO NOT MERGE" 2021-01-06 13:58:59 +00:00
Inseob Kim 5cbfbf4ca7 Merge "Support building mixed versions of sepolicy" 2021-01-06 05:07:05 +00:00
Bill Yi 8d34c584de Merge RQ1A.210105.003 to aosp-master - DO NOT MERGE
Merged-In: Ic0390b8c19cbe4b38042939647e316901bb4bd17
Change-Id: I4f5adfb48b892311c1bd2dd2a50b670547eb2fb5
2021-01-05 18:30:21 -08:00
Inseob Kim fb7c801b67 Support building mixed versions of sepolicy
Now newer system policy and older vendor policy can be built together by
setting following variables:

- BOARD_SEPOLICY_VERS
- BOARD_REQD_MASK_POLICY (copy of older system/sepolicy/reqd_mask)
- BOARD_PLAT_VENDOR_POLICY (copy of older system/sepolicy/vendor)
- BOARD_(SYSTEM_EXT|PRODUCT)_(PUBLIC|PRIVATE)_PREBUILT_DIRS (copy of
  older system_ext and product policies)

Bug: 168159977
Test: try normal build and mixed build
Test: boot and check selinux denials
Change-Id: I4e2890c96cab69e60c83c60f8c396cfe049ec05b
2021-01-06 10:41:45 +09:00
Bob Badour 20fc1b3719 Rough-in license metadata support to make.
Change-Id: Icaff40171b94538219a8caa697b182dbdcc8229a
2021-01-05 08:42:48 -08:00
Bob Badour 6421674a39 Add variables for notice deps, license kinds etc.
Change-Id: Ib8e538bd09044a5791083b362d807cd9293833d5
2021-01-05 08:42:48 -08:00
Jiyong Park cddea9b426 Add TARGET_FORCE_APEX_SYMLINK_OPTIMIZATION
The APEX symlink optimization is a build-time trick to save the
storage/RAM usage of APEX by replacing some files in APEX with symlinks
to the files in the system partition. The optimization however is
automatically turned off for 'updatable: true' APEXes because doing the
optimization for them will hide the sys-health implication until when
the APEXes are built unbundled (i.e. prebuilt) and thus the
optimization is impossible.

TARGET_FORCE_APEX_SYMLINK_OPTIMIZATION forcibly disables the safety net.
When it is set to true, the symlink optimization is done regardless of
the 'updatable' property. This is useful for some of the devices like Go
where most APEXes (even the 'updatable: true' ones) should be
effectively non-updatable.

Bug: 175630508
Test: TARGET_FORCE_APEX_SYMLINK_OPTIMIZATION=true m and check that
updatable APEXes have symlinks to system libs

Change-Id: I261fd4ab2dd8e62ff435306b11168121cbcf662a
2021-01-05 21:03:30 +09:00
android-build-team Robot 8d0e078d9a Make change and version bump to RQ2A.210105.001
Change-Id: I54ff8e1c9e17bcaca7c11b9e7589be9109c2a77e
2021-01-05 00:25:19 +00:00
android-build-team Robot a93ed83ef0 Make change and version bump to RQ2A.210104.001
Change-Id: I38c508fb0ed53a9e5fb70b76883dd810155589a9
2021-01-03 22:15:59 +00:00
android-build-team Robot bd101c1edf Make change and version bump to RQ2A.210103.001
Change-Id: Ic30e625ba0295852a3bd8b51956ef3a972405cbe
2021-01-02 22:16:21 +00:00
android-build-team Robot a52f76d96f Make change and version bump to RQ2A.210102.001
Change-Id: Ic672a80ceb5be8e0c36d2dcb038091d85d044309
2021-01-02 00:16:35 +00:00
android-build-team Robot d66aa2d0ef Make change and version bump to RQ2A.210101.001
Change-Id: I2d6d849ed575302cdd5b90f21a9acc3f781fec49
2021-01-01 00:16:44 +00:00
SzuWei Lin baf5c8114b Make ro.product.cpu.abilist.* to be fetched dynamically
The patch rename the original ro.product.cpu.abilist* to
ro.system.product.cpu.abilist*. The property service will
define ro.product.cpu.abilist* by the intersect ABIs of
ro.{partition}.product.cpu.abilist*.

Bug: 176520383
Test: build aosp_arm64-userdebug and check the system/build.prop
Change-Id: I26e404632b28e9f6abd462920e0084ad2022a763
2020-12-31 16:59:27 +08:00
android-build-team Robot d7858f63d8 Make change and version bump to RQ2A.201231.001
Change-Id: Ibf0b0b2d0055b1e30bbeacaaf88c5b546337884e
2020-12-31 00:17:24 +00:00
android-build-team Robot 86de3b4661 Make change and version bump to RQ2A.201230.001
Change-Id: Ib13838798a7b032407237c8892fa0e2bc3a4b152
2020-12-30 00:16:27 +00:00
android-build-team Robot d7ed720dec Make change and version bump to RQ2A.201229.001
Change-Id: I13be31122ee7fe1cfa9c30de03165cf3ac5d3f04
2020-12-29 00:17:16 +00:00
android-build-team Robot e513aac168 Make change and version bump to RQ2A.201228.001
Change-Id: I1b44eeedaf5a9b23d8bf846b1356e74c2fa376cb
2020-12-27 22:15:58 +00:00
android-build-team Robot 483920d796 Make change and version bump to RQ2A.201227.001
Change-Id: I0eca7064e14a03dbfc7d30cb505bd2c57076717e
2020-12-26 22:16:07 +00:00
android-build-team Robot 70b1c9fb5a Make change and version bump to RQ2A.201226.001
Change-Id: I028b207a943cc4cda4513f4f455f70f8393eaa36
2020-12-26 00:16:42 +00:00
android-build-team Robot c0482c9029 Make change and version bump to RQ2A.201225.001
Change-Id: Idc6a759da121498a078333ccf25d447b9b2e4966
2020-12-25 00:17:34 +00:00
android-build-team Robot 4cfc94746f Make change and version bump to RQ2A.201224.001
Change-Id: I4f783b1b4f94b39159731feac9d12f0568891499
2020-12-24 00:16:56 +00:00
android-build-team Robot 9b712b16a8 Make change and version bump to RQ2A.201223.001
Change-Id: I9f8d700869ea04f407a29bd54acdc112c45ac2b0
2020-12-23 00:16:39 +00:00
android-build-team Robot 2bd4e155de Make change and version bump to RQ2A.201222.001
Change-Id: I9b53a5c083f225c25fc34bf677365e4979c2b931
2020-12-22 00:16:39 +00:00
Jose Galmes 5cd2547df9 Support for recovery snapshot.
Bug: 171231437
Test: source build/envsetup.sh
Test: ALLOW_MISSING_DEPENDENCIES=true m -j nothing
Change-Id: I6dbcf21ee26c53cd3ac573d118a99d68161aa2c7
2020-12-21 08:32:44 -08:00
Yo Chiang 1accf379a9 Merge "Add support for packing multiple vendor ramdisks in vendor_boot" am: 817e104290 am: 00784fff1b
Original change: https://android-review.googlesource.com/c/platform/build/+/1521382

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6a6e09092df12a7dbf34bc8a333c038fa5a0479a
2020-12-21 04:56:07 +00:00
Yo Chiang 817e104290 Merge "Add support for packing multiple vendor ramdisks in vendor_boot" 2020-12-21 03:46:05 +00:00
android-build-team Robot cc4d4831ae Make change and version bump to RQ2A.201221.001
Change-Id: Icfdbcf061735ec0e61d939ec95a99e2f25b6dcbb
2020-12-20 22:16:26 +00:00
android-build-team Robot 2b38c1b615 Make change and version bump to RQ2A.201220.001
Change-Id: Ia36a780a5147b4ae02683e8c9793618277e45098
2020-12-19 22:16:33 +00:00
android-build-team Robot b6ff21ebb2 Make change and version bump to RQ2A.201219.001
Change-Id: Ia465ac025f0a501d04d4e9394f89d8c049cc22dd
2020-12-19 00:25:52 +00:00
Martin Stjernholm 3839f03b7d Add check that a module doesn't try to override itself.
If that happens it will be left out entirely.

It would be nice to catch this on the Soong level, but there are
several separate code paths there so this ensures it isn't missed.

Test: `m nothing` with packages/modules/ArtPrebuilt/Android.bp that
  had this mistake
Bug: 172480615
Change-Id: I2d31679b2ca5b57bf14f35703c10093275209890
2020-12-18 17:38:06 +00:00
android-build-team Robot dcb2664043 Make change and version bump to RQ2A.201218.001
Change-Id: I544bdde82c60eb503cd7dfac30cd450f5c663490
2020-12-18 00:17:09 +00:00
Oleksiy Avramchenko d3d0f7d62e Skip generate-common-build-props for older devices without /product
Common ro.product properties are always generated for the
product partition, even if it is not present. This was introduced
for the R release with Ia88c8efecb18db9c27baa466e492bfd898b581d3
"Generate product build props always" commit.

It violates CDD requirements for the devices which were released
earlier. Add optional parameter to build-properties which allows to
skip the common properies generation and product partition specific
checks to make sure common properties are not generated for
the devices released before R and without product partition.

Test: manual, build product/etc/build.prop for shipping levels 28, 30
      and for the devices with and without product partitions
Bug: 174677451
Change-Id: Ia3275d7229d0a873e0a4f1d1ea7a25c758c85bb9
2020-12-18 00:53:20 +01:00
Martin Stjernholm 7241d59520 Merge "Temporarily set default to keep building with ART sources." am: e4e328a2ae am: b947548cfd
Original change: https://android-review.googlesource.com/c/platform/build/+/1529300

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6eb2e3d0ffaebcb5f24fb8de1fa9766fe99132fc
2020-12-17 23:16:48 +00:00
Martin Stjernholm d6e9ea97a6 Temporarily set default to keep building with ART sources.
Enables us to switch the default in .bp files, so ART prebuilt builds
can be tested with `m SOONG_CONFIG_art_module_source_build=false`.

Test: m
Test: m SOONG_CONFIG_art_module_source_build=false
Test: `m nothing` on some lunch targets that failed on internal
Bug: 172480615
Change-Id: I78725f77819dc29b47d2438dfe724532e4d2df47
2020-12-17 16:00:27 +00:00
android-build-team Robot 75c7f9d4ba Version bump to RQ2A.201217.002 [core/build_id.mk]
Change-Id: I092116d89d30ffd339fc900d1fe0a582ae4bd3a0
2020-12-17 05:31:58 +00:00
Yo Chiang d21e7dc833 Add support for packing multiple vendor ramdisks in vendor_boot
Add support for partitioning the vendor_boot kernel modules into
multiple vendor ramdisk fragments. The partition granularity is kernel
module directory. This mechanism builds upon the existing
BOARD_KERNEL_MODULE_DIRS mechanism. For example, say we have three
kernel module directories:

BOARD_KERNEL_MODULE_DIRS := foo bar baz

We can then define a vendor ramdisk fragment:

BOARD_MKBOOTIMG_ARGS += --header_version 4
BOARD_VENDOR_RAMDISK_FRAGMENTS := dlkm_foobar

And let said ramdisk to contain the DLKM directories "foo" and "bar":

BOARD_VENDOR_RAMDISK_FRAGMENT.dlkm_foobar.KERNEL_MODULE_DIRS := foo bar
BOARD_VENDOR_RAMDISK_FRAGMENT.dlkm_foobar.MKBOOTIMG_ARGS := <mkbootimg args>

The built vendor_boot image would contain two ramdisks.
The first one being the "default" ramdisk, which contains DLKM directory
"baz" and the rest of the files that get's installed to
$(TARGET_VENDOR_RAMDISK_OUT).
The second one is the "dlkm_foobar" ramdisk, which contains the two DLKM
directories.

Design doc: go/vendor-boot-v4

Bug: 162864255
Test: Modify BoardConfig.mk to have a product build v4 vendor_boot
Test: Use unpack_bootimg to verify the vendor_boot image
Test: Teach a bootloader how to handle v4 boot image, flash boot &
  vendor_boot and boot device
Change-Id: Ibb1bbd7ebe36430c55ec6c4818c1d3888a319089
2020-12-17 11:07:04 +08:00
android-build-team Robot d347de1f67 Version bump to RQ1A.210205.004 [core/build_id.mk]
Change-Id: Id846cdee713be9c77b1f9aca62175b247ef85969
2020-12-17 01:19:16 +00:00
Treehugger Robot a9bfe835c2 Merge "Move jacocoagent installation to base_system" am: 98b7ac4602 am: a88a997a7a
Original change: https://android-review.googlesource.com/c/platform/build/+/1532100

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3075df9537b0f27de59389f2e32a83009fb8d8c5
2020-12-17 00:49:27 +00:00
android-build-team Robot 00993370b8 Version bump to RQ1A.210205.003 [core/build_id.mk]
Change-Id: Ifc0e46818342eb396dc57a755593f6f43c47eceb
2020-12-17 00:32:01 +00:00
Treehugger Robot 98b7ac4602 Merge "Move jacocoagent installation to base_system" 2020-12-17 00:25:50 +00:00
android-build-team Robot 3fdea3cd0f Make change and version bump to RQ2A.201217.001
Change-Id: Id6d104af7d7320431f73af2019327759dd9d1329
2020-12-17 00:17:15 +00:00
Yifan Hong 42cae00cb0 Move jacocoagent installation to base_system
jacocoagent and its dependencies emits artifacts to system/,
hence it belongs to base_system.mk. It was rather incorrect
to add jacocoagent to EVERY product makefile because those
product makefiles may be enforcing artifact path requirements
(e.g. generic_ramdisk.mk).

Test: EMMA_INSTRUMENT=true m nothing
Bug: 175605139
Bug: 173742069
Change-Id: If9cb93ab8fd69d11e764ab830dc791bbe6106cf5
2020-12-16 09:50:42 -08:00
Anton Hansson f84850f2a0 Merge "Make TARGET_ARCH optional in BoardConfig" am: ed3b56ebca am: 772c6de6ce
Original change: https://android-review.googlesource.com/c/platform/build/+/1512776

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8eed6030306e6f8bbed46dd6312e2b7b723791aa
2020-12-16 12:43:01 +00:00
Anton Hansson fb7d793aad Merge "Add make support for Aml_abis and Ndk_abis options" am: e47d6e4a8c am: 3c22ddff3e
Original change: https://android-review.googlesource.com/c/platform/build/+/1512775

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idd7546252143f51b89d83df895472158dd732ae3
2020-12-16 12:42:50 +00:00
Anton Hansson ed3b56ebca Merge "Make TARGET_ARCH optional in BoardConfig" 2020-12-16 11:48:04 +00:00
Anton Hansson e47d6e4a8c Merge "Add make support for Aml_abis and Ndk_abis options" 2020-12-16 11:38:49 +00:00
Anton Hansson a56f2ef077 Merge "Reformat _board_strip_readonly_list assigment" am: 3ab1add1f2 am: 7f8a07e671
Original change: https://android-review.googlesource.com/c/platform/build/+/1528169

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib6399fa8daf53a35180f50c3b60337b512ad7367
2020-12-16 11:27:34 +00:00
Anton Hansson 3ab1add1f2 Merge "Reformat _board_strip_readonly_list assigment" 2020-12-16 11:12:32 +00:00
android-build-team Robot 02157285ca Version bump to RQ1A.210205.002 [core/build_id.mk]
Change-Id: Ic89425a387bdbbb55064d9f0be992a45a5266d79
2020-12-16 00:19:42 +00:00
android-build-team Robot 6e3111bff5 Make change and version bump to RQ2A.201216.001
Change-Id: I3a85c7e1f1fe2ec134b0b30252bdaec5bc4361bd
2020-12-16 00:17:57 +00:00
android-build-team Robot ceec59a147 Make change and version bump to RQ1A.210205.001
Change-Id: I79647a21f2799112a0c9f43395eb8d422df8ae41
2020-12-15 21:49:54 +00:00
Paul Scovanner 15a1226d7d Update Security String to 2021-02-05
Bug: 175313938
Change-Id: I6a1139d288c24a11289fc53c9022fd6d70acd8e6
(cherry picked from commit d4d46ab023)
2020-12-15 21:45:24 +00:00
Treehugger Robot ba1f95499f Merge "Revert^2 "Always turn on compatible property"" am: dec924e081 am: 226df907f0
Original change: https://android-review.googlesource.com/c/platform/build/+/1505351

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I320cc0178767465a4d789eecc711b0fbd9d07c94
2020-12-15 16:15:03 +00:00
Anton Hansson 41f9cc2c6b Make TARGET_ARCH optional in BoardConfig
Not setting TARGET_ARCH is ok if TARGET_ARCH_SUITE is set instead. Skip
certain TARGET_ARCH-specific steps of the config:
- don't run the 'select' steps to figure out cpu flags
- don't generate dexopt config for TARGET_ARCH

Bug: 174315599
Test: lunch <product that sets TARGET_ARCH_SUITE but not TARGET_ARCH>
Change-Id: I74a9e71d0cc5c7f74d3b10b1c8bb89682c096d7c
2020-12-15 12:46:51 +00:00
Anton Hansson 5e05b8ef31 Add make support for Aml_abis and Ndk_abis options
Add a new TARGET_ARCH_SUITE which, when set to 'mainline_sdk' or 'ndk',
sets `Aml_abis: true` in soong.variables.

This is required to enable removing the custom soong.variables that
are being maintained for the ndk and mainline sdk builds.

Bug: 174315599
Test: TARGET_ARCH_SUITE=mainline-sdk m nothing; inspect soong.variables
      (ditto for ndk)
Change-Id: Ib651a637457310270840d721cdccf50bede3ee58
2020-12-15 12:46:46 +00:00
Anton Hansson b7b3d8ead6 Reformat _board_strip_readonly_list assigment
Allows for adding comments between variable definitions. This matches
the style in product.mk

Test: m nothing
Change-Id: Icc1e3d635a885000c49371997a55001739c02587
2020-12-15 12:45:37 +00:00
Treehugger Robot dec924e081 Merge "Revert^2 "Always turn on compatible property"" 2020-12-15 12:00:10 +00:00
Treehugger Robot b73e57cc7b Merge "Allows GSI AVB keys on vendor boot even when not building vendor boot." am: a25382e565 am: bcbd8a7cf9
Original change: https://android-review.googlesource.com/c/platform/build/+/1528487

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If29ea9547c81cdc1cea86a39405976a69c9ca367
2020-12-15 03:35:49 +00:00
Treehugger Robot a25382e565 Merge "Allows GSI AVB keys on vendor boot even when not building vendor boot." 2020-12-15 02:48:43 +00:00
JaeMan Park 3c3b051f5c Merge "Add java_sdk_library enforcement flag verification" am: c21cde1007 am: 24efe302d2
Original change: https://android-review.googlesource.com/c/platform/build/+/1519538

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5946026390b9dc1461de712ba793b04152d46d78
2020-12-15 00:52:59 +00:00
JaeMan Park a639874a88 Merge "Add java_sdk_library enforcement flags to product.mk" am: d06fe704b3 am: 107ae739e0
Original change: https://android-review.googlesource.com/c/platform/build/+/1512951

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I626796f8f0344330d94563694a8849286629fe56
2020-12-15 00:52:44 +00:00
android-build-team Robot 04251ce972 Make change and version bump to RQ2A.201215.001
Change-Id: I3ed9b6f1ff34b17a9a7c0619a5f6f57f6e00933e
2020-12-15 00:17:49 +00:00
Diego Vela 5367bd3fa7 Merge "Revert "Make ab_ota_partitions read only"" am: 111e9cbf40 am: 5fa60fb418
Original change: https://android-review.googlesource.com/c/platform/build/+/1528745

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1f5a4626d6e42051252d7a0c23437aad623d72e2
2020-12-15 00:04:05 +00:00
JaeMan Park c21cde1007 Merge "Add java_sdk_library enforcement flag verification" 2020-12-15 00:00:33 +00:00
JaeMan Park d06fe704b3 Merge "Add java_sdk_library enforcement flags to product.mk" 2020-12-15 00:00:05 +00:00
Diego Vela f03fa0c5f2 Revert "Make ab_ota_partitions read only"
This reverts commit 929f1ad1d6.

Reason for revert: Caused a build break
Bug: 175633875

Change-Id: I6cb518a574c865a2e2c4ecdc4203dfa03bbf05d9
2020-12-14 23:08:31 +00:00
Daniel Norman 6af48c8312 Allows GSI AVB keys on vendor boot even when not building vendor boot.
This allows system-only builds (which disable vendor images) to inherit
from device makefiles that normally place GSI AVB keys on vendor boot.

Bug: 175594737
Test: lunch system-only build, m, observe warning not failure
Change-Id: Ib6c199d0a47b3b3be2143241d83ab586966cfd1e
2020-12-14 13:43:13 -08:00
Anton Hansson 01ccbb5029 Merge "Make ab_ota_partitions read only" am: 3cc8ce9fd3 am: 605616d88b
Original change: https://android-review.googlesource.com/c/platform/build/+/1528250

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7573c5226c6ff13a06efe7d20d28eb88b7a081cb
2020-12-14 19:41:12 +00:00
Paul Scovanner b316614965 Update Security String to 2021-02-05 am: d4d46ab023 am: 02819aefbd am: 4de5d521ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/13202277

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia0297f88b04b297796086e4a67e7d33d4c27262b
2020-12-14 16:02:06 +00:00
Tianjie 929f1ad1d6 Make ab_ota_partitions read only
Now that we have moved the AB_OTA_BOOTLOADER_PARTITIONS &
AB_OTA_RADIO_PARTITIONS to BoardConfig, we can make the
ab_ota_partitions read only.

Eventually, the variable will be exposed as a product build
property. And we want its value to stay unchanged during the
build process.

Bug: 162148770
Test: build coral
Merged-In: I37ab41cf2ed7bc9cb6db6b4700c03ab48ed31fff
Change-Id: Ied45347c3e56e56d1372d51b98d7e52b02ff4755
(cherry-picked from commit 6e93f484ac)
2020-12-14 15:47:51 +00:00
Paul Scovanner 4de5d521ff Update Security String to 2021-02-05 am: d4d46ab023 am: 02819aefbd
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/13202277

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I216d8e70e6ebc75f8f4cd5efdb0c9b0190ea7866
2020-12-14 15:46:50 +00:00
Paul Scovanner 02819aefbd Update Security String to 2021-02-05 am: d4d46ab023
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/13202277

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I621f54103d4af96f4118d2b0ea4de9ff4262f652
2020-12-14 14:47:45 +00:00
android-build-team Robot 45f00caa8f Make change and version bump to RQ2A.201214.001
Change-Id: If4b1082e38957f59082e95186fcbdf8ff4071ef2
2020-12-13 22:16:05 +00:00
android-build-team Robot d649849448 Make change and version bump to RQ2A.201213.001
Change-Id: Ib0729f16d62d34bd0f35b25a9f2375b5754eabcd
2020-12-12 22:16:31 +00:00
android-build-team Robot d9352b7764 Make change and version bump to RQ2A.201212.001
Change-Id: If022d333f1b273567ba09e4cd5350ea2743f7400
2020-12-12 00:16:40 +00:00
Yifan Hong c102a147ad Merge "require-artifacts-in-path does not require PRODUCT_NAME/BRAND." am: 999779bdce am: 1b38e254df
Original change: https://android-review.googlesource.com/c/platform/build/+/1524321

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If89a284d99143e10bbc4abff7d2f128c26f80bc3
2020-12-11 21:26:00 +00:00
android-build-team Robot 355f4bd6e9 Make change and version bump to RQ2A.201211.001
Change-Id: I5c560d2afde8c1bc70af69cede25caf14f9172dc
2020-12-11 00:17:38 +00:00
Yifan Hong e086ae045e require-artifacts-in-path does not require PRODUCT_NAME/BRAND.
Also make generic_ramdisk.mk not to define them.

Test: m nothing
Change-Id: I5eff49abebe4194e3eba78557e5765e6ef2231e6
2020-12-10 13:18:29 -08:00
Paul Scovanner d4d46ab023 Update Security String to 2021-02-05
Bug: 175313938
Change-Id: I6a1139d288c24a11289fc53c9022fd6d70acd8e6
2020-12-10 18:23:46 +00:00
Anton Hansson c6bd47a429 Merge changes Ib2a4a208,Ic8235912 am: 63d3835f4a am: 5f71a978d0
Original change: https://android-review.googlesource.com/c/platform/build/+/1520781

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d8c1eb91873ce813ed68a45bc61a93122bb939d
2020-12-10 13:08:52 +00:00
Anton Hansson 63d3835f4a Merge changes Ib2a4a208,Ic8235912
* changes:
  Set allow list for generic ramdisk
  Add a "relaxed" mode for require-artifacts-in-path
2020-12-10 12:20:26 +00:00
Jaegeuk Kim c16f623992 Merge "Enable system partition compression" am: 74e57f6482 am: 863a120b51
Original change: https://android-review.googlesource.com/c/platform/build/+/1520098

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2777aacce9b5569c6919ed17510a0286fd0962a5
2020-12-10 01:14:11 +00:00
Jaegeuk Kim 863a120b51 Merge "Enable system partition compression" am: 74e57f6482
Original change: https://android-review.googlesource.com/c/platform/build/+/1520098

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7b50510b61129704f71ab4d9c474d74f4739aef0
2020-12-10 00:58:46 +00:00
Jaegeuk Kim 74e57f6482 Merge "Enable system partition compression" 2020-12-10 00:41:04 +00:00
android-build-team Robot 5dab81033d Make change and version bump to RQ2A.201210.001
Change-Id: Ifdccb368a8310507842b8debf6b60a0d1001825f
2020-12-10 00:16:48 +00:00
Anton Hansson d1258eb2f8 Add a "relaxed" mode for require-artifacts-in-path
This is useful when a makefile will produces different artifacts
depending on other configuration. Having an allow-list that's too strict
can make it a little  difficult to make progress.

Test: m nothing in follow-up
Change-Id: Ic8235912bcbaa8e249a752e042d4f42be4466e34
(cherry picked from commit 0b6fde311ac6bc2b64e69858382117a362645502)
2020-12-09 16:30:43 +00:00
Mohammad Islam c207ebfe52 Merge "Add a product flag that will enable compressed APEX on device" am: 0a246e5e31 am: b2568c4731
Original change: https://android-review.googlesource.com/c/platform/build/+/1512289

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I50e39b83f797b8fa15746b1c0f4c8983186a9109
2020-12-09 15:23:01 +00:00
Mohammad Islam b2568c4731 Merge "Add a product flag that will enable compressed APEX on device" am: 0a246e5e31
Original change: https://android-review.googlesource.com/c/platform/build/+/1512289

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3f1f01b0854b4e8209e82f0027a5ce419ecc50fd
2020-12-09 14:49:32 +00:00
Mohammad Islam 0a246e5e31 Merge "Add a product flag that will enable compressed APEX on device" 2020-12-09 14:34:42 +00:00
Anton Hansson da657b1ce1 Merge "Move artifact path requirement logic to a separate file" am: 6e579c1347 am: 23f4dafb47
Original change: https://android-review.googlesource.com/c/platform/build/+/1517924

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4719cd39b185f1169a818f2764324916adcb1d6a
2020-12-09 14:31:32 +00:00
Anton Hansson 23f4dafb47 Merge "Move artifact path requirement logic to a separate file" am: 6e579c1347
Original change: https://android-review.googlesource.com/c/platform/build/+/1517924

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3593e2076a4fb89ca849a55e6af119856134fb19
2020-12-09 13:57:08 +00:00
Anton Hansson 6e579c1347 Merge "Move artifact path requirement logic to a separate file" 2020-12-09 13:12:36 +00:00
Anton Hansson 1ffa7e4626 Merge "Move rule for certificate_violation_modules.txt" am: 63722db3db am: 314a943bd3
Original change: https://android-review.googlesource.com/c/platform/build/+/1517923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2610307e1afb922da2691b165089a1dea7d958f2
2020-12-09 13:11:56 +00:00
Anton Hansson 314a943bd3 Merge "Move rule for certificate_violation_modules.txt" am: 63722db3db
Original change: https://android-review.googlesource.com/c/platform/build/+/1517923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If863889189d69fd26c327480c7d8943ec77afebb
2020-12-09 12:34:08 +00:00
Anton Hansson 63722db3db Merge "Move rule for certificate_violation_modules.txt" 2020-12-09 12:07:15 +00:00
Rupert Shuttleworth 656b5a4139 Merge "Add missing buildinfo dependencies." am: 9204fde7cc am: 8d22aadd1b
Original change: https://android-review.googlesource.com/c/platform/build/+/1520200

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie754e0fb685477560c5748141746684ec061b497
2020-12-09 08:48:40 +00:00
Rupert Shuttleworth 8d22aadd1b Merge "Add missing buildinfo dependencies." am: 9204fde7cc
Original change: https://android-review.googlesource.com/c/platform/build/+/1520200

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I33af92b87ae8e8f32aa893d97b5dece0345c7afe
2020-12-09 08:21:06 +00:00
JaeMan Park 33d9aad0ba Add java_sdk_library enforcement flags to product.mk
Add flags that is used for java_sdk_library enforcement
to product.mk.

PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY is flag
for enabling java_sdk_library enforcement.

PRODUCT_INTER_PARTITION_JAVA_LIBRARY_ALLOWLIST is allowlist
for java_sdk_library enforcement, and it is consists of name
of dependency modules.

Test: m nothing
Bug: 168180538
Change-Id: I8743d9475be53b16f2c9e43d731c576bc56ddfbc
2020-12-09 14:02:38 +09:00
JaeMan Park aa7b03b970 Add java_sdk_library enforcement flag verification
Raise build error when PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY
is true while BOARD_VNDK_VERSION is not set because
PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY doesn't have any
meaning in that case.

Test: m nothing
Bug: 168180538
Change-Id: Ied2f99763a7cce7674ad50867403a66b18968071
2020-12-09 13:30:51 +09:00
Rupert Shuttleworth 3b37bc8986 Add missing buildinfo dependencies.
Test: Manually via USE_BAZEL=1 m dist (fixes a failure).
Change-Id: Ideb8dfd2e13932be5dcdef780888ffd602b15bd2
2020-12-09 04:24:15 +00:00
android-build-team Robot 2d1e583d80 Version bump to RQ2A.201209.002 [core/build_id.mk]
Change-Id: Ib39b6184ab05edef1a26e7bbdc75d0b2d8818402
2020-12-09 00:31:25 +00:00
android-build-team Robot 01fc540480 Make change and version bump to RQ2A.201209.001
Change-Id: I4ea6839565ddceeaa2d0a3b7a0c2f1818206e9bf
2020-12-09 00:18:49 +00:00
Robin Hsu 3e51f4234c Enable system partition compression
* Prerequisites: external/f2fs-tools: sload compression support
* Must work with corresponding changes in system/extras repository
* If Board config does not change, it falls back to old behavior,
  i.e. no compression for the system partition
* Kernel f2fs compression support is a prerequisite if the Board config
  enables the compression (see below)
* Necessary board config change
 (e.g. device/<vendor>/<product>/BoardConfig-common.mk)

BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := f2fs
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 200000000
BOARD_SYSTEMIMAGE_FILE_SYSTEM_COMPRESS := true
BOARD_SYSTEMIMAGE_F2FS_SLOAD_COMPRESS_FLAGS := <sload compress sub-options>

Setting BOARD_SYSTEMIMAGE_FILE_SYSTEM_COMPRESS to true enables both the
compression support when the initial empty file system be made (mkfs.f2fs)
and the compression flag (-c) when the system image files be side-loaded
by sload.

Sload compress sub-options (i.e. options other than -c) will be provided
by BOARD_SYSTEMIMAGE_F2FS_SLOAD_COMPRESS_FLAGS.   If it is not given, or
is empty, the default sub-options will be used

Please refer to the sload.f2fs manual page.

Setting BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE to f2fs is trivially necessary.

* File system table (fstab), notably the file 'fstab.hardware', should
  also changed:
  - The file type must be changed to f2fs
  - Perhaps also other f2fs-specific options

Bug: 170918499
Test: Pixel4a userdebug build (from build id 6918751)
Signed-off-by: Robin Hsu <robinhsu@google.com>
Change-Id: Id9d67b5cb35dc806e06ff1320e89114abc996a28
2020-12-09 07:24:55 +08:00
Anton Hansson fae0f97114 Move artifact path requirement logic to a separate file
main.mk was a bit cluttered/difficult to follow wth all the indents. Put
the logic in a separate file instead.

Test: m nothing
Change-Id: I545bcd117a6bcd33b520ad279be1bab9b2d89393
2020-12-08 21:13:00 +00:00
Anton Hansson cd8fa36cbb Move rule for certificate_violation_modules.txt
It was in the middle of some other logic in main.mk

Put it in Makefile instead next to the other "information" dist txt
files.

Test: make and diff certificate_violation_modules.txt
Change-Id: I5b73a0f89ccf3de69e7608a0568d2b4b6f37e98c
2020-12-08 21:12:36 +00:00
Treehugger Robot 2ef771aab9 Merge "Enable debug ramdisk for vendor_boot with recovery" am: b5e9882939 am: 1430a0bc4f
Original change: https://android-review.googlesource.com/c/platform/build/+/1518219

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8b9a817b61a5cfe933fb5201d7b36638e19b65d6
2020-12-08 01:09:50 +00:00
Treehugger Robot 1430a0bc4f Merge "Enable debug ramdisk for vendor_boot with recovery" am: b5e9882939
Original change: https://android-review.googlesource.com/c/platform/build/+/1518219

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib87ab1869bcacfbc99edb5d4f760e09a04447d8b
2020-12-08 00:52:22 +00:00
android-build-team Robot fda2a4a7a0 Version bump to RQ2A.201208.002 [core/build_id.mk]
Change-Id: I4b5dc50fda84c8b2be9db91e08d22e59dcb89d71
2020-12-08 00:37:25 +00:00
Treehugger Robot b5e9882939 Merge "Enable debug ramdisk for vendor_boot with recovery" 2020-12-08 00:34:22 +00:00
Treehugger Robot 3b6ee38f7c Merge "Add option include a pvmfw partition" am: d7bf548967 am: e1365ce0b1
Original change: https://android-review.googlesource.com/c/platform/build/+/1513771

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9e693560c41eda3d95b73c8aa2347b256719982c
2020-12-08 00:22:11 +00:00
android-build-team Robot 47766ab74f Make change and version bump to RQ2A.201208.001
Change-Id: I94d5581086ec78c7440f598d324899ded7456745
2020-12-08 00:21:29 +00:00
android-build-team Robot ce74a50746 Version bump to RQ2A.201207.002 [core/build_id.mk]
Change-Id: Ic069f4407b5c09d88df18386cc972aeb7f75b1ac
2020-12-07 23:37:27 +00:00
Treehugger Robot e1365ce0b1 Merge "Add option include a pvmfw partition" am: d7bf548967
Original change: https://android-review.googlesource.com/c/platform/build/+/1513771

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd4f75d386f47e5a88d56d7b8039d5eb8c2018d3
2020-12-07 22:48:16 +00:00
Treehugger Robot d7bf548967 Merge "Add option include a pvmfw partition" 2020-12-07 22:20:02 +00:00
Julien Desprez 762c915cc3 Merge "Remove unit tests jar from suites" am: dbafb584dc am: 9e0cc331de
Original change: https://android-review.googlesource.com/c/platform/build/+/1510313

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I99fc289c5a8233681ba062bd10d45d36b2232eb4
2020-12-07 22:19:18 +00:00
Julien Desprez 9e0cc331de Merge "Remove unit tests jar from suites" am: dbafb584dc
Original change: https://android-review.googlesource.com/c/platform/build/+/1510313

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8bbd7863b5932fb2d07d03911ccac4ae269f705f
2020-12-07 22:04:36 +00:00
Julien Desprez dbafb584dc Merge "Remove unit tests jar from suites" 2020-12-07 21:32:10 +00:00
Andrew Scull 9b103e49e9 Add option include a pvmfw partition
Protected KVM relies on protected VM firmware (pvmfw) to bootstrap the
trust in protected VMs. This firmware is AVB protected and stored in the
pvmfw partition.

Test: build a target with BOARD_PREBUILT_PVMFWIMAGE set, saw the image
      included in the product files and used avbtool to check the footer
      and vbmeta.img details.
Bug: 171280178
Change-Id: I4d6a1819f307c77ca60c0dd3dff39ee28cece4f6
2020-12-07 12:31:23 +00:00
Xin Li 1f72a04078 DO NOT MERGE - Merge RQ1A.201205.011
Bug: 172690556
Merged-In: I61eac7915ab4b23227c3263d3f33a0f71dc3a107
Change-Id: I8deb9ddf5d03c65dab3bdf097339e8af84a9f1b5
2020-12-07 00:17:57 -08:00
android-build-team Robot 0f5e3a2ffa Make change and version bump to RQ2A.201207.001
Change-Id: Ie1272716d1582551fb1118f08b44cf743862c4d2
2020-12-06 22:16:51 +00:00
android-build-team Robot d555aec5b4 Make change and version bump to RQ2A.201206.001
Change-Id: I495a4f0f6731f08599a7acc5d7ad6eb6f9ce5cff
2020-12-05 22:16:01 +00:00
android-build-team Robot 30d0b2580e Make change and version bump to RQ2A.201205.001
Change-Id: Ibaeff26d3590729010c964d2009e24289f996172
2020-12-05 00:18:31 +00:00
Will McVicker 8f52a568f0 Enable debug ramdisk for vendor_boot with recovery
The debug vendor boot image needs to include the debug ramdisk in order
to retain adb root. So make sure this still happens when recovery is
moved to the the vendor boot image.

Bug: 172510680
Test: verify adb root when using vendor_boot-debug.img
Change-Id: I20fe27635dd33e4d8a59e873e704891de223204b
2020-12-04 11:08:32 -08:00
Yo Chiang 0e8820e34c Merge "Add phony target to check all PCF ELF prebuilts" am: ad4dae71cf am: b179ae612d
Original change: https://android-review.googlesource.com/c/platform/build/+/1311493

Change-Id: I701d91f63043d69676034e7c4443a56ea083a5a9
2020-12-04 05:14:03 +00:00
Yo Chiang b179ae612d Merge "Add phony target to check all PCF ELF prebuilts" am: ad4dae71cf
Original change: https://android-review.googlesource.com/c/platform/build/+/1311493

Change-Id: I9b97245b1b1a894cd87b396bd0ef4bd1aab46290
2020-12-04 04:11:48 +00:00
Yo Chiang ad4dae71cf Merge "Add phony target to check all PCF ELF prebuilts" 2020-12-04 02:49:33 +00:00
android-build-team Robot d772b5e5c3 Make change and version bump to RQ2A.201204.001
Change-Id: I7201c31515404c8ac4607ab6da91fd7ddcfd1099
2020-12-04 00:17:24 +00:00
Treehugger Robot 1f93ad0ee5 Merge "Make installed-files-recovery.txt depend on rsync timestamp" am: ed41c73db5 am: ae2bf41268
Original change: https://android-review.googlesource.com/c/platform/build/+/1515806

Change-Id: Ia531ba9818d045bc92067ac979ca5b7766e4548c
2020-12-03 18:10:09 +00:00
Treehugger Robot ae2bf41268 Merge "Make installed-files-recovery.txt depend on rsync timestamp" am: ed41c73db5
Original change: https://android-review.googlesource.com/c/platform/build/+/1515806

Change-Id: I9f2a5e377c7a46ad5efeb7acaa42ef21b58b5cbd
2020-12-03 17:06:29 +00:00
Treehugger Robot ed41c73db5 Merge "Make installed-files-recovery.txt depend on rsync timestamp" 2020-12-03 16:42:25 +00:00
Mohammad Samiul Islam c87781a020 Add a product flag that will enable compressed APEX on device
The product flag is only defined in this CL. No device has been
configured to use this flag yet.

The flag is overridable using environment variable. This way, developers
can enable APEX compression on various targets.

Bug: 137802149
Test: build/soong/soong_ui.bash --dumpvar-mode PRODUCT_COMPRESSED_APEX #false
Test: export OVERRIDE_PRODUCT_COMPRESSED_APEX \
  build/soong/soong_ui.bash --dumpvar-mode PRODUCT_COMPRESSED_APEX #true
Change-Id: I10e4909258cee9b4670bc3f10ff3a0ad5013c864
2020-12-03 14:58:47 +00:00
Treehugger Robot f8035b19c3 Merge "Adds host_init_verifier to otatools.zip" am: d955bc1288 am: 2875f607e3
Original change: https://android-review.googlesource.com/c/platform/build/+/1515821

Change-Id: If298b8344e9abee8889e23594d1e67d87b634810
2020-12-03 08:45:03 +00:00
Treehugger Robot 2875f607e3 Merge "Adds host_init_verifier to otatools.zip" am: d955bc1288
Original change: https://android-review.googlesource.com/c/platform/build/+/1515821

Change-Id: Ia662cc0bb2dba840247de7d69229d2fb5ad20345
2020-12-03 08:22:53 +00:00
Treehugger Robot d955bc1288 Merge "Adds host_init_verifier to otatools.zip" 2020-12-03 07:10:21 +00:00
Daniel Norman ee33b4ea51 Adds host_init_verifier to otatools.zip
This is needed after
commit 21c34f78e8
which starts calling host_init_verifier in merge_target_files,
a binary in releasetools.

Test: m otatools
Change-Id: Iee762de9fd6f890b5cc26ee5507da2f3f284fc14
2020-12-02 16:18:25 -08:00
android-build-team Robot 776370e926 Make change and version bump to RQ2A.201203.001
Change-Id: I735732a897068b70d5720d1ca837d5e937aa97a6
2020-12-03 00:17:16 +00:00
Colin Cross 359f421d3b Make installed-files-recovery.txt depend on rsync timestamp
Files are copied into the recovery installation directory by a rule
that runs rsync.  The previous logic tried to avoid racing with the
rsync rule by depending on the final packaged recovery image, but
if BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT is set then
INSTALLED_RECOVERYIMAGE_TARGET is left empty and no dependency was
added.  Depend on the timestamp file used as the output of the rule
that runs rsync instead.

Test: query dependencies of installed-files-recovery.txt
Fixes: 173772240
Change-Id: I5ec77a6933e3a83fe4e4819e0e246017d824d8a5
2020-12-02 23:19:29 +00:00
Xin Li 4bc4ff3c11 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I880b5dfb7bfea4b6abef9fcb603abcb383d84f42
Change-Id: I3c3385a1c58004f1ee6124de0c86dfff614a3bf6
2020-12-02 00:03:31 -08:00
JaeMan Park 2cd4981b69 Merge "Add java sdk library enforcement flag" am: 38e3f08248 am: 08d8128d84
Original change: https://android-review.googlesource.com/c/platform/build/+/1475760

Change-Id: I54cdc0765afe6f18af2fab82819ad1d22b158849
2020-12-02 06:05:10 +00:00
JaeMan Park 38e3f08248 Merge "Add java sdk library enforcement flag" 2020-12-02 04:39:08 +00:00