Commit Graph

68668 Commits

Author SHA1 Message Date
Bill Peckham
16da01fe20 Introduce droidcore-unbundled target
The droidcore-unbundled target replaces the droidcore
target when TARGET_BUILD_UNBUNDLED_IMAGE=true. This
target is similar to droidcore in terms of dependencies,
but it has a smaller set of dist files. The intention is
to use TARGET_BUILD_UNBUNDLED_IMAGE=true with a
VSDK-using vendor build to supply Java dependencies from
prebuilts to avoid building (or needing) Java framework
sources.

Test: build with and without TARGET_BUILD_UNBUNDLED_IMAGE=true
Test: m nothing dist (before patch)
Test: m nothing dist (after patch)
Test: m nothing dist TARGET_BUILD_UNBUNDLED_IMAGE=true (after patch)
Test: examine ninja build graph for previous 3 tests
Bug: 188176942
Bug: 187064252
Merged-In: Ia7f8200c1bb1aaaa57c177d1698a114efe26bec7
Change-Id: Ia7f8200c1bb1aaaa57c177d1698a114efe26bec7
2021-06-16 09:10:07 -07:00
Inseob Kim
b8e274097d Add BUILD_USES_RECOVERY_AS_BOOT to soong config
Bug: 190974433
Test: build
Change-Id: I2a0daa6127e94366b7b6cfa5cec0080169a469e3
2021-06-16 21:08:49 +09:00
Inseob Kim
adcdb2fbda Directly create ramdisk dirs in ramdisk image rule
These directories have been created with post install cmds of
init_first_stage. To migrate init_first_stage to Soong, the directory
rules are now written directly in ramdisk image rule.

Bug: 187196593
Test: "m installclean; m" and see ramdisk output
Change-Id: Ic76c325ce102347f20b282572e3edbb5b4359aaf
2021-06-16 20:58:59 +09:00
Inseob Kim
1d4081b2a5 Add BOARD_BUILD_SYSTEM_ROOT_IMAGE to config vars
It'll be used from init_first_stage.

Bug: 187196593
Test: build
Change-Id: I4c5374debd56fbf9d11b456498835a9c411d01d6
2021-06-16 20:58:59 +09:00
Jingwen Chen
69f9ed14a9 Show bazel help for b called without args.
This is less surprising than trying to use --config=bp2build as the only args, which is invalid.

Test: source build/envsetup.sh; b
Change-Id: I0b3724d05b8cc149268e660eb672192fe9bad19d
2021-06-16 09:44:57 +00:00
Inseob Kim
94c27efb68 Add 31.0 to PLATFORM_SEPOLICY_COMPAT_VERSIONS
Bug: 189161483
Test: m selinux_policy
Change-Id: I48b681fb28c78ea9dca922f5fb58f19a940c1a51
2021-06-16 02:25:48 +00:00
android-build-team Robot
9253f10393 Make change and version bump to RQ3A.210805.001
Change-Id: I0c80d56c5ec688926dd3d6b386463fa07e872572
2021-06-16 01:13:37 +00:00
Paul Scovanner
5b94f1a3b5 Update Security String to 2021-08-05
Bug: 191053489
Change-Id: Ieba9625ca0ccedf285209954f1e766b20455c32f
(cherry picked from commit f5139e3087)
2021-06-16 01:10:59 +00:00
Anton Hansson
47bebaca8b Merge "Add help message for likely typo to lunch" am: 757e2e1fc1
Original change: https://android-review.googlesource.com/c/platform/build/+/1736893

Change-Id: I3ed2ca1d5f2039f955db4f6d5a1401b4e7b307b8
2021-06-15 10:08:03 +00:00
Anton Hansson
757e2e1fc1 Merge "Add help message for likely typo to lunch" 2021-06-15 09:49:31 +00:00
Hridya Valsaraju
2a2a97afba Disable build-time debugfs restrictions on GSI builds
These restrictions enable macros that disable sepolicy access to debugfs
for unauthorized clients on S-launching devices. However, since the
Android S GSI build must also be fully functional on earlier devices
that could have possibly depended on debugfs, disable the build-time
restrictions on GSI builds.

Bug: 184381659
Test: make
Change-Id: I583693df5c30d9bab28f76a6c1e4e9db8e5fd89f
2021-06-14 14:32:44 -07:00
Treehugger Robot
61a1d6d7a3 Merge "Add ro.vendor.build.dont_use_vabc to disable VABC OTA" am: c09cda8c6c
Original change: https://android-review.googlesource.com/c/platform/build/+/1734412

Change-Id: I97143fdf5e4239085aa0e3581c79a640a1166745
2021-06-14 18:58:47 +00:00
Treehugger Robot
c09cda8c6c Merge "Add ro.vendor.build.dont_use_vabc to disable VABC OTA" 2021-06-14 18:37:29 +00:00
Anton Hansson
32fa7ee8c3 Add help message for likely typo to lunch
Test: lunch aosp_blueline_userdebug
Change-Id: Ieb8059d1717a98f66d61387d6bfd28470835eb6e
2021-06-14 17:21:22 +01:00
Kelvin Zhang
10eac08fe1 Add ro.vendor.build.dont_use_vabc to disable VABC OTA
This prop is owned by OEM, OEM can set this if they want to disable
VABC.

Test: m dist, make sure generated OTA has VABC disabled
Bug: 185400304

Change-Id: Iceb2fb1f399d38a51722352a86ddf68af05fa24e
2021-06-14 10:23:14 -04:00
Treehugger Robot
b04140fce2 Merge "Handles capex in signing script" am: 6497a1b7f8
Original change: https://android-review.googlesource.com/c/platform/build/+/1735159

Change-Id: I972cbe143b988d8741f76c5d0a777d347e90e0ed
2021-06-12 11:49:46 +00:00
Treehugger Robot
6497a1b7f8 Merge "Handles capex in signing script" 2021-06-12 11:40:08 +00:00
Tianjie
4d48d50036 Handles capex in signing script
Today, the signing script simply ignores capex files, because it
looks for hardcoded '.apex' suffix. Add support to handle capex
as well.

Bug: 190574334
Test: Sign a target file locally
Change-Id: I3085ca7b0396a4fbf1b220f7de44d4eafb60c3d8
2021-06-11 17:14:22 -07:00
Chih-hung Hsieh
1c6223077e Merge "Add one more Java warning pattern" am: e8872c3408
Original change: https://android-review.googlesource.com/c/platform/build/+/1734332

Change-Id: Id4508916d94371e9d938f932a0b2e0707e4bcdc5
2021-06-11 00:09:42 +00:00
Chih-hung Hsieh
e8872c3408 Merge "Add one more Java warning pattern" 2021-06-10 23:53:09 +00:00
Chih-hung Hsieh
d64ca33012 Merge "Add one Asm warning pattern" am: 9c17b26ee7
Original change: https://android-review.googlesource.com/c/platform/build/+/1730812

Change-Id: I56cb4359decf96a4138f7d5764e08766d10ee883
2021-06-10 21:48:05 +00:00
Tianjie
d868c12467 Add apex info to the streaming property file
So updaters can streaming download the file, and query the apex info
inside the file.

Bug: 190244686
Test: generate an OTA package, check the streaming property
Change-Id: I17078d3f8d60ca53c6afe82f74b232e2fb242467
2021-06-10 14:44:26 -07:00
Chih-Hung Hsieh
56aa27bf12 Add one more Java warning pattern
Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html
Test: warn.py --gencsv build.log > warnings.csv
Change-Id: Ibc0ef7d1df29485ab4389f5c595fac77f69e19e7
2021-06-10 14:33:54 -07:00
Chih-hung Hsieh
9c17b26ee7 Merge "Add one Asm warning pattern" 2021-06-10 21:32:30 +00:00
Devin Moore
7651e75f37 Merge "Add vendor-bootconfig.img to target-files-package" am: 55987b5745
Original change: https://android-review.googlesource.com/c/platform/build/+/1732636

Change-Id: I6c211a83af5ef987e12ad8191541364d985a7b04
2021-06-10 21:25:11 +00:00
Devin Moore
55987b5745 Merge "Add vendor-bootconfig.img to target-files-package" 2021-06-10 21:08:17 +00:00
Victor Hsieh
b2d86af939 Add libbinder_rpc_unstable to system image
Bug: 190547489
Bug: 189947807
Test: m
Change-Id: Ib3b1d10e6f09de54966ab6c02f170b0feef17241
2021-06-10 09:54:11 -07:00
Treehugger Robot
18cadf6ae4 Merge "Move PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS to default_art_config.mk." am: 72e0ffd918
Original change: https://android-review.googlesource.com/c/platform/build/+/1731390

Change-Id: Id49d2f8649ccf2505ff738b5091ea2bd847da117
2021-06-10 16:17:47 +00:00
Treehugger Robot
72e0ffd918 Merge "Move PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS to default_art_config.mk." 2021-06-10 15:57:53 +00:00
satayev
d56062009a Move PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS to default_art_config.mk.
The list of updatable system server jars must be known in
module_common.mk which is used to build mainline modules that contain
said system server jars.

module_common.mk inherit from default_art_config.mk.

Note that we could also move the defition into a separate make file,
if current change causes problems. However, places like clockwork
overwrite values of PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS instead
of appending to them, so it should not be a source of issues.

Bug: 180105615
Bug: 190407034
Test: TARGET_BUILD_VARIANT=user vendor/google/build/build_mainline_modules.sh -j64 and inspecting build artifacts
Change-Id: I771895bf0a974a4c6aa4f7374159c22536f03891
Merged-In: I771895bf0a974a4c6aa4f7374159c22536f03891
Merged-In: Id867ec12ab546613f63a50d608192ab5134f65bb
(cherry picked from commit 66bb2ab32d)
2021-06-10 12:46:54 +00:00
Jingwen Chen
e0b4775fed Merge "Improve bazel() warning in envsetup.sh." am: c137b8520b
Original change: https://android-review.googlesource.com/c/platform/build/+/1732933

Change-Id: Ia3a357825ce92f0d16c6d2199488ed44192f1b41
2021-06-10 10:43:03 +00:00
Jingwen Chen
c137b8520b Merge "Improve bazel() warning in envsetup.sh." 2021-06-10 10:29:35 +00:00
Jingwen Chen
17d569940f Improve bazel() warning in envsetup.sh.
Fixes: 190688038

Test: source ~/aosp/build/envsetup.sh && cd / && bazel
Change-Id: I309a77e109d8b3a65c4b28aeb5fbf2a059006ee0
2021-06-10 08:17:54 +00:00
Inseob Kim
8de9f9bcf5 Merge "Remove redundant dependency to API_FINGERPRINT" am: 0e257fcb28
Original change: https://android-review.googlesource.com/c/platform/build/+/1730121

Change-Id: I3c25d77f9ff66a5dd12a88966d4a4ae5ac4697d1
2021-06-10 02:04:17 +00:00
Inseob Kim
0e257fcb28 Merge "Remove redundant dependency to API_FINGERPRINT" 2021-06-10 01:34:25 +00:00
Tianjie Xu
77c8c4b98c Merge "Amend the apex info for ota package" am: d3c78b8cde
Original change: https://android-review.googlesource.com/c/platform/build/+/1728771

Change-Id: Ibad9afd0a22aa4e3c8ac47ac63e561a57568f0af
2021-06-09 20:33:21 +00:00
Devin Moore
55af5065dc Add vendor-bootconfig.img to target-files-package
INTERNAL_VENDOR_BOOTCONFIG_TARGET is a required dependency of
target-files-package so it can be built from a clean build.

Test: rm -rf out/target/product && m target-files-package
Bug: 190329824
Change-Id: I9873aee3c9fb303d2ad245b5433d13eb76ab55f9
2021-06-09 13:19:13 -07:00
Tianjie Xu
d3c78b8cde Merge "Amend the apex info for ota package" 2021-06-09 20:16:08 +00:00
Treehugger Robot
78d09c6177 Merge "Missing required packages for f2fs when building ota package" am: 9d4b9bb50c
Original change: https://android-review.googlesource.com/c/platform/build/+/1730911

Change-Id: I7b0a056986d0a29beb0a7d265f35ee0f5c851f7e
2021-06-09 17:05:13 +00:00
Treehugger Robot
9d4b9bb50c Merge "Missing required packages for f2fs when building ota package" 2021-06-09 16:34:41 +00:00
Inseob Kim
2a70ea0dce Remove redundant dependency to API_FINGERPRINT
API_FINGERPRINT is only used from buildinfo.prop.

Bug: 188068953
Test: build
Change-Id: I4804d3e61d0bac83c59c54751209bf47404e3a31
2021-06-09 17:36:08 +09:00
Jaegeuk Kim
1f50a36c62 Missing required packages for f2fs when building ota package
Bug: 171942852
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ib2ecc0cf88d71f358bd04e6c4ac129607fe4054c
2021-06-08 19:12:15 -07:00
Chih-Hung Hsieh
e40e2bf8db Add one Asm warning pattern
Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html
Test: warn.py --gencsv build.log > warnings.csv
Change-Id: I85b53c15b5a9e705e939e2cf810a0344df6dbeda
2021-06-08 14:52:45 -07:00
Tianjie
a5fca03e0a Amend the apex info for ota package
We have already logged the compressed apexes in the target-files.
Because we want to support the apex metrics during OTA update, also
include the uncompressed apexes in the META/apex_info.pb.

For incremental OTA packages, include the source apex version for
each apex package as well.

Bug: 190244686
Test: unit test
Change-Id: I5cf2647c56c4feb5517f9a81aa1e9abc52515bf1
2021-06-07 20:33:46 -07:00
Kelvin Zhang
b0b998ad7f Merge "Handle caremap for partial OTAs" am: f2f564c9e4
Original change: https://android-review.googlesource.com/c/platform/build/+/1726771

Change-Id: I54b2aa8189c51c1092f017a017f9127b977dd6c3
2021-06-06 23:17:13 +00:00
Kelvin Zhang
f2f564c9e4 Merge "Handle caremap for partial OTAs" 2021-06-06 22:56:49 +00:00
Kelvin Zhang
766eea72ef Handle caremap for partial OTAs
When generating a partial OTA, filter care_map.pb to include only the
partial partitions, then generate OTA.

Test: Generate a partial OTA, make sure care map is included.

Change-Id: I0eaa12772eb1d06a57451e64f70689d3183f0115
2021-06-04 16:17:32 -04:00
Yifan Hong
ddf9092b29 Add servicedispatcher to PRODUCT_PACKAGES_DEBUG.
Test: pass
Bug: 182914638
Change-Id: I17ac0a5cd8c2d8afad4360947fcf8ca5eac040e2
2021-06-04 12:15:39 -07:00
Bowgo Tsai
9346c4e2ad android-info.txt: do not output 'board=' if no board_name
If no board name, output nothing to the android-info.txt.
Currently the output of 'board=' might trigger some parsing error
on some clients.

Bug: 189990989
Test: make out/target/product/generic_arm64/android-info.txt
Change-Id: Ia9aab6c092c07349aa57f0e73f8c69b6e05874c1
2021-06-03 17:54:31 +08:00
Chih-hung Hsieh
dee5f7979b Merge "Add new Asm/C++/Java/Make warning patterns" am: 041770b553
Original change: https://android-review.googlesource.com/c/platform/build/+/1724110

Change-Id: I01334bb1041ef7d395f3c0bd3c93ec9a3a6eded2
2021-06-02 21:56:52 +00:00