Treehugger Robot
842d96dc40
Merge "Clean out old rustc compiler intermediates" into main
2023-10-04 00:01:08 +00:00
Treehugger Robot
f676520f42
Merge "Allow installing fake vendor packages" into main am: 7683671bcd
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2768203
Change-Id: I84f6eba29780fd637ec77c255cc3e8c702ee555a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-03 23:04:26 +00:00
Treehugger Robot
7683671bcd
Merge "Allow installing fake vendor packages" into main
2023-10-03 22:40:30 +00:00
Cole Faust
976a52c007
Allow installing fake vendor packages
...
This line in base_rules.mk requires a variable that's qualified by
target/host, the partition, and the module class. There didn't exist
one for target/vendor/fake, so fake vendor modules failed to compile.
Add a TARGET_OUT_FAKE so we can use fake vendor modules. This is aimed
at using install_symlink on the vendor partition.
https://cs.android.com/android/platform/superproject/main/+/main:build/make/core/base_rules.mk;l=279;drc=c67e769b8c44eeb9bb851f20003b63d35193e155
Bug: 205632228
Test: presubmits
Change-Id: If4618f90cebbafcd44e88e38513033282c37c1b7
2023-10-03 14:27:35 -07:00
Kelvin Zhang
de53f7df43
Use deterministic salt for boot image avb footer
...
avbtool by default generates a random salt everytime, this makes builds
less reproducible. Use sha256 checksum of kernel image as the hex to
make the build reproducible.
Test: th
Bug: 293313353
Change-Id: I959b3dee77654098ab9fde475f11eaee8d40c790
2023-10-03 12:26:08 -07:00
Zhi Dou
77cb4d4606
Merge "aconfig: change Map.of to Map.ofEntries in FakeFeatureFlagsImp" into main am: d61f2efdbb
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2768479
Change-Id: I82bc0386acaf7effd4a2890deb7148570d739d91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-03 18:33:05 +00:00
Jihoon Kang
078aa1a5ee
Merge "Revert^2 "Add soong config variable Release_expose_flagged_api"" into main am: a65cdd5024
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2768376
Change-Id: I606e80325d05f52132acf1d940f362649817e141
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-03 18:02:14 +00:00
Zhi Dou
d61f2efdbb
Merge "aconfig: change Map.of to Map.ofEntries in FakeFeatureFlagsImp" into main
2023-10-03 17:58:22 +00:00
Jihoon Kang
a65cdd5024
Merge "Revert^2 "Add soong config variable Release_expose_flagged_api"" into main
2023-10-03 17:55:17 +00:00
Colin Cross
42f5a6bb6a
Clean out old rustc compiler intermediates
...
The CL that splits rust complation and linking into separate actions
is being reverted to save disk space. Delete the intermediates that
are no longer needed in order to immediately free the disk space.
Bug: 293349612
Test: builds
Change-Id: I1e9f015bf9b6ffe8ba3ccd11ac3075e90640e9b3
2023-10-03 10:35:32 -07:00
Ahmad Khalil
576421d844
Modifying base_system to use the new SoundPicker flag
...
Bug: 293846645
Change-Id: I4b9e0b3cd80f43f9e766d430d749238d10a9eb82
Test: N/A
2023-10-03 15:37:16 +00:00
Dennis Song
de693db329
Merge "Minor refactor tools/releasetools/common.py" into main am: 50e5fbd688
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2769023
Change-Id: Ia0fdef30d550535aec9bd368535596198e2c6a9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-03 06:58:00 +00:00
Dennis Song
50e5fbd688
Merge "Minor refactor tools/releasetools/common.py" into main
2023-10-03 06:19:23 +00:00
Treehugger Robot
b93e3b021e
Merge "Convert gsi_skip_mount.cfg to soong" into main am: 551570a073
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2768739
Change-Id: I306f5cc077588f0036726a3c5da9ce5acaeffacd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-03 03:44:40 +00:00
Treehugger Robot
551570a073
Merge "Convert gsi_skip_mount.cfg to soong" into main
2023-10-03 03:06:44 +00:00
Dennis Song
6e5e44df72
Minor refactor tools/releasetools/common.py
...
- Sort the import modules in alphabetical order.
- Define module variables for avbtool arguments name.
Test: atest releasetools_test
Bug: 300604688
Change-Id: I7990b94cfc1d7b3e977ceb0a3dc2317689891229
2023-10-03 02:46:51 +00:00
Jihoon Kang
00328e40be
Revert^2 "Add soong config variable Release_expose_flagged_api"
...
This reverts commit 453d74ba48
.
Change-Id: Ic5cc83ebe396ccf05b51b8306b79a61dbb689807
2023-10-03 01:02:07 +00:00
Cole Faust
36e089a6cc
Convert gsi_skip_mount.cfg to soong
...
The LOCAL_POST_INSTALL_CMD is problematic for m installclean-less
builds.
Bug: 205632228
Test: presubmits
Change-Id: Id4eb2fd5fbd4f080aec89fa90583ac2ec97c5e1c
2023-10-02 17:28:59 -07:00
Zhi Dou
b095acbc57
aconfig: change Map.of to Map.ofEntries in FakeFeatureFlagsImp
...
Map.of can only take 10 entries. Map.ofEntries uses variable arguments.
Bug: 303045451
Test: atest AconfigJavaHostTest
Change-Id: I26a3fa0b8a731f9203934d4a800a5c695cfc730f
2023-10-02 23:57:10 +00:00
Kousik Kumar
ff198d2787
Merge "Copy reclient binaries into the out directory itself" into main am: 0d9b3a99ef
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2766225
Change-Id: I75e52169c7ebe0d67bd2054e03f4a964656d7e47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-01 03:22:41 +00:00
Kousik Kumar
0d9b3a99ef
Merge "Copy reclient binaries into the out directory itself" into main
2023-10-01 02:27:03 +00:00
Treehugger Robot
5a5685a6a9
Merge "Delete staging directory after creating module package zip" into main am: 517308b890
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2767637
Change-Id: I560705e092b2ee8d0e0a5b5ed6786b9aa307dff8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-30 02:02:18 +00:00
Treehugger Robot
517308b890
Merge "Delete staging directory after creating module package zip" into main
2023-09-30 00:41:06 +00:00
Colin Cross
585967c08a
Delete staging directory after creating module package zip
...
The staging directory isn't used after the module packaging zip is
built. Delete the staging directory to reduce disk usage without
affecting incremental build performance.
Bug: 302573555
Change-Id: I377c60714f78760d0b6c2588935c12e10a9ed224
Test: treehugger
2023-09-30 00:37:38 +00:00
Cole Faust
1c1740fab4
Merge "Revert^3 "Make the target_files zip reflect the recent partition change"" into main am: 985332eaca
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2768628
Change-Id: I739819707a9a5de49224ebd9bcf9b9d7bdc3a838
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-29 18:41:28 +00:00
Cole Faust
985332eaca
Merge "Revert^3 "Make the target_files zip reflect the recent partition change"" into main
2023-09-29 18:09:39 +00:00
Mark White
23e70c67ad
Merge "Added new framework-pdf jar inside MediaProvider module" into main am: d577d60221
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2760467
Change-Id: I6c7e02dbe20d457e5f63a2304665bca400879f31
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-29 13:26:48 +00:00
Mark White
d577d60221
Merge "Added new framework-pdf jar inside MediaProvider module" into main
2023-09-29 12:21:33 +00:00
Xin Li
c04229bbea
Merge "Merge UP1A.231005.007" into aosp-main-future
2023-09-29 06:40:54 +00:00
Cole Faust
83fe17e0a4
Revert^3 "Make the target_files zip reflect the recent partition change"
...
This reverts commit cb63de55b7
.
Reason for revert: Still more broken devices
Change-Id: Ic55ba78dd9c2e34dc96549ac8aba65fdbefd379b
2023-09-29 00:22:27 +00:00
Cole Faust
dce3a9d66c
Merge "Remove other partition's AVB properties" into main am: 06223362d7
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2768106
Change-Id: I027f479e7cb807eec39a09dd23c5f37107246c4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-28 23:48:44 +00:00
Cole Faust
06223362d7
Merge "Remove other partition's AVB properties" into main
2023-09-28 22:56:30 +00:00
Cole Faust
13d374ab41
Remove other partition's AVB properties
...
This is to ensure a partition doesn't need to be aware of the other
partitions in order to be built.
Also sort the image info file so it's easier to compare with bazel.
Bug: 297269187
Test: m && emulator on sdk_phone_x86_64-userdebug
Change-Id: I8e4b2049f602c8db109bf53e1359751a9ed9dd7a
2023-09-28 12:04:56 -07:00
Kousik Kumar
798080b0f3
Copy reclient binaries into the out directory itself
...
This is to avoid the problem of multiple source commands / builds run in parallel overwriting the binaries in the reclient dir.
TESTED=ran concurrent builds, ensured binaries weren't being overwritten.
Bug: b/302378775
NOTE FOR REVIEWERS - original patch and result patch are not identical.
PLEASE REVIEW CAREFULLY.
Diffs between the patches:
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}"
+ if [ -d "${NONCOG_RECLIENT_BIN_DIR}" ]; then
+ if [ `ls ${NONCOG_RECLIENT_BIN_DIR} | wc -l` -gt 1 ] ; then
+ # binaries already exist, only update the symlink to ensure correct
+ # reclient version is set.
+ ln -sf ${RECLIENT_VERSION} ${NONCOG_RECLIENT_BIN_DIR_BASE}/live
+ return
+ fi
+ # Create the non cog directory and copy binaries into it.
+ mkdir -p ${NONCOG_RECLIENT_BIN_DIR}
-
- # Copy the binaries out of live.
- cp $TOP/prebuilts/remoteexecution-client/live/* $NONCOG_RECLIENT_BIN_DIR
+ cp ${TOP}/prebuilts/remoteexecution-client/live/* ${NONCOG_RECLIENT_BIN_DIR}
+ ln -sf ${RECLIENT_VERSION} ${NONCOG_RECLIENT_BIN_DIR_BASE}/live
- export RBE_DIR=$NONCOG_RECLIENT_BIN_DIR
+ export RBE_DIR="${NONCOG_RECLIENT_BIN_DIR_BASE}/live"
Original patch:
diff a/cogsetup.sh b/cogsetup.sh
--- a/cogsetup.sh
+++ b/cogsetup.sh
@@ -39,22 +39,30 @@
# non-cog part of the overall filesystem. This is to workaround the problem
# described in b/289391270.
function _copy_reclient_binaries_from_cog() {
- local NONCOG_RECLIENT_BIN_DIR="${HOME}/.cog/reclient/bin"
- if [ ! -d "$NONCOG_RECLIENT_BIN_DIR" ]; then
- # Create the non cog directory if it doesn't exist.
- mkdir -p ${NONCOG_RECLIENT_BIN_DIR}
- else
- # Clear out the non cog directory if it does exist.
- rm -f ${NONCOG_RECLIENT_BIN_DIR}/*
+ if [[ "${OUT_DIR}" == "" ]]; then
+ OUT_DIR="out"
fi
+ local RECLIENT_VERSION=`readlink prebuilts/remoteexecution-client/live`
- local TOP=$(gettop)
+ local NONCOG_RECLIENT_BIN_DIR_BASE="${OUT_DIR}/.reclient"
+ local NONCOG_RECLIENT_BIN_DIR="${NONCOG_RECLIENT_BIN_DIR_BASE}/${RECLIENT_VERSION}"
+ if [ -d "${NONCOG_RECLIENT_BIN_DIR}" ]; then
+ if [ `ls ${NONCOG_RECLIENT_BIN_DIR} | wc -l` -gt 1 ] ; then
+ # binaries already exist, only update t
Change-Id: Ia6cb7faae6366ee7491fcf91777318b772a3ba88
2023-09-28 17:46:59 +00:00
Cole Faust
2b24df300d
Merge "Add extra variables to soong.variables" into main am: b78b334041
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2765709
Change-Id: I51944fa8d61be1f2ba4a3ab3732ad77d9103245f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-28 17:23:44 +00:00
Cole Faust
b78b334041
Merge "Add extra variables to soong.variables" into main
2023-09-28 16:38:28 +00:00
Maxim Siniavine
2af9c2423d
Merge "Revert "Add soong config variable Release_expose_flagged_api"" into main am: 377cf62987
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2766349
Change-Id: Ia1f46a2112240fc26a90a223e903f16bf6ce3ae6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-28 01:55:21 +00:00
Maxim Siniavine
377cf62987
Merge "Revert "Add soong config variable Release_expose_flagged_api"" into main
2023-09-28 01:08:44 +00:00
Maxim Siniavine
453d74ba48
Revert "Add soong config variable Release_expose_flagged_api"
...
Revert submission 2755310
Reason for revert: Broken build b/302407753
Reverted changes: /q/submissionid:2755310
Change-Id: If2b09e6609cdd4c47eea12cb2d877c3874e0560b
2023-09-28 01:02:02 +00:00
Xin Li
5cca3caa48
Merge UP1A.231005.007
...
Bug: 291102124
Merged-In: Ib9596152fe20b412bf7f5e90a19b55f3c0f5523f
Change-Id: I4a0d6dfe3a5b4642f5c4cdf257c84c1634888699
2023-09-27 16:08:15 -07:00
Cole Faust
c874c70f45
Add extra variables to soong.variables
...
Also always use BUILD_NUMBER_FROM_FILE in the BUILD_FINGERPRINT.
The build number file now always exists, even if HAS_BUILD_NUMBER is
false.
Bug: 297269187
Test: m bazel_sandwich
Change-Id: Idf745b600b167e5cec161e07139be09a037bdc13
2023-09-27 13:44:56 -07:00
Rajeev Kumar
77b936b764
Merge "Add devicelock to the list of individually toggleable module." into main am: d7965bd12c
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2763932
Change-Id: If8e176fbff2d58c3b94f9a09fb57b18446fc36d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-27 19:45:19 +00:00
Treehugger Robot
fc35a79c49
Merge "Prevent VABC from being disabled on release-key builds" into main am: ad7f4666a6
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2764967
Change-Id: Ia3364f47e6b16ada034af53dc102e8fa3b11c949
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-27 19:43:49 +00:00
Rajeev Kumar
d7965bd12c
Merge "Add devicelock to the list of individually toggleable module." into main
2023-09-27 19:06:11 +00:00
Treehugger Robot
ad7f4666a6
Merge "Prevent VABC from being disabled on release-key builds" into main
2023-09-27 18:33:10 +00:00
Jihoon Kang
3163daa603
Merge "Add soong config variable Release_expose_flagged_api" into main am: 19cd806de1
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2763272
Change-Id: I1054493df1c337790d479531cb8d103ac917577f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-27 17:52:34 +00:00
Treehugger Robot
2edf1903d8
Merge "Fix custom image OTA generation with extracted target files" into main am: aad75f8f1b
...
Original change: https://android-review.googlesource.com/c/platform/build/+/2762658
Change-Id: I4db20eca539ab5e79c787444a9bf8d42bc61ac81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-27 17:50:25 +00:00
Jihoon Kang
19cd806de1
Merge "Add soong config variable Release_expose_flagged_api" into main
2023-09-27 17:09:27 +00:00
Treehugger Robot
aad75f8f1b
Merge "Fix custom image OTA generation with extracted target files" into main
2023-09-27 16:56:17 +00:00
Kelvin Zhang
2f9a9ae64b
Prevent VABC from being disabled on release-key builds
...
VABC is mandated now, and plain VAB will be unsupported later.
Test: th
Change-Id: Iad19433c06b25246d4f7bffe5599035836e36076
2023-09-27 09:35:21 -07:00