Commit Graph

67362 Commits

Author SHA1 Message Date
Treehugger Robot 5011824af0 Merge "Add keystore2 to PLATFORM_PACKAGES" am: c0f701287c am: e383447ffe am: 47767ebd8a am: ed4bce9aed
Original change: https://android-review.googlesource.com/c/platform/build/+/1479457

Change-Id: Iacbf1d8dd0aa156132caba80dcb1209e7ceddd8d
2020-11-03 21:46:20 +00:00
Treehugger Robot ed4bce9aed Merge "Add keystore2 to PLATFORM_PACKAGES" am: c0f701287c am: e383447ffe am: 47767ebd8a
Original change: https://android-review.googlesource.com/c/platform/build/+/1479457

Change-Id: I6e457563acdc072b3ffda3f66f5a9d87de23c3d8
2020-11-03 21:33:07 +00:00
Treehugger Robot 47767ebd8a Merge "Add keystore2 to PLATFORM_PACKAGES" am: c0f701287c am: e383447ffe
Original change: https://android-review.googlesource.com/c/platform/build/+/1479457

Change-Id: I6fac0ea9a1815b005e0735844b7100043099a975
2020-11-03 21:20:30 +00:00
Treehugger Robot e383447ffe Merge "Add keystore2 to PLATFORM_PACKAGES" am: c0f701287c
Original change: https://android-review.googlesource.com/c/platform/build/+/1479457

Change-Id: I889c55a06e42ffb2042abdeaeb0a2d42999a923c
2020-11-03 21:08:21 +00:00
Treehugger Robot c0f701287c Merge "Add keystore2 to PLATFORM_PACKAGES" 2020-11-03 20:37:23 +00:00
Yifan Hong 7e9c7bfcf1 Merge "Enable BOARD_USES_GKI on aosp_arm64" am: 4503e6e383 am: edd0abfbc0 am: 254552fdb2 am: f53b60d8dd
Original change: https://android-review.googlesource.com/c/platform/build/+/1455954

Change-Id: I9932ab67652dfccb5ad85442812a10e56f4875ed
2020-11-03 20:37:08 +00:00
Yifan Hong f53b60d8dd Merge "Enable BOARD_USES_GKI on aosp_arm64" am: 4503e6e383 am: edd0abfbc0 am: 254552fdb2
Original change: https://android-review.googlesource.com/c/platform/build/+/1455954

Change-Id: I663c57223d90e7d22d6169f0588a23164743b9ce
2020-11-03 20:06:28 +00:00
Yifan Hong 254552fdb2 Merge "Enable BOARD_USES_GKI on aosp_arm64" am: 4503e6e383 am: edd0abfbc0
Original change: https://android-review.googlesource.com/c/platform/build/+/1455954

Change-Id: I49841c1a3baa308127d7ee2ebd97146690ebd917
2020-11-03 19:35:40 +00:00
Yifan Hong edd0abfbc0 Merge "Enable BOARD_USES_GKI on aosp_arm64" am: 4503e6e383
Original change: https://android-review.googlesource.com/c/platform/build/+/1455954

Change-Id: I7a4789b43884a3f3d469ab3993a1d0c385772dd8
2020-11-03 18:29:50 +00:00
Yifan Hong 4503e6e383 Merge "Enable BOARD_USES_GKI on aosp_arm64" 2020-11-03 18:17:13 +00:00
Treehugger Robot b5eebe854f Merge "Fix partition timestamps for secondary payload" am: 0806152b83 am: ad6949c590 am: 67c472a338 am: e548943ebc
Original change: https://android-review.googlesource.com/c/platform/build/+/1481896

Change-Id: I485ea109a4d7ff3c6536ed34485f6e625c5e9b12
2020-11-02 22:34:24 +00:00
Treehugger Robot e548943ebc Merge "Fix partition timestamps for secondary payload" am: 0806152b83 am: ad6949c590 am: 67c472a338
Original change: https://android-review.googlesource.com/c/platform/build/+/1481896

Change-Id: Ic3fdf8ad290d8fc9fb0db313ca42de385ef18a46
2020-11-02 22:23:08 +00:00
Treehugger Robot 67c472a338 Merge "Fix partition timestamps for secondary payload" am: 0806152b83 am: ad6949c590
Original change: https://android-review.googlesource.com/c/platform/build/+/1481896

Change-Id: I7e39a24c4e9f9756dc95edee8dfe6cddfdcaa899
2020-11-02 22:13:28 +00:00
Treehugger Robot ad6949c590 Merge "Fix partition timestamps for secondary payload" am: 0806152b83
Original change: https://android-review.googlesource.com/c/platform/build/+/1481896

Change-Id: I1d400cd5ec93103b6610c0b5be98b236eb3fd775
2020-11-02 21:33:22 +00:00
Treehugger Robot 0806152b83 Merge "Fix partition timestamps for secondary payload" 2020-11-02 21:22:17 +00:00
Yifan Hong c10e367912 Enable BOARD_USES_GKI on aosp_arm64
Enable BOARD_USES_GENERIC_KERNEL_IMAGE := true. In addition:
- Disable recovery_as_boot
- Disable recovery (PRODUCT_BUILD_RECOVERY_IMAGE=false)

Test: builds, and mmma packages/modules/Gki
Bug: 156098440
Change-Id: If6988f6b44f098ed8f1dc214eee1f2223fd03ae8
2020-11-02 11:28:20 -08:00
Yifan Hong ffdd8d8800 Merge changes I7bd61f74,Ia84e604a,I75e13b92,I0db2af20,I4feac435 am: d2ae9989cd am: e5b97b4714 am: f5b6603c57 am: ee74e31479
Original change: https://android-review.googlesource.com/c/platform/build/+/1478502

Change-Id: Ied26e8a2c45e8fa417aa4fcade535bc2a212b0e2
2020-10-30 19:35:00 +00:00
Kelvin Zhang a59bb27754 Fix partition timestamps for secondary payload
When generating secondary payload, we exclude many partitions. These
partitions should be excluded from partition timestamps as well.

Bug: 172022126
Test: ota_from_target_files --include_secondary
Change-Id: Ia3121919154181dc882c4694ad2591dcb81e719f
2020-10-30 14:54:40 -04:00
Yifan Hong ee74e31479 Merge changes I7bd61f74,Ia84e604a,I75e13b92,I0db2af20,I4feac435 am: d2ae9989cd am: e5b97b4714 am: f5b6603c57
Original change: https://android-review.googlesource.com/c/platform/build/+/1478502

Change-Id: I19ccd22bb52edb37e6b30b71cb5e06194f868685
2020-10-30 18:00:54 +00:00
Yifan Hong f5b6603c57 Merge changes I7bd61f74,Ia84e604a,I75e13b92,I0db2af20,I4feac435 am: d2ae9989cd am: e5b97b4714
Original change: https://android-review.googlesource.com/c/platform/build/+/1478502

Change-Id: Ib989f22b0b86a386818c94d4d1ec39e3af88d7d0
2020-10-30 17:40:28 +00:00
Yifan Hong e5b97b4714 Merge changes I7bd61f74,Ia84e604a,I75e13b92,I0db2af20,I4feac435 am: d2ae9989cd
Original change: https://android-review.googlesource.com/c/platform/build/+/1478502

Change-Id: Ibb7d27d04c2fdd5e552a331f578a2143a8498618
2020-10-30 17:24:41 +00:00
Yifan Hong d2ae9989cd Merge changes I7bd61f74,Ia84e604a,I75e13b92,I0db2af20,I4feac435
* changes:
  Mount generic ramdisk as readwrite.
  Do not put GENERIC_KERNEL_CMDLINE in recovery image.
  Move common code out of the conditional.
  Remove device-specific bits if recovery_as_boot
  Do not assume GKI just with vendor_boot.
2020-10-30 16:52:28 +00:00
Paul Duffin cf982907c5 Merge "Move boot jars package check to Soong" am: 58d6758ea1 am: 69fb86458c am: 8bf8a1c55a am: 24d3658f3a
Original change: https://android-review.googlesource.com/c/platform/build/+/1478737

Change-Id: I3b7af55e061a1925ea152741b6ccf1640eca1f05
2020-10-30 12:04:31 +00:00
Paul Duffin 24d3658f3a Merge "Move boot jars package check to Soong" am: 58d6758ea1 am: 69fb86458c am: 8bf8a1c55a
Original change: https://android-review.googlesource.com/c/platform/build/+/1478737

Change-Id: I9e0e12c20f2fe06aeb432e181b4ae68c0590e6c3
2020-10-30 11:49:34 +00:00
Paul Duffin 8bf8a1c55a Merge "Move boot jars package check to Soong" am: 58d6758ea1 am: 69fb86458c
Original change: https://android-review.googlesource.com/c/platform/build/+/1478737

Change-Id: Ic670e66bdb512e709c433a2e75ff9b1ff06616ad
2020-10-30 11:14:53 +00:00
Paul Duffin 69fb86458c Merge "Move boot jars package check to Soong" am: 58d6758ea1
Original change: https://android-review.googlesource.com/c/platform/build/+/1478737

Change-Id: I97d1b738571af736ddda4d12758fe0d6c0afc410
2020-10-30 10:41:52 +00:00
Paul Duffin 58d6758ea1 Merge "Move boot jars package check to Soong" 2020-10-30 10:06:46 +00:00
Alistair Delva ebfd37f908 Merge "Allow flashing erofs system imgs" am: 38d49ca61a am: b3d45c1db1 am: f1d308264c am: 127031e2d6
Original change: https://android-review.googlesource.com/c/platform/build/+/1353441

Change-Id: Ib4474c55f52ce90fc93a7feb7d81287116c0f7f4
2020-10-30 08:15:09 +00:00
Alistair Delva 127031e2d6 Merge "Allow flashing erofs system imgs" am: 38d49ca61a am: b3d45c1db1 am: f1d308264c
Original change: https://android-review.googlesource.com/c/platform/build/+/1353441

Change-Id: I47f4d42ea4ced63375b129560142ec2620d69bac
2020-10-30 07:49:18 +00:00
Alistair Delva f1d308264c Merge "Allow flashing erofs system imgs" am: 38d49ca61a am: b3d45c1db1
Original change: https://android-review.googlesource.com/c/platform/build/+/1353441

Change-Id: Ib231a6e90b32f18c39b7cde8766cc20cdeff8be2
2020-10-30 07:35:13 +00:00
Alistair Delva b3d45c1db1 Merge "Allow flashing erofs system imgs" am: 38d49ca61a
Original change: https://android-review.googlesource.com/c/platform/build/+/1353441

Change-Id: I1c5f74ec24e271f14964cff4194e5707ccc2f1eb
2020-10-30 07:02:53 +00:00
Alistair Delva 38d49ca61a Merge "Allow flashing erofs system imgs" 2020-10-30 06:41:25 +00:00
Joseph Murphy 8a23316edd Merge "Changes Robolectric test suite tag to its own value to enable filtering these in ATP." am: 67e1341100 am: 51a8b2b3bd am: 4586a367b2 am: d39fcde90f
Original change: https://android-review.googlesource.com/c/platform/build/+/1477422

Change-Id: Id3e4de2a4eaabb5d04a0ddac3d74b5b543fc6752
2020-10-29 12:03:44 +00:00
Joseph Murphy d39fcde90f Merge "Changes Robolectric test suite tag to its own value to enable filtering these in ATP." am: 67e1341100 am: 51a8b2b3bd am: 4586a367b2
Original change: https://android-review.googlesource.com/c/platform/build/+/1477422

Change-Id: I6cb8766957d938a86b805709c68f260ac5d723b9
2020-10-29 11:45:16 +00:00
Joseph Murphy 4586a367b2 Merge "Changes Robolectric test suite tag to its own value to enable filtering these in ATP." am: 67e1341100 am: 51a8b2b3bd
Original change: https://android-review.googlesource.com/c/platform/build/+/1477422

Change-Id: Ie6f51afb072c6baa8c8116d02e0ec43998a64cb5
2020-10-29 11:17:57 +00:00
Paul Duffin bbd4fae4d7 Move boot jars package check to Soong
Passes the SKIP_BOOT_JARS_CHECK property through to Soong and removes
the boot jars check. Moves the check_boot_jars directory containing the
script and data file into build/soong/scripts.

Test: m check-boot-jars - for failing and passing cases
      verified manually that apart from path differences the same
      files (same check sum) were checked in both old make checks and
      the new Soong ones
Bug: 171479578
Change-Id: I61c128806065befce239bbdd5491567827e1b2f5
2020-10-29 11:07:55 +00:00
Joseph Murphy 51a8b2b3bd Merge "Changes Robolectric test suite tag to its own value to enable filtering these in ATP." am: 67e1341100
Original change: https://android-review.googlesource.com/c/platform/build/+/1477422

Change-Id: I1e46e151657b2aaae14cbe456320a11446a90ff8
2020-10-29 10:52:22 +00:00
Joseph Murphy 67e1341100 Merge "Changes Robolectric test suite tag to its own value to enable filtering these in ATP." 2020-10-29 10:35:17 +00:00
Janis Danisevskis 95799b056e Add keystore2 to PLATFORM_PACKAGES
Add keystore 2 to the PLATFORM_PACKAGES in anticipation for the Keystore
2.0 migration. This builds and installs keystore2 on the device, but it
does not get started yet. Staring keystore2 is currently controlled with
the platform property ro.android.security.keystore2.enable=true.

Bug: 171305684
Test: keystore2 builds and is present on the device but does not start
      unconditionally.
Change-Id: Id92cb2aa38022516067853d89d6c3210db1100a8
2020-10-28 19:40:51 -07:00
Yan Wang 1332b59857 Merge "Add a rule to get numbers greater or equal to a minimum number." 2020-10-29 01:32:29 +00:00
Yifan Hong 78b55b2244 Mount generic ramdisk as readwrite.
With this change, first stage init can prepare and move
resources to accomodate devices with and without a dedicated
recovery partition.

Test: build with and without recovery partition, and manually inspect
Bug: 171512004

Change-Id: I7bd61f74c16ee77f3f05dc208e0f3cfe81e302b0
2020-10-28 17:05:18 -07:00
Yifan Hong 78860164d0 Do not put GENERIC_KERNEL_CMDLINE in recovery image.
The GENERIC_KERNEL_CMDLINE should only be in the generic boot image.
If device uses recovery-as-boot, it never uses generic boot image
because on devices with generic boot image, recovery resources are
moved to vendor_boot instead.

Bug: 171512004
Test: builds

Change-Id: Ia84e604a8ded28af39c7f1861ff5d3b3af55849f
2020-10-28 17:05:18 -07:00
Yifan Hong c56931c173 Move common code out of the conditional.
Test: builds
Change-Id: I75e13b929dbdb31785a59898579ed14bcc3eef60
2020-10-28 17:05:18 -07:00
Yifan Hong 3941a876de Remove device-specific bits if recovery_as_boot
On legacy devices (launched with R and below), if device:
- has a vendor_boot partition, and
- uses recovery_as_boot

Then, when building the recovery/boot partition, the
device-specific bits, including dtb/kernel base/pagesize should
be moved to vendor_boot.

Previously, it is incorrectly assumed that A/B => recovery_as_boot.
In reality, we do have A/B devices with a dedicated recovery partition.

Note that for devices that uses GKI (BOARD_USES_GENERIC_KERNEL_IMAGE),
recovery_as_boot is never set to true. Instead, recovery resources
are moved to vendor_boot. On these devices, the conditional
'vendor_boot && recovery-as-boot' is always false. Hence:

- If the device has a dedicated recovery partition, it should use V3 header,
  and dtb/base/pagesize won't be in recovery header.
- If device does not have a dedicated recovery partition, the recovery
  image won't be built.

Test: builds
Change-Id: I0db2af20470cbe8a21044a984cccf264590aaccf
2020-10-28 17:05:18 -07:00
Yifan Hong 46aff099d2 Do not assume GKI just with vendor_boot.
This change ensures changes to GENERIC_KERNEL_CMDLINE only affects
devices that explicitly says it uses GKI/generic boot image.

In details, if the device has vendor_boot, but does not explicitly
specify that it uses GKI/generic boot image, do not include
GENERIC_KERNEL_CMDLINE in boot. boot cmdline is left empty
in this case.

The old logic:
- If device uses GKI *OR* has vendor_boot:
  boot uses GENERIC_KERNEL_CMDLINE, and do not include kernel base
  and pagesize.
  - If device has vendor_boot, INTERNAL_KERNEL_CMDLINE, kernel base
    and pagesize goes in vendor_boot.
- If device does not use GKI nor have vendor_boot:
  boot uses INTERNAL_KERNEL_CMDLINE, and includes kernel base and
  pagesize.

The new logic:
- If using GKI, boot uses GENERIC_KERNEL_CMDLINE. Remove kernel base
   and pagesize because they are device-specific.
- If not using GKI:
  - If building vendor_boot, INTERNAL_KERNEL_CMDLINE, base and
    pagesize goes in vendor_boot; boot does not have cmdline, base or
    pagesize.
  - Otherwise, put them in boot

Comparison of the code before and after:
- If device uses GKI,
  - For boot partition:
    - cmdline continues to be GENERIC_KERNEL_CMDLINE
    - kernel base and pagesize continues to be excluded
  - For vendor_boot partition:
    - cmdline continues to be INTERNAL_KERNEL_CMDLINE
    - kernel base and pagesize continues to be included
- If device does not use GKI:
  - If device has a vendor_boot partition:
    - For boot partition:
      * cmdline changes from GENERIC_KERNEL_CMDLINE to empty
      - kernel base and pagesize continues to be excluded
    - For vendor_boot partition:
      - cmdline continues to be INTERNAL_KERNEL_CMDLINE
      - kernel base and pagesize continues to be included
  - If device does not have a vendor_boot partition:
    - For boot partition:
      - cmdline continues to be INTERNAL_KERNEL_CMDLINE
      - kernel base and pagesize continues to be included

Test: builds
Bug: 171512004

Change-Id: I4feac435698f43ac299b430bff66147057865a62
2020-10-28 17:05:18 -07:00
Baligh Uddin 42281631fb Merge "Move {libbacktrace,libunwindstack} from system/core -> system/unwinding/" am: 865b6605ca am: c392ed4271 am: 16c1480a81 am: b697907825
Original change: https://android-review.googlesource.com/c/platform/build/+/1477496

Change-Id: Ie2925b335183019eefe7c1a8594defe867e1da29
2020-10-28 07:00:16 +00:00
Baligh Uddin b697907825 Merge "Move {libbacktrace,libunwindstack} from system/core -> system/unwinding/" am: 865b6605ca am: c392ed4271 am: 16c1480a81
Original change: https://android-review.googlesource.com/c/platform/build/+/1477496

Change-Id: I31939c17e606f0c6dba6f95e562659103a8ce83f
2020-10-28 06:27:33 +00:00
Baligh Uddin bf60ed03c1 Cleanup references to system/core/liblog -> system/logging/liblog am: 5388389553 am: a47ee7ca5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/12933471

Change-Id: I3d9402f6563665180ef5b66bc70443a0aef25732
2020-10-28 06:06:26 +00:00
Baligh Uddin 16c1480a81 Merge "Move {libbacktrace,libunwindstack} from system/core -> system/unwinding/" am: 865b6605ca am: c392ed4271
Original change: https://android-review.googlesource.com/c/platform/build/+/1477496

Change-Id: I7e29f665a2a887b8b7223524a090748419f6ad0d
2020-10-28 06:06:01 +00:00
Baligh Uddin a47ee7ca5c Cleanup references to system/core/liblog -> system/logging/liblog am: 5388389553
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/+/12933471

Change-Id: I94ec58bb28c157f0d56aac84ed8660eb2af8f6d4
2020-10-28 05:51:46 +00:00