Commit Graph

26184 Commits

Author SHA1 Message Date
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