Commit graph

75727 commits

Author SHA1 Message Date
Iavor-Valentin Iftime
63cde0fd92 Allow vendor_otatools arg to be file or folder
Required by signer script when using "--vendor_otatools" argument.

Bug: 220126689
Bug: 186097910

Test: sign_target_files_apks \
        --vendor_otatools=otatools_vendor_dir \
	--vendor_partitions=vendor,odm \
	merged-target_files.zip \
	signed-target_files.zip

Change-Id: Iaa596f95f9db1e1e423b8306e9590fe27acb76e7
2022-03-04 16:02:46 +00:00
Treehugger Robot
267d9eeb59 Merge "Move comment to license_note" am: 4e09d57fa7
Original change: https://android-review.googlesource.com/c/platform/build/+/2008052

Change-Id: Ifb7743b4119875c00783c5b517d871c16e7cf2a1
2022-03-04 14:58:51 +00:00
Treehugger Robot
4e09d57fa7 Merge "Move comment to license_note" 2022-03-04 14:39:32 +00:00
Treehugger Robot
578d7b2492 Merge "Phony target to report all library names." am: f2a0110d36
Original change: https://android-review.googlesource.com/c/platform/build/+/2002324

Change-Id: I236cdbe7b5723e0b2c54075bca83fb471346d2cc
2022-03-04 02:50:26 +00:00
Treehugger Robot
f2a0110d36 Merge "Phony target to report all library names." 2022-03-04 02:23:38 +00:00
Treehugger Robot
39ec08569c Merge "Allow missing key for misc_info lookups." am: 54188ba009
Original change: https://android-review.googlesource.com/c/platform/build/+/2007930

Change-Id: I9d91627787936369a4931451c7f3dc21711a6c16
2022-03-04 00:15:05 +00:00
Treehugger Robot
54188ba009 Merge "Allow missing key for misc_info lookups." 2022-03-03 23:46:15 +00:00
Bob Badour
e6d0369d01 Move comment to license_note
Comments not preserved during refresh.

Test: m nothing
Change-Id: Id088dbe25ab9a3508e87b77f0ff877255423a1dd
2022-03-03 14:57:46 -08:00
Daniel Norman
c44f964a5a Allow missing key for misc_info lookups.
This broke the TV-VF build in ab/8246202.

Change-Id: Ifbf76a3c43c46fcd4280180e45ad23fcbed9346d
2022-03-03 19:42:32 +00:00
Treehugger Robot
075daf7363 Merge "Add SPL downgrade option help text" am: 0b6921be2b
Original change: https://android-review.googlesource.com/c/platform/build/+/2005090

Change-Id: I5642277743a9b63b0240415d50927f35e6c3a20d
2022-03-03 18:24:35 +00:00
Treehugger Robot
0b6921be2b Merge "Add SPL downgrade option help text" 2022-03-03 17:56:41 +00:00
Bob Badour
77570059cd Phony target to report all library names.
Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m nothing reportallnoticelibrarynames

Change-Id: I0f791e2d92b8135d6af3a6c93f0db348fc69f5a1
2022-03-02 22:32:37 -08:00
Treehugger Robot
168ea6a2b9 Merge "Clean up merge_target_files" am: 5b48aeccb2
Original change: https://android-review.googlesource.com/c/platform/build/+/2002319

Change-Id: Iddd34c28b1272dd81bea8f155876f8f7b9e0a876
2022-03-03 00:19:21 +00:00
Treehugger Robot
5b48aeccb2 Merge "Clean up merge_target_files" 2022-03-02 23:51:31 +00:00
Cole Faust
3f8f28026e Merge "Add Starlark implementation of add-product-dex-preopt-module-config" am: 339d56308d
Original change: https://android-review.googlesource.com/c/platform/build/+/2002313

Change-Id: I951c84fd3ac06ad25ff8a3c7349ee61b767a400c
2022-03-02 19:07:51 +00:00
Cole Faust
339d56308d Merge "Add Starlark implementation of add-product-dex-preopt-module-config" 2022-03-02 18:40:36 +00:00
Paul Hu
8b81343e39 Merge "Rename framework-connectivity-tiramisu to framework-connectivity-t" am: 70dc07dbd3
Original change: https://android-review.googlesource.com/c/platform/build/+/1976806

Change-Id: I1be61a70760e41474cd227a202a9ed19d29b384f
2022-03-02 07:27:23 +00:00
Paul Hu
70dc07dbd3 Merge "Rename framework-connectivity-tiramisu to framework-connectivity-t" 2022-03-02 07:11:25 +00:00
Treehugger Robot
857fa04e03 Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches."" am: ff17a1bd66
Original change: https://android-review.googlesource.com/c/platform/build/+/2004384

Change-Id: I37e5fcc920a6fa9e4b64d4a63aaa881bfca82ce6
2022-03-02 05:33:43 +00:00
Treehugger Robot
ff17a1bd66 Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches."" 2022-03-02 05:08:27 +00:00
Treehugger Robot
7f0a03e6cc Merge "Fix releasetools OWNERS for merge." am: 92c59c42d3
Original change: https://android-review.googlesource.com/c/platform/build/+/2004390

Change-Id: I9d0d5bb54f7871cef5979210adb09e85b7fa6b5c
2022-03-02 01:39:43 +00:00
Treehugger Robot
92c59c42d3 Merge "Fix releasetools OWNERS for merge." 2022-03-02 01:32:34 +00:00
Akilesh Kailash
5b33dc20ae Merge "Enable Async merge during OTA" am: 6eb483745b
Original change: https://android-review.googlesource.com/c/platform/build/+/2001772

Change-Id: I18acbfd77ad2b5a615679eff74651fa54a9bfcef
2022-03-02 01:29:15 +00:00
Mitch Phillips
d51048acdd Revert "[cc_fuzz] Revert 'disable LTO' patches."
Revert "[cc_fuzz] Revert 'disable LTO' patches."

Revert submission 1976512-revert-nolto-fuzzing

Reason for revert: b/222160662
Reverted Changes:
Iacee4fa29:[cc_fuzz] Revert 'disable LTO' patches.
Ic509b00a1:[cc_fuzz] Revert 'disable LTO' patches.
If85931f09:[cc_fuzz] Revert 'disable LTO' patches.

Change-Id: I5f34731f0b7b27293636217f43d1cf5f17ab487b
2022-03-02 01:25:22 +00:00
Akilesh Kailash
6eb483745b Merge "Enable Async merge during OTA" 2022-03-02 01:05:24 +00:00
Colin Cross
552c2d1c81 Merge "Add PLATFORM_DISPLAY_VERSION" am: 1fa84f1135
Original change: https://android-review.googlesource.com/c/platform/build/+/2002322

Change-Id: I06dd0a5eef6a5dd16b1fd4b2d845d0de2ef088c9
2022-03-02 00:13:01 +00:00
Treehugger Robot
7bf9d4e1fa Merge "[cc_fuzz] Revert 'disable LTO' patches." am: df80322fcd
Original change: https://android-review.googlesource.com/c/platform/build/+/1976676

Change-Id: I94fbac5906c7864a750792333060068650e51404
2022-03-02 00:11:53 +00:00
Colin Cross
1fa84f1135 Merge "Add PLATFORM_DISPLAY_VERSION" 2022-03-02 00:01:05 +00:00
Kelvin Zhang
e174c323e1 Add SPL downgrade option help text
Test: th
Change-Id: I71f916642f6327acad1d0c163a204718002f876d
2022-03-01 15:59:08 -08:00
Treehugger Robot
df80322fcd Merge "[cc_fuzz] Revert 'disable LTO' patches." 2022-03-01 23:43:04 +00:00
Daniel Norman
5177fcb28d Fix releasetools OWNERS for merge.
My extra _ meant that OWNERS was removed for merge_target_files.

Change-Id: I15f89b9edf31d126df19b66998520e8545cdfbd0
2022-03-01 17:58:34 +00:00
Liz Kammer
0ac682fc9a Merge "Introduce BUILD_BROKEN_INPUT_DIR_MODULES" am: 16e2fc2da1
Original change: https://android-review.googlesource.com/c/platform/build/+/1966254

Change-Id: I789ab17d3f3b73e66502c90d9eb5cc32313514bd
2022-03-01 15:47:55 +00:00
Liz Kammer
16e2fc2da1 Merge "Introduce BUILD_BROKEN_INPUT_DIR_MODULES" 2022-03-01 15:19:34 +00:00
Yi-yo Chiang
e93bc67cf8 Merge changes from topic "gki-avb-vts" am: 9d164b6300
Original change: https://android-review.googlesource.com/c/platform/build/+/1999071

Change-Id: I2792c3946e3b0173b3592612009eafd62e1090cc
2022-03-01 05:12:46 +00:00
Yi-yo Chiang
9d164b6300 Merge changes from topic "gki-avb-vts"
* changes:
  releasetools: Update T GKI certification scheme
  Update T GKI certification scheme
2022-03-01 04:47:47 +00:00
Treehugger Robot
0e0e961191 Merge "Add to OWNERS for merge tooling." am: 171c1e168e
Original change: https://android-review.googlesource.com/c/platform/build/+/2003097

Change-Id: Iacbe48c697a42b2431932e66c8fd9f0acc8940ab
2022-03-01 02:36:25 +00:00
Treehugger Robot
171c1e168e Merge "Add to OWNERS for merge tooling." 2022-03-01 02:32:17 +00:00
Treehugger Robot
7a8db6594e Merge "Remove product debug files" am: fb3cdf5fc8
Original change: https://android-review.googlesource.com/c/platform/build/+/2002318

Change-Id: I38bdd064b2394e92fb70016820672f0ec23495f4
2022-03-01 02:25:50 +00:00
Colin Cross
a492544a03 Add PLATFORM_DISPLAY_VERSION
Add PLATFORM_DISPLAY_VERSION to version_defaults.mk that will propagate
to the ro.build.version.release_or_preview_display property and
be shown as the Android version for preview releases by Settings.

Bug: 221950960
Test: manual
Change-Id: I697cc59f77f92aa98a8a2573662797e6d3bd2042
2022-02-28 18:01:35 -08:00
Treehugger Robot
fb3cdf5fc8 Merge "Remove product debug files" 2022-03-01 01:57:55 +00:00
paulhu
83f6ef5379 Rename framework-connectivity-tiramisu to framework-connectivity-t
Bug: 215434166
Test: build, flash, device boot to home.
Merged-In: I046503a60f39aa1ec6026c139203b1a1d5a7dab5
Change-Id: I046503a60f39aa1ec6026c139203b1a1d5a7dab5
2022-03-01 01:26:31 +00:00
Daniel Norman
0374741b7b Clean up merge_target_files
Summary of changes:
- Rename extract_items args to be more generic.
- For many other functions, replace large argument lists with
  the OPTIONS shared object.
- Rename process_* functions to merge_* to be more clear about
  the purpose of the function.
- Remove verbose code in merge_ab_partitions_txt().
- Extract certain logic from merge_misc_info_txt() and place it
  into other existing functions: dynamic partition and selinux
  keys are now processed in their own functions.
- Remove verbose code in merge_package_keys_txt().
- Remove verbose code in create_file_contexts_copies().
- Handle extracting from META directly in merge_meta_files(),
  rather than doing this extraction in create_merged_package()
- Storing the set of framework and vendor partitions in OPTIONS
  so it can be reused by multiple functions without needing to
  be parsed again.

Bug: 221858722
Test: atest test_merge_target_files
Test: Use merge_target_files to merge some builds
Change-Id: I8aa429c8fbb05223127b116aab84b2678ac264a8
2022-02-28 16:48:27 -08:00
Cole Faust
e23ae981cc Remove product debug files
These files are difficult to support in the Starlark product
configuration. They also aren't really a good representation
of products even with Makefiles, because they only display
information from products that have been imported with
import-nodes, but generate empty files for the other products
that are included from the imported ones.

For example, lunching aosp_arm64 then running
`m out/products/build/make/target/product/core_64_bit.mk.txt`
would generate a file full of empty variable assignments.

Bug: 221312856
Test: Presubmits
Change-Id: I18613a628968acc25b57b44e229de7df1b2476ef
2022-02-28 14:43:18 -08:00
Daniel Norman
4cf1e03c1c Add to OWNERS for merge tooling.
Includes more folks to increase "bus factor" for these files,
as well as including the merge test.

Change-Id: I8a5e8d1600fd4e03f75338193609f496a964f790
2022-02-28 22:30:49 +00:00
Cole Faust
b8442f02e8 Add Starlark implementation of add-product-dex-preopt-module-config
Bug: 221877397
Test: Manually
Change-Id: Ia8dd4fcfddb218aba7174590dbc754057f3899af
2022-02-28 11:13:43 -08:00
Treehugger Robot
a3960d0d1b Merge "Fix is-board-vendor-qcom: do not return a string consisting of whitespace." am: dce675548d
Original change: https://android-review.googlesource.com/c/platform/build/+/2001770

Change-Id: I011e3f8d8b04670868821c8f6bbd3dcab534069c
2022-02-28 08:58:56 +00:00
Treehugger Robot
dce675548d Merge "Fix is-board-vendor-qcom: do not return a string consisting of whitespace." 2022-02-28 08:34:23 +00:00
Akilesh Kailash
6c171a69b2 Enable Async merge during OTA
If the async merge has a temporary failure, gracefully fallback
to synchronous I/O without failing the OTA merge.

Bug: 220991038
Test: 1: OTA on CF pre-submit runs
2: OTA on O6, R4 and Bramble with the following flow on TP builds:

BUILD-1 (without-this-patch) -> BUILD-2 (with this patch) -> BUILD-3 (with this patch)

Verified the failure path of async merge on all three devices

Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I0b499d2cc81f44c74f85745f9165b81d0ce34eba
2022-02-28 06:29:50 +00:00
Sasha Smundak
18e6cbf289 Fix is-board-vendor-qcom: do not return a string consisting of whitespace.
Bug: 201477826
Test: treehugger
Change-Id: I3a830f07975d59802ed9fd4467a176a86672ba3e
2022-02-27 18:14:14 -08:00
Treehugger Robot
4d083132f9 Merge "Ignore cleanup errors." am: afe0e76c28
Original change: https://android-review.googlesource.com/c/platform/build/+/2000465

Change-Id: I455774c1e67b2d22eb21b5f9b2ce7076cbfb2bb2
2022-02-26 06:20:17 +00:00