Commit Graph

96226 Commits

Author SHA1 Message Date
Treehugger Robot
34a9a0e851 Merge "Move fontchain_lint to build/core/tasks" into main 2024-01-24 01:13:43 +00:00
Daniel Zheng
44adde16b5 Allow cow_version to be overwriteable
Allow Cow version to be overwritten by device specific makefiles. This
change is needed so we can begin enableing virtual_ab_cow_version := 3
on cuttlefish

Test: m
Change-Id: Idd314dd24362a6e5d905db16ac260a24bbb7ae45
2024-01-23 13:37:46 -08:00
Dennis Shen
f2d4c8dc80 update flags.mk to create one storage file per rule
Bug: b/321243743
Test: tested in internal main build
Change-Id: I824c698587843fc72e8a16e8646262202663d99e
2024-01-23 20:50:54 +00:00
Treehugger Robot
75bd81de17 Merge "Use RELEASE_BOARD_API_LEVEL_FROZEN" into main am: 04acb6d255 am: 23265631b2
Original change: https://android-review.googlesource.com/c/platform/build/+/2919149

Change-Id: I55d7c980a27c80dab736d1a2e1d7e53d6fcefa80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-23 05:51:56 +00:00
Treehugger Robot
23265631b2 Merge "Use RELEASE_BOARD_API_LEVEL_FROZEN" into main am: 04acb6d255
Original change: https://android-review.googlesource.com/c/platform/build/+/2919149

Change-Id: I33f48fb9f73eb6b5159d3f6cec0e021848a4377a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-23 05:12:00 +00:00
Treehugger Robot
04acb6d255 Merge "Use RELEASE_BOARD_API_LEVEL_FROZEN" into main 2024-01-23 04:31:31 +00:00
Roshan Pius
13f177792a [automerger skipped] Merge "Copy com_android_nfc certs for sepolicy rule" into main am: 9454c64bca am: c917c46314 -s ours
am skip reason: Merged-In Ia0c1c7228323dec4d283f469701ae3606e2fadca with SHA-1 52dc338031 is already in history

Original change: https://android-review.googlesource.com/c/platform/build/+/2918510

Change-Id: Ib0790b2ab04698e73c9fd7b4fa18d1fed5fd4b30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-22 23:26:26 +00:00
Treehugger Robot
edca94fdf8 Merge "Add all apexes to apex_info" into main am: 28007ce2e1 am: 23fbbf9a3f
Original change: https://android-review.googlesource.com/c/platform/build/+/2918805

Change-Id: I5908e64101c48d023a2845fff70b402f5051880f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-22 23:25:54 +00:00
Roshan Pius
c917c46314 Merge "Copy com_android_nfc certs for sepolicy rule" into main am: 9454c64bca
Original change: https://android-review.googlesource.com/c/platform/build/+/2918510

Change-Id: If4cf3de7de5f34f7476e58c8ca8bdaa5e6649269
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-22 23:08:37 +00:00
Alex Buynytskyy
0a59b75a04 Merge "Move RELEASE_PLATFORM_VERSION_KNOWN_CODENAMES out to release configs." into main 2024-01-22 23:00:37 +00:00
Luca Farsi
c18da79d3f Determine if the build is in presubmit using build id
The current logic to determine if a build is pre or postsubmit is the
existence of the change_info file but this file also exists in
postsubmit, causing the build to break. Use the build ID as the
heuristic instead which should be more reliable.

Test: abtd run
Bug: 314171817
Change-Id: I9871eee71c0574583b528135dadd42e3f485a780
2024-01-22 14:56:13 -08:00
Roshan Pius
9454c64bca Merge "Copy com_android_nfc certs for sepolicy rule" into main 2024-01-22 22:45:49 +00:00
Treehugger Robot
23fbbf9a3f Merge "Add all apexes to apex_info" into main am: 28007ce2e1
Original change: https://android-review.googlesource.com/c/platform/build/+/2918805

Change-Id: Ic65f8af790333163357f982d0cac36e5b68ad85a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-22 22:45:38 +00:00
Treehugger Robot
28007ce2e1 Merge "Add all apexes to apex_info" into main 2024-01-22 22:08:14 +00:00
Devin Moore
38ca1bb2be Merge "Add all of the packages used to support older/upgrading devices" into main am: df791fdad0 am: 834b0337e8
Original change: https://android-review.googlesource.com/c/platform/build/+/2820098

Change-Id: Ia17204cf5b774774b8bb70f1ba38bfb4d7d84cb4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-22 22:03:14 +00:00
Dennis Shen
7297f0aff4 Merge "aconfig: create one file at each create-storage command invocation" into main am: 1ef905869f am: 56146b0ed1
Original change: https://android-review.googlesource.com/c/platform/build/+/2918566

Change-Id: Icc83ff3b2f4793854c023169c3528a35b88bc6b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-22 22:02:45 +00:00
Alex Buynytskyy
569b9e08fa Move RELEASE_PLATFORM_VERSION_KNOWN_CODENAMES out to release configs.
We have more known codenames then we are releasing, and need a way to
override this in release configs.

Bug: 307733231
Test: m nothing
Ignore-AOSP-First: Changes in internal projects first.
Change-Id: I2215dc449ca28cae253f514183507550b58f267b
Merged-In: I2215dc449ca28cae253f514183507550b58f267b
2024-01-22 21:26:28 +00:00
Devin Moore
834b0337e8 Merge "Add all of the packages used to support older/upgrading devices" into main am: df791fdad0
Original change: https://android-review.googlesource.com/c/platform/build/+/2820098

Change-Id: I5d6ccf526077c93d35f31fe7ff97d53f160e252f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-22 21:23:31 +00:00
Dennis Shen
56146b0ed1 Merge "aconfig: create one file at each create-storage command invocation" into main am: 1ef905869f
Original change: https://android-review.googlesource.com/c/platform/build/+/2918566

Change-Id: I77caeba57c683c80d40c35d739c55c26eff3b34f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-22 21:22:01 +00:00
Devin Moore
df791fdad0 Merge "Add all of the packages used to support older/upgrading devices" into main 2024-01-22 20:56:46 +00:00
Jooyung Han
750aad5c32 Add all apexes to apex_info
Previously, META/apex_info.pb contained only /system/apex apexes. Now,
it has all apexes from all possible partitions.

The main purpose of this file is to caculate the decompressed apex size
when applying OTA. Hence it should have all apexes, not just system
apexes.

Bug: 320228659
Test: m dist # check META/apex_info.pb
Change-Id: I3428dc502e4fe3336d1fc5ca941f1fbc332985cd
2024-01-23 05:52:51 +09:00
Dennis Shen
1ef905869f Merge "aconfig: create one file at each create-storage command invocation" into main 2024-01-22 20:49:36 +00:00
Kousik Kumar
1bfd60de09 Remove workaround to copy reclient binaries
With Kernel caching enabled for files in Cog, we no longer need this workaround. This also makes clean builds after make clean simpler (no need to rerun source again after m clean).

Bug: b/289391270
TESTED: Ran ~5 full builds without workaround and none of them stalled

NOTE FOR REVIEWERS - original patch and result patch are not identical.
PLEASE REVIEW CAREFULLY.
Diffs between the patches:
 # This function moves the reclient binaries into a directory that exists in a
> -# non-cog part of the overall filesystem.  This is to workaround the problem
> -# described in b/289391270.
> -function _copy_reclient_binaries_from_cog() {
> -  if [[ "${OUT_DIR}" == "" ]]; then
> -    OUT_DIR="out"
> -  fi
> -  local RECLIENT_VERSION=`readlink prebuilts/remoteexecution-client/live`
> -
> -  local NONCOG_RECLIENT_BIN_DIR_BASE="${OUT_DIR}/.reclient"
> -  local NONCOG_RECLIENT_BIN_DIR="${NONCOG_RECLIENT_BIN_DIR_BASE}/${RECLIENT_VERSION}"
> -
> -  # Create the non cog directory and setup live symlink.
> -  mkdir -p ${NONCOG_RECLIENT_BIN_DIR}
> -
> -  if [ `ls ${NONCOG_RECLIENT_BIN_DIR} | wc -l` -lt 8 ]; then
> -    # Not all binaries exist, copy them from the Cog directory.
> -    local TOP=$(gettop)
> -    cp ${TOP}/prebuilts/remoteexecution-client/live/* ${NONCOG_RECLIENT_BIN_DIR}
> -  fi
> -
> -  ln -sfn ${RECLIENT_VERSION} ${NONCOG_RECLIENT_BIN_DIR_BASE}/live
> -  export RBE_DIR="${NONCOG_RECLIENT_BIN_DIR_BASE}/live"
> -}
> -
> -  _copy_reclient_binaries_from_cog

Original patch:
 diff --git a/cogsetup.sh b/cogsetup.sh
old mode 100644
new mode 100644
--- a/cogsetup.sh
+++ b/cogsetup.sh
@@ -34,31 +34,6 @@
   mkdir -p ${DEFAULT_OUTPUT_DIR}
   ln -s ${DEFAULT_OUTPUT_DIR} `pwd`/out
 }
-
-# This function moves the reclient binaries into a directory that exists in a
-# non-cog part of the overall filesystem.  This is to workaround the problem
-# described in b/289391270.
-function _copy_reclient_binaries_from_cog() {
-  if [[ "${OUT_DIR}" == "" ]]; then
-    OUT_DIR="out"
-  fi
-  local RECLIENT_VERSION=`readlink prebuilts/remoteexecution-client/live`
-
-  local NONCOG_RECLIENT_BIN_DIR_BASE="${OUT_DIR}/.reclient"
-  local NONCOG_RECLIENT_BIN_DIR="${NONCOG_RECLIENT_BIN_DIR_BASE}/${RECLIENT_VERSION}"
-
-  # Create the non cog directory and setup live symlink.
-  mkdir -p ${NONCOG_RECLIENT_BIN_DIR}
-
-  if [ `ls ${NONCOG_RECLIENT_BIN_DIR} | wc -l` -lt 8 ]; then
-    # Not all binaries exist, copy them from the Cog directory.
-    local TOP=$(gettop)
-    cp ${TOP}/prebuilts/remoteexecution-clie
[[[Original patch trimmed due to size. Decoded string size: 1502. Decoded string SHA1: f5a824559440a15a8ccb76dbf414facf5d578da9.]]]

Result patch:
 diff --git a/cogsetup.sh b/cogsetup.sh
index 3005d58..6439af0 100644
--- a/cogsetup.sh
+++ b/cogsetup.sh
@@ -35,31 +35,6 @@
   ln -s ${DEFAULT_OUTPUT_DIR} `pwd`/out
 }
 
-# This function moves the reclient binaries into a directory that exists in a
-# non-cog part of the overall filesystem.  This is to workaround the problem
-# described in b/289391270.
-function _copy_reclient_binaries_from_cog() {
-  if [[ "${OUT_DIR}" == "" ]]; then
-    OUT_DIR="out"
-  fi
-  local RECLIENT_VERSION=`readlink prebuilts/remoteexecution-client/live`
-
-  local NONCOG_RECLIENT_BIN_DIR_BASE="${OUT_DIR}/.reclient"
-  local NONCOG_RECLIENT_BIN_DIR="${NONCOG_RECLIENT_BIN_DIR_BASE}/${RECLIENT_VERSION}"
-
-  # Create the non cog directory and setup live symlink.
-  mkdir -p ${NONCOG_RECLIENT_BIN_DIR}
-
-  if [ `ls ${NONCOG_RECLIENT_BIN_DIR} | wc -l` -lt 8 ]; then
-    # Not all binaries exist, copy them from the Cog directory.
-    local TOP=$(gettop)
-    cp ${TOP}/prebuilts/remoteexecution-client/live/* ${NONCOG_RECLIENT_BIN_DIR}
[[[Result patch trimmed due to size. Decoded string size: 1500. Decoded string SHA1: 75090baaf2a80305e8faea0e882e7edf257a2420.]]]

Change-Id: Id9963c3f1de7d3d4151a2e84fe52cf9d2f66ba10
2024-01-22 19:51:51 +00:00
Justin Yun
b33308c88c Use RELEASE_BOARD_API_LEVEL_FROZEN
RELEASE_BOARD_API_LEVEL_FROZEN must not be overriden by a board
config value. Use RELEASE_BOARD_API_LEVEL_FROZEN directly to build
configs.

Bug: 295269182
Test: TH
Change-Id: I60ad4cf1a9f377619fef98d6f9ef4d04d3395991
2024-01-22 10:54:06 +09:00
Treehugger Robot
ee12a6552d Merge "Install libvintf_jni" into main am: b14bf5f6e9 am: 88c1294fb8
Original change: https://android-review.googlesource.com/c/platform/build/+/2891591

Change-Id: Ibbc1af4683aac3e62492a50ad6c2a7fe6831638c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-21 23:16:17 +00:00
Treehugger Robot
88c1294fb8 Merge "Install libvintf_jni" into main am: b14bf5f6e9
Original change: https://android-review.googlesource.com/c/platform/build/+/2891591

Change-Id: Ibb335b4a8064826b78a14c87d7795dba8925e3c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-21 22:34:35 +00:00
Treehugger Robot
b14bf5f6e9 Merge "Install libvintf_jni" into main 2024-01-21 21:56:31 +00:00
Treehugger Robot
f640f246b9 Merge "Fix signing failures on targets with >4GB target_files" into main am: 3b7d46f4ca am: 892a16105c
Original change: https://android-review.googlesource.com/c/platform/build/+/2920107

Change-Id: Id0c82921c7cc04da118e16cf4b2b6f6fc40968b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 20:41:33 +00:00
Cole Faust
fb6782d850 Merge "Revert "symlink_outputs: Add .KATI_SYMLINK_OUTPUTS to build/make..."" into main am: a4e395b2af am: b8cf62ed08
Original change: https://android-review.googlesource.com/c/platform/build/+/2917989

Change-Id: I840e7bee489d79333e9a0c0b722b9b1f7414ce9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 20:40:43 +00:00
Kevin Dagostino
28819b1368 Merge "Add banner announcing adevice when running builds." into main am: 8ac6cd19c5 am: 65e0c618e0
Original change: https://android-review.googlesource.com/c/platform/build/+/2907196

Change-Id: I9d58389215cdb7a98628c33c5695d28b45d1eeed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 20:40:29 +00:00
Treehugger Robot
892a16105c Merge "Fix signing failures on targets with >4GB target_files" into main am: 3b7d46f4ca
Original change: https://android-review.googlesource.com/c/platform/build/+/2920107

Change-Id: Idf55d804e19b1346e03b713b63bf58f73efe900d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 20:19:40 +00:00
Treehugger Robot
3b7d46f4ca Merge "Fix signing failures on targets with >4GB target_files" into main 2024-01-19 20:06:07 +00:00
Cole Faust
b8cf62ed08 Merge "Revert "symlink_outputs: Add .KATI_SYMLINK_OUTPUTS to build/make..."" into main am: a4e395b2af
Original change: https://android-review.googlesource.com/c/platform/build/+/2917989

Change-Id: Ib31ade7fa13e2d6c6446d4f283f32c5ca67177a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 19:59:23 +00:00
Kevin Dagostino
65e0c618e0 Merge "Add banner announcing adevice when running builds." into main am: 8ac6cd19c5
Original change: https://android-review.googlesource.com/c/platform/build/+/2907196

Change-Id: I821ac87a4ca583e3c7133085e834d1469f975b82
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 19:58:41 +00:00
Cole Faust
a4e395b2af Merge "Revert "symlink_outputs: Add .KATI_SYMLINK_OUTPUTS to build/make..."" into main 2024-01-19 19:38:57 +00:00
Kevin Dagostino
8ac6cd19c5 Merge "Add banner announcing adevice when running builds." into main 2024-01-19 19:29:13 +00:00
Treehugger Robot
8f0023ba72 Merge "Add the rebuilt modules to the benchmark formatting" into main am: 1094ec1e81 am: 89c0a7feea
Original change: https://android-review.googlesource.com/c/platform/build/+/2920105

Change-Id: Ide009bfe47f13c43a4e56c53be7822fda5db9112
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 19:06:55 +00:00
Kelvin Zhang
12ac11025e Fix signing failures on targets with >4GB target_files
An old python zipfile hack prevented zipfile module from decoding 64 bit
sizes correctly, remove the legacy hack to fix.

Test: check_target_files_signatures -v 5GB_target_files.zip
Bug: 319367048
Change-Id: I376c7b68f549ddf88680280d604548d1849cdfe2
2024-01-19 11:04:58 -08:00
Dennis Shen
bac87875fa aconfig: create one file at each create-storage command invocation
Based on the build system feedback, it is better to create storage file
individually per each aconfig command invocation in a makefile. Thus
updating the create-storage command to create one file at a time based
on passed in file selection.

Bug: b/321243743
Test: atest aconfig.test and manually invoke create-storage command
Change-Id: I53625c08e44d3ece4476835827c6b7d28ddd5a1b
2024-01-19 19:02:07 +00:00
Roshan Pius
139c67be26 Copy com_android_nfc certs for sepolicy rule
Copied from:
  com_android_nfc.pk8 -> nfc.pk8
  com_android_nfc.x509.pem -> nfc.x509.pem

BUG: 320583956
Test: Bootup test with signed NFC APK (within NFC apex)
Merged-In: Ia0c1c7228323dec4d283f469701ae3606e2fadca

Change-Id: Ia0c1c7228323dec4d283f469701ae3606e2fadca
2024-01-19 10:23:14 -08:00
Treehugger Robot
89c0a7feea Merge "Add the rebuilt modules to the benchmark formatting" into main am: 1094ec1e81
Original change: https://android-review.googlesource.com/c/platform/build/+/2920105

Change-Id: I3f1de1a2abda0d155d7d9aaccdf67918ca98c833
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 18:23:04 +00:00
Paul Lawrence
b1d853e013 Merge "Add DeviceDiagnostics.apk" into main 2024-01-19 17:54:12 +00:00
Treehugger Robot
1094ec1e81 Merge "Add the rebuilt modules to the benchmark formatting" into main 2024-01-19 17:38:02 +00:00
Harshit Mahajan
6f9d67c2ce [automerger skipped] Merge "Revert^2 "[CrashRecovery] Add module to BCP and SSCP"" into main am: 46dfb868b2 am: 5272ed4ab1 -s ours
am skip reason: Merged-In I39dfab62897d907023720b594d6929397403d314 with SHA-1 d9199eb8ed is already in history. Merged-In was found from reverted change.

Reverted change: https://android-review.googlesource.com/c/platform/build/+/2829637

Original change: https://android-review.googlesource.com/c/platform/build/+/2870056

Change-Id: I64d85cd047c72433d12b113be2c49d93d31189d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 17:36:23 +00:00
Harshit Mahajan
5272ed4ab1 Merge "Revert^2 "[CrashRecovery] Add module to BCP and SSCP"" into main am: 46dfb868b2
Original change: https://android-review.googlesource.com/c/platform/build/+/2870056

Change-Id: Ie926337b9fff1f05bae0ee46712444d9de8363de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 16:56:11 +00:00
Joe Onorato
6b40826d2e Add the rebuilt modules to the benchmark formatting
Test: format_benchmarks
Change-Id: Ib3fffc99a1c66a2f700c27821886e8de2e2ec041
2024-01-19 16:41:27 +00:00
Harshit Mahajan
46dfb868b2 Merge "Revert^2 "[CrashRecovery] Add module to BCP and SSCP"" into main 2024-01-19 16:20:35 +00:00
Roshan Pius
ba90236cc3 Merge "Copy com_android_nfc certs for sepolicy rule" into main 2024-01-19 14:44:24 +00:00
Nelson Li
6a699c8d47 Move fontchain_lint to build/core/tasks
Because `system.img` is a dependency of `fontchain_lint`, and
`system.img` is currently not generated inside `Soong`, it is not
possible to directly convert `fontchain_lint` to `Android.bp`.
Move it to build/core/task first.

Bug: 319050958
Test: m fontchain_lint
Change-Id: I2c318f6f51107cd80f0c70531e23f73569b0ec83
2024-01-19 06:59:22 +00:00
Tongbo Liu
cdad600b89 Merge "Enable building executable module partail MTS" into main 2024-01-19 03:20:07 +00:00