Zhi Dou
1f82aea323
Merge "Support default-permission in aconfig_declarations" into main
2023-08-14 14:12:27 +00:00
Juan Yescas
c598343efb
Merge "soong: Add product variable DevicePageSizeAgnostic" into main am: 83a740e888
am: d02e4d9670
am: ee81963a69
am: 0f82705c6e
am: 8af318dbf9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2700794
Change-Id: I3e875298c9270426537c4bf39050e15b74cfd3bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-11 09:45:59 +00:00
Juan Yescas
83a740e888
Merge "soong: Add product variable DevicePageSizeAgnostic" into main
2023-08-11 05:45:44 +00:00
Treehugger Robot
7da2356b0a
Merge "Remove pdk product variable" into main am: 1824463396
am: f2d88a1ab9
am: 98746a4fde
am: 478abea17a
am: ad3ce4ccb0
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2703674
Change-Id: I8854e78a7d0803144638039e55b4f1c4994e3303
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-11 01:55:36 +00:00
Zhi Dou
3f65a416b8
Support default-permission in aconfig_declarations
...
Aconfig provides new argument, default-permission, for create-cache.
When buld aconfig_declarations, aconfig_declarations will read the value
from release configuration to pass this value to aconfig.
Bug: 294417368
Test: presubmit
Change-Id: Id55dab1d757e2366a62449c73e2497cc958c5e78
2023-08-10 21:54:59 +00:00
Cole Faust
8dc9e917aa
Remove pdk product variable
...
It has no effect.
Test: Presubmits
Change-Id: Ia15cd99ce083294a119203c416046e43d20bf87f
2023-08-10 10:20:03 -07:00
Juan Yescas
0106560e34
soong: Add product variable DevicePageSizeAgnostic
...
The product variable DevicePageSizeAgnostic will determine
whether AOSP is kernel page size agnostic or not.
Test: source build/envsetup.sh
lunch aosp_cf_arm64_phone_pgagnostic
m
cat out/soong/build.aosp_cf_arm64_phone_pgagnostic.ninja | grep __BIONIC_NO_PAGE_SIZE_MACRO
Bug: 289419664
Change-Id: I33a1a4f1967d7e78432b7b8d90357d16b2002dcc
2023-08-09 16:46:07 -07:00
Cole Faust
1e47a2d153
Merge "Make bp2build-generated selects() based on product config build settings" into main am: fc47771bdd
am: d3ced084d3
am: e2fe5f5dda
am: d5dc676445
am: 8016f2cc7c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2687675
Change-Id: I28656155606fa4844513bf534ebb7688f1cf9d1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-08-03 23:49:28 +00:00
Cole Faust
87c0c33a65
Make bp2build-generated selects() based on product config build settings
...
...instead of based on constraint settings.
Bug: 269577299
Test: m nothing and ./build/bazel/ci/bp2build.sh
Change-Id: Ib9caec79c92b8fd304e46be841de5612bd1637e3
2023-08-03 10:12:09 -07:00
Pratyush
8dd9dbbfeb
Merge "Disable Hidden API Checks for ENG Builds" into main am: d938f83be1
am: f42fbcf6a1
am: e4b8ef7b74
am: 128acca18d
am: ae1c06f8f6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2666977
Change-Id: Ib60d7842670c38de0bb3ca37607f7930cc7321df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-07-30 18:33:15 +00:00
Pratyush
d938f83be1
Merge "Disable Hidden API Checks for ENG Builds" into main
2023-07-30 13:57:36 +00:00
Pratyush
faec4db56f
Disable Hidden API Checks for ENG Builds
...
For more discussions/details, please check internal CL ag/24145146
Bug: 289409213
BUg: 285976182
Test: Look for hiddenapi calls in build trace
Change-Id: Ia2780ee419b8da1418ba1c7a7d732712b7c2a322
2023-07-30 13:57:10 +00:00
Devin Moore
bee8b95640
Merge "Add new Release_aidl_use_unfrozen soong variable" into main am: 1579a72d78
am: 211e090d28
am: 38a9b8a61c
am: 84be4996dd
am: 1e4f40a108
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2652369
Change-Id: I9cfab7f092548f1c85b7d8fdf4073bbad08f99c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-07-27 01:19:21 +00:00
Devin Moore
1579a72d78
Merge "Add new Release_aidl_use_unfrozen soong variable" into main
2023-07-26 21:42:52 +00:00
Devin Moore
c381e100c9
Add new Release_aidl_use_unfrozen soong variable
...
this comes from a trunk stable build flag `RELEASE_AIDL_USE_UNFROZEN`
and is used by the AIDL compiler when creating build rules for the
generated AIDL libraries.
Test: m
Bug: 290265210
Change-Id: I94445c870ac908474e62db0b3172b64d53680852
2023-07-21 23:59:11 +00:00
Treehugger Robot
4f3fff9c21
Merge "Add CFI product config variables to platform_mappings" into main am: 00d0d7af7d
am: 110f8b4a08
am: 57073321bf
am: 2d0c4a1efa
am: 9ccedba777
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2660958
Change-Id: Iff8146b25b6ddc03b53ddb1c2b32ac1943ee9a29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-07-20 22:19:19 +00:00
Cole Faust
88c8efb18c
Add CFI product config variables to platform_mappings
...
Bug: 269577299
Fixes: 283130542
Test: b test --config=android //build/bazel/rules/cc/...
Change-Id: I2fc4094167c48b1f3b22bee6b7ada309278f7250
2023-07-20 09:45:36 -07:00
Treehugger Robot
276e4a4f6f
Merge "Install VNDK libraries into vendor or product lib with flag" into main am: 7d34640ac8
am: 4fc627b005
am: b4df366727
am: 3e5d1939dd
am: 79e07295a2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2648170
Change-Id: I79931d46a257f9298a1d95373c0becbd91f71601
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-07-19 08:04:36 +00:00
Treehugger Robot
7d34640ac8
Merge "Install VNDK libraries into vendor or product lib with flag" into main
2023-07-19 04:44:51 +00:00
Cole Faust
a78a73393b
Merge "Platform mapping-based product config" into main am: 66ef2ff97f
am: b74818b55d
am: 4b7519d350
am: 470a5e359b
am: 6dee30bbc8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2629193
Change-Id: I032d710efb199cb03cfccfde8a87cb983d6b746e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-07-18 19:53:22 +00:00
Kiyoung Kim
e623c58cc6
Install VNDK libraries into vendor or product lib with flag
...
Install VNDK libraries into vendor or product lib when flag
'KEEP_VNDK' is set as false from build. This flag will be used to
test while deprecating VNDK step by step.
Bug: 290157355
Test: build succeded with DEPRECATE_VNDK succeded
Test: Cuttlefish boot succeded with sepolicy disabled
Change-Id: I05b166f054113ae2775df4e310916d0ea4af3fb6
2023-07-18 02:02:57 +00:00
Cole Faust
f8231dd0ea
Platform mapping-based product config
...
This allows us to set product variables as build settings instead
of loading them from a target's provider, which further allows us
to read product config variables in transitions.
Bug: 287539062
Bug: 269577299
Test: Presubmits
Change-Id: I8497703f706162572ceb3486240e1eb02a37f5f6
2023-07-17 16:27:08 -07:00
Treehugger Robot
ac9ba29a1c
Merge "Ensure we get cross refs for Bazel-built artifacts" am: bf815a135a
am: 8e9910fbcc
am: b99a3def27
am: 3658def394
am: e795ed3ffa
am: 9477031d76
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2643055
Change-Id: Icccb2e25df1776c814f2bfe152ff2eda0c0e32fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-30 07:10:33 +00:00
Treehugger Robot
bf815a135a
Merge "Ensure we get cross refs for Bazel-built artifacts"
2023-06-30 02:22:27 +00:00
Liz Kammer
36ba6b2347
Ensure we get cross refs for Bazel-built artifacts
...
Test: CI
Change-Id: I377dde648e023d1ac8e44b6e814475f7410cd2eb
2023-06-29 10:18:39 -04:00
Jooyung Han
080ea8595d
Merge "Remove "flattened" apexes" am: 3b7411adc7
am: 46b1bdca6e
am: 5916fe32b9
am: 8739572727
am: 2320afbc0a
am: bc88c13029
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2632469
Change-Id: Ibba73fc9c4469631256bd94262d5bd3aed733a26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-27 00:24:56 +00:00
Jooyung Han
3b7411adc7
Merge "Remove "flattened" apexes"
2023-06-23 04:09:48 +00:00
Joe Onorato
a3638040b7
Merge changes from topic "aconfig_renames" am: 9cb6a722eb
am: 4b1098a3b6
am: e5342fc6e2
am: 5324f005fe
am: adb94124fb
am: cfbd45dcab
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2634230
Change-Id: I6268beb8dbcd3d5071d71e964fc7eee8c7435a65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-22 18:12:32 +00:00
Joe Onorato
981c926269
Rename device_config --> aconfig and definitions --> declarations
...
Bug: 285303012
Test: for x in next trunk trunk_food trunk_staging ; do lunch aosp_panther-$x-eng ; m nothing ; done
Change-Id: I3375f46b3ecbbc516d1bee6ab3f80725fcccde8f
2023-06-21 15:16:23 -07:00
Treehugger Robot
71225cdb70
Merge "Remove PRODUCT_INSTALL_EXTRA_FLATTENED_APEXES" am: be24d2733c
am: f0b01a78cd
am: 197aa7ee68
am: 22a6b0e927
am: ee192978dd
am: 5cf1d1370f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2626018
Change-Id: I1bdc6e9ceb84573b676b91e3852ddbce489b4616
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-21 10:14:55 +00:00
Jooyung Han
eec1b3fe26
Remove "flattened" apexes
...
Now soong doesn't build "flattened" apexes.
Bug: 279835185
Test: m nothing (soong tests)
Test: m && launch_cvd (cuttlefish)
Change-Id: Id3c540ece1a15cecacc185da9aa17285edd2f493
2023-06-21 14:29:26 +09:00
Jooyung Han
eeeda8a94c
Remove PRODUCT_INSTALL_EXTRA_FLATTENED_APEXES
...
We will deprecate flattened apexes. In this change, GSI-specific make
variable (PRODUCT_INSTALL_EXTRA_FLATTENED_APEXES) is removed. The
variable was used to install both image/flattened apexes in the GSI, so
that it works on ro.apex.updatable devices and not-updatable devices.
Now, GSI will have only image APEXes in it.
Bug: 278826656
Test: lunch gsi_arm64-userdebug && m # no flattened apexes
Change-Id: Ie5fe505b9f2a6a1687252513788fd3e16bc147c5
2023-06-20 14:31:39 +09:00
Treehugger Robot
89425ebedc
Merge "Remove bazel dev mode" am: 2428d41268
am: 7d698334d3
am: 496649b1f3
am: 2920245e0f
am: ce0d29a8ff
am: 923475c9b3
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2626534
Change-Id: I661d27dcd246927181dae949700b22a21d75e310
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-15 22:40:29 +00:00
Chris Parsons
21f80277c3
Remove bazel dev mode
...
This mode is no longer in use, and is dead code.
Fixes: 282809863
Test: Presubmits
Change-Id: I45ab7d7c9dee153f1cbc66262c2cf9f1e9487a28
2023-06-15 14:14:19 +00:00
Treehugger Robot
02ab2a1db5
Merge "Read BUILD files in bp2build" am: 01f8784246
am: 73daae6519
am: 14923c16f8
am: 577e59bebb
am: f4125ef827
am: 2c690369ea
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2617569
Change-Id: I3c0ede4919a1cc387bbc6005f50cb28cb44a9c09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-10 03:08:30 +00:00
Chris Parsons
8152a94816
Read BUILD files in bp2build
...
The parsed BUILD files will be scanned for obvious definitions of BUILD
targets which have Android.bp counterparts. In such cases, bp2build will
automatically omit conversion of these defined modules (to prevent
collisions). With this change, we no longer need one-off denylisting of
modules which have BUILD file definitions.
This has a 0.03s to 0.2s slowdown for bp2build with current state. This
impact is identical on a heavier test branch, as well. I also ran an
experiment that applied BUILD scanning to all source BUILD files
(regardless of allowlisting), and this had a 2 second slowdown.
We may want to look into parallelizing or improving the performance of
this evaluation, but it's probably not worth the effort at this time,
since the current performance hit is small.
Test: New integration test
Test: Removed libprotobuf-python from denylist and tested building the
package
Test: Treehugger
Change-Id: Ibde3bab12cd4a8fed642ad46e5344a56953bec91
2023-06-09 16:02:40 +00:00
Jihoon Kang
a3479c0cf8
Introduce product variable Build_from_text_stub am: cbcad7c62f
am: 8e27c844a7
am: 10d9c21e1d
am: eb81e4cdac
am: 87afa05ed6
am: a5aba303de
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2612390
Change-Id: I8893db86480b09dc278e50fe42cb7baca5e5f1de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-06 21:47:42 +00:00
Jihoon Kang
8e27c844a7
Introduce product variable Build_from_text_stub am: cbcad7c62f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2612390
Change-Id: I1461724bf554f66f38bbd8d9569691795eef2e20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-06 19:43:19 +00:00
Jihoon Kang
4190764669
Merge changes from topic "android_stubs_current_refactor"
...
* changes:
Cleanup android.JavaApiLibraryName references
Redefine core and core platform API surface java_library
Introduce product variable Build_from_text_stub
Introduce "Exclude_static_libs" property for Java modules
2023-06-06 19:16:25 +00:00
Steven Moreland
38962ec52e
Merge "Remove SepolicySplit." am: 15a74066ea
am: f4a9db7005
am: 1c21851153
am: 3137d16a1d
am: 8f0f53d73b
am: 7ac464d5b6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2610250
Change-Id: I2e700f96cd5a9c48efbddd5129361cc256bd17d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-06 02:45:31 +00:00
Steven Moreland
15a74066ea
Merge "Remove SepolicySplit."
2023-06-05 23:08:24 +00:00
Jihoon Kang
cbcad7c62f
Introduce product variable Build_from_text_stub
...
Build_from_text_stub can be used to specify static lib and exclude
static lib based on build configuration.
Bug: 285410821
Test: m
Change-Id: I083f32325c7b3ab5e88c4f5cb248c00f2094fb1e
2023-06-05 21:44:07 +00:00
Jiakai Zhang
7db6fc5f41
Merge "Add an allowlist for modules that have broken optional_uses_libs." am: 4f8b23e8e2
am: 9ec2a5568e
am: e9aa9fdba0
am: ea123ebd24
am: 9e74da551e
am: ad0a027256
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2612151
Change-Id: Ib50bece0819d5598b96cc1b7481cf52d0863ecdf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-05 18:37:02 +00:00
Jiakai Zhang
48203e3dee
Add an allowlist for modules that have broken optional_uses_libs.
...
Bug: 282877248
Test: m nothing
Change-Id: I1afe9d523af0633f0428d4c15e1417db1dae4e93
2023-06-02 23:42:53 +01:00
Jiakai Zhang
fbd60faf3d
Merge "Drop INTERNAL_PLATFORM_MISSING_USES_LIBRARIES." am: f508c252bb
am: e36c0fa333
am: b712462847
am: b2e9deaf9a
am: 982dd46413
am: a745dd69f2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2611189
Change-Id: I0c17e4a2b9ec8a5148cd532f85583cf6dcafafb2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-06-02 19:19:48 +00:00
Jiakai Zhang
4f65a03d30
Drop INTERNAL_PLATFORM_MISSING_USES_LIBRARIES.
...
Bug: 282877248
Test: Presubmit build tests.
Change-Id: Idd69433f308f5f47973ff0d5340a2399a27cb32c
2023-06-01 15:21:42 +01:00
Steven Moreland
26da122d61
Remove SepolicySplit.
...
Obsolete.
Bug: 257176017
Test: build&boot
Change-Id: Id639ad77f12d38507ad1a2300cb392bbfeadb9e4
2023-05-31 22:00:56 +00:00
Kiyoung Kim
b96142759c
Merge "Rename build.ninja with product name" am: 5500fc89c1
am: babe56a6c8
am: 1fcb13ac2e
am: 0b814fe80e
am: 4704391ec7
am: d5ca114a34
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2546570
Change-Id: I4221a16074afd86ae987c84de5d612735ae05630
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-05-30 12:00:19 +00:00
Kiyoung Kim
5500fc89c1
Merge "Rename build.ninja with product name"
2023-05-30 07:17:08 +00:00
Kiyoung Kim
a37d9baa96
Rename build.ninja with product name
...
Current build.ninja does not contain any product name, while other ninja
files (such as combined ninja) do. This change adds product name to the
build.ninja so it can be separated over multiple lunch targets
Bug: 277029044
Test: build succeeded and checked if out/soong/build.ninja has been
renamed
Change-Id: I16dc71f829fd76f01b98da0d509a8e0ef6f62fa9
2023-05-25 10:09:45 +09:00