Commit graph

5424 commits

Author SHA1 Message Date
Jingwen Chen
83a4b68ff4 Revert "Allowlist more of system/timezone"
This reverts commit da03b08062.

Reason for revert: This was previously reverted in aosp/2510617 due to b/275666961, which spawned b/276416537 and b/276416485 that Cole and I are working on now. Given that the root causes are still being actively resolved, I believe this will cause the test (b/275666961) to fail again.

Change-Id: I69e756f823f920610a832a1fc88b415074c0f488
2023-04-03 23:22:54 +00:00
Liz Kammer
da03b08062 Allowlist more of system/timezone
This helps enable better testing of tzdata apex building.

Test: b build --config=android //system/timezone/...
Change-Id: Iec0d2393366fa612f24c57b6ae2d4f7bfe181668
2023-03-30 11:02:14 -04:00
Treehugger Robot
7c907b84e7 Merge "Add more modules in HugeModulesMap" 2023-03-30 12:00:38 +00:00
Jingwen Chen
29c4561a6b bp2build: denylist some modules to fix CI breakage.
Test: presubmits
Fixes: 276107812
Change-Id: I5e698b26f4d20de6c50008ab12fcfbef8a108ecb
2023-03-30 09:39:40 +00:00
Treehugger Robot
bc2906efef Merge "Modify Soong to utilize from-text android.jar in build" 2023-03-29 20:31:20 +00:00
Dan Albert
a910e10b76 Merge "Generate api_levels.json from the preview codenames." 2023-03-29 17:57:22 +00:00
Treehugger Robot
998fdd7e37 Merge "support PRODUCT_SOURCE_ROOT_DIRS product variable" 2023-03-29 17:04:37 +00:00
Jingwen Chen
559e3a803f Merge "Revert "Build test1_com.android.tzdata and test3_com.android.tzdata with bazel."" 2023-03-29 16:40:14 +00:00
Jingwen Chen
7a3fed2565 Revert "Build test1_com.android.tzdata and test3_com.android.tzdata with bazel."
This reverts commit d28c426f15.

Reason for revert: breaks timezone_data_e2e_tests b/275666961

Change-Id: Icb2ee7c0db8b9eb82d1eaf191c8bf62afcece22f
2023-03-29 16:21:34 +00:00
Jeongik Cha
2ece11ecd1 Add more modules in HugeModulesMap
Generate list based on build metric.
The next step is generate the list from module characteristics, not from
module name.

Bug: 273282046
Test: m
Change-Id: I0e9caa9987e8fc7f5a378bef940f3646e7bd169c
2023-03-29 23:29:45 +09:00
Jingwen Chen
263d400425 bp2build: fix breakage with more allowlists.
A new dep on //hardware/interfaces/audio/aidl/default was added, breaking mixed droid.

Bug: 275660561
Fixes: 275660561
Test: presubmits
Test: b build --config=android //hardware/interfaces/audio/aidl/... //external/tinyalsa_new/... //system/libvintf/... //system/tools/... //system/media/... //packages/modules/...  //external/tinyalsa/... //external/tinyalsa_new/...
Test: b build //hardware/interfaces/audio/aidl/... //external/tinyalsa_new/... //system/libvintf/... //system/tools/... //system/media/... //packages/modules/...  //external/tinyalsa/... //external/tinyalsa_new/...
Change-Id: Iead2fe6bfcf9cdb2a5b75210d9e84d33dc71691b
2023-03-29 12:17:43 +00:00
Jingwen Chen
3ebe338ec1 Merge "Build test1_com.android.tzdata and test3_com.android.tzdata with bazel." 2023-03-29 03:01:28 +00:00
Jihoon Kang
1bff0349d4 Modify Soong to utilize from-text android.jar in build
Context
- from-text android.jar files are built using Metalava, and these can be
  utilized in `decodeSdkDep` so that any modules that depends on APIs
  can be compiled using from-text android.jars
- This change removes dependency on source java files when compiling
  stub android.jar files

Implementation
- Modify java_api_library module to create system modules using the
  generated android.jar
- Replace modules in decodeSdkDep to link against java_api_library
  modules
- Add --build-from-text-stub flag to hide the feature behind a flag

Test: m --build-from-text-stub
Bug: 271154441
Change-Id: I104df595edc65c0006820d5ae5b15f1fb167e190
2023-03-28 21:53:45 +00:00
Spandan Das
5aade5f52d Merge "Update max_sdk_version from SdkSpec to ApiLevel" 2023-03-28 19:17:48 +00:00
Trevor Radcliffe
6182d31c63 Merge "Supporting changes for CFI toolchain features" 2023-03-28 14:23:55 +00:00
Jingwen Chen
d28c426f15 Build test1_com.android.tzdata and test3_com.android.tzdata with bazel.
..and allowlist //system/timezone/testing/... so that these apexes are mixed builds enabled.

Bug: 273910287
Fixes: 275351675

Test: b build //system/timezone/testing/...
Test: b build //system/timezone/testing/... --config=android
Test: m test1_com.android.tzdata test3_com.android.tzdata
Test: showcommands test1_com.android.tzdata | grep bazel-out
Test: showcommands test3_com.android.tzdata | grep bazel-out
Test: build/bazel/scripts/print_analysis_metrics.py --save-proto-output-file=out/proto-out.txt; rg enabled out/proto.txt
        $ rg enabled out/proto-out.txt
    639:    "mixed_build_enabled_modules": [ "adb_crypto_test", "adb_pairing_auth_test", "adb_pairing_connection_test", "adb_tls_connection_test", "adbd_test", "api_fingerprint", "com.android.adbd", "com.android.tzdata", "libbase", "libc++", "libcrypto", "libcutils", "test1_com.android.tzdata", "test3_com.android.tzdata", "test_com.android.adbd" ],
Change-Id: I2e74426d974d07ca39fccb5003dd4baed9763941
2023-03-28 10:40:37 +00:00
Jeongik Cha
56df091391 Merge changes from topic "b/273282046"
* changes:
  Add HINT_FROM_SOONG option for ninja weight list
  Add EXTERNAL_FILE option for ninja weight list
2023-03-28 03:51:20 +00:00
Dan Albert
8c7a994dfc Generate api_levels.json from the preview codenames.
When the branch is configured as something less than the max codename
(for example, right now AOSP is U but V is also in development), the
active codenames list will not include V.

Bug: None
Test: None
Change-Id: Ia22388a8ba94ff00d053acb33363c3cdce7677d0
2023-03-27 20:34:01 +00:00
Sam Delmerico
98a7329d59 support PRODUCT_SOURCE_ROOT_DIRS product variable
Soong analyzes the entire source tree even though not every lunch target
needs to know about every module. For example, OEM sources can be
ignored for cuttlefish products. This functionality allows blueprint to
ignore a list of undesired directories.

Bug: 269457150
Change-Id: I1eec5d7b6a268cae4c633d8d89ed485598ebca45
2023-03-27 14:42:36 -04:00
Trevor Radcliffe
391a25d7fa Supporting changes for CFI toolchain features
Mostly exporting variables to Bazel, but also allowlisting a BUILD
file.

Bug: 251217226
Test: Unit tests
Change-Id: Id87015a3cd5d970700c4058ec989bb0c14c36bcb
2023-03-27 18:07:40 +00:00
Treehugger Robot
8fdb210be2 Merge "Add apex_available aidl + aidl&lang libraries" 2023-03-25 00:00:32 +00:00
Liz Kammer
2b3f56ed22 Add apex_available aidl + aidl&lang libraries
Test: b build com.android.neuralnetworks com.android.media.swcodec
Change-Id: I008b915b22e4c8c2cf1f0aee6cfdaf17374cb3a9
2023-03-24 15:14:53 -04:00
Yu Liu
e1ab66de2e Change the way that neuralnetworks apex is enabled.
Otherwise the google variant won't build in internal master.

Bug: 274852147
Test: CI
Change-Id: I8ea3a5f5bd44663eedbc8f2af1049e06754c1b44
2023-03-24 10:53:02 -07:00
Yu Liu
1530719278 Merge "Add neuralnetworks to the mixed build staging list." 2023-03-24 17:49:26 +00:00
Yi Kong
a137aa2e6e Merge "Revert^2 "Update clang version to clang-r487747"" 2023-03-24 13:19:52 +00:00
Treehugger Robot
40bfdb181a Merge "Add t.helper() to AssertStringListContainsEquals" 2023-03-24 00:47:29 +00:00
Spandan Das
f5d3906505 Merge "Update target_sdk_version from SdkSpec to ApiLevel" 2023-03-24 00:09:50 +00:00
Colin Cross
01f1615abe Merge "Add sanitizer tests for musl" 2023-03-23 23:07:37 +00:00
Spandan Das
ad3555ea33 Merge "Export the name of stub java Soong modules" 2023-03-23 21:32:03 +00:00
Spandan Das
a26eda7f2c Update max_sdk_version from SdkSpec to ApiLevel
max_sdk_version signifies device version and does not need an sdkKind to
describe it fully. Update the type and cleanup existing usages. As a
side benefit, we also get better error handling since users can no
longer enter something like `public_30` as a valid max_sdk_version in bp
files

Bug: 208456999
Test: no change in ninja file (this should be a no-op)
Test: TH
Change-Id: I304b5ad802bde200137d8e225182828dfd6f7227
2023-03-23 19:38:56 +00:00
Spandan Das
ca70fc40bd Update target_sdk_version from SdkSpec to ApiLevel
target_sdk_version signifies device version and does not need an sdkKind to
describe it fully. Update the type and cleanup existing usages. As a
side benefit, we also get better error handling since users can no
longer enter something like `public_30` as a valid target_sdk_version in bp
files

Test: m nothing
Test: no change in ninja files (this should be a no-op)
Bug: 208456999

Change-Id: I3c19245e29184bd9e5660ad8981966f64dfa9424
2023-03-23 19:31:17 +00:00
Spandan Das
ddfab60014 Merge "Update min_sdk_version from SdkSpec to ApiLevel" 2023-03-23 16:33:36 +00:00
Yi Kong
fd07ed2c14 Revert^2 "Update clang version to clang-r487747"
9ede280375

Bug: 264965700
Change-Id: I4154c70c050a825525d5b591fa757104eb78c158
2023-03-23 14:14:31 +00:00
Treehugger Robot
62d3353434 Merge "Disable musl in mixed Bazel builds" 2023-03-23 06:35:30 +00:00
Jooyung Han
4973d45d06 Add t.helper() to AssertStringListContainsEquals
Bug: n/a
Test: m nothing
Change-Id: I49d87ac75edbc4856eb5a178c9085134a4185487
2023-03-23 14:22:46 +09:00
Spandan Das
8c9ae7ed67 Update min_sdk_version from SdkSpec to ApiLevel
This relands aosp/2457063. The original change broke T and U since those
branches still contain soong modules of type (kind+level). Those soong
modules have been cleaned up now

Test: Used go/abtd to test T and U branches with this change

Bug: 208456999
Change-Id: I0ef7933c055f88cb512a02108f1173e51156ef1c
2023-03-22 20:15:45 +00:00
Colin Cross
5dc62c9456 Add sanitizer tests for musl
Add tests that verify sanitizer behaviors for musl.

Test: sanitize_test.go
Change-Id: I1f0a51cc103ac14d1738cb223e216ee0e32d8550
2023-03-22 12:58:38 -07:00
Colin Cross
9e87f0a6ea Disable musl in mixed Bazel builds
Test: builds
Bug: 259266326
Change-Id: I4492f6b585d35fe848d5dc255043960c69742dcb
2023-03-22 12:58:37 -07:00
Spandan Das
7947b31a55 Merge changes I10e8bea5,I8e013ec1
* changes:
  Create EffectiveVersion* functions for ApiLevel
  Create two sentinel api levels
2023-03-22 19:57:52 +00:00
Yu Liu
7977650c49 Add neuralnetworks to the mixed build staging list.
Related tests modules will be added later.

Bug: None
Test: CI
Change-Id: I1ff66cdf327ae2bf214f87522a302a1957fed3c6
2023-03-22 17:03:36 +00:00
Jeongik Cha
e114e60615 Add HINT_FROM_SOONG option for ninja weight list
If this option is set, Soong generates ninja weight list including
modules in HugeModulesList in allowlists.go

Test: m --ninja_weight_source=soong
Bug: 273282046
Change-Id: Id92b7f9f9e8152c1c46ae071c5821a479cf47bce
2023-03-23 01:45:27 +09:00
Liz Kammer
f235505c9f Disable modules in mixed builds.
Test: m --bazel-mode-dev hwuimicro
Change-Id: If55763b35c931571e317993bd707de027d647e59
2023-03-22 11:14:57 -04:00
Liz Kammer
448bbfb083 Merge "Add missing deps for neuralnetworks/swcodec" 2023-03-22 14:45:27 +00:00
Liz Kammer
d42d738fda Merge "add parent static deps to cc_aidl_library targets" 2023-03-22 14:43:57 +00:00
Liz Kammer
9d8e0158de Merge "Disable riscv in all Bazel mixed builds" 2023-03-22 12:19:26 +00:00
Liz Kammer
e76510ba32 Add missing deps for neuralnetworks/swcodec
Test: b build --config=android //hardware/interfaces/...
Change-Id: I458684d511af0e4858956bbb00b42be7d79538e0
2023-03-21 16:49:13 -04:00
Sam Delmerico
512437b0b4 add parent static deps to cc_aidl_library targets
The static deps of the parent library can be necessary to build a
bp2build-generated cc_aidl_library target. We should add these deps as
implementation_deps so that they are accessible.

Bug: 250876486
Test: b build //frameworks/native/libs/gui/...
Change-Id: Ibe7c3598a684907473e2a4e040fb3976455a59e9
2023-03-21 16:49:06 -04:00
Spandan Das
dd7057c715 Create EffectiveVersion* functions for ApiLevel
This relands aosp/2457062. The original CL was submitted as part of a
stack that broke tm and udc. Those branches still contain soong modules
with min_sdk_version of type (kind+level).

Bug: 208456999
Test: m nothing on tm and udc (via go/abtd)
Change-Id: I10e8bea59cd5914d36b2c9539ee1556e55b82e53
2023-03-21 17:37:57 +00:00
Spandan Das
15da5887fe Create two sentinel api levels
This relands aosp/2470068. The original CL was submitted as part of a
stack that broke tm and udc. Those branches still contain soong modules
with min_sdk_version of type (kind+level).

Test: m nothing on tm and udc (via go/abtd)
Bug: 208456999

Change-Id: I8e013ec10530372f70f0ab0505b7eebeee2b360b
2023-03-21 17:37:49 +00:00
Spandan Das
ef5b7e4e36 Merge "Cleanup hardcoded references to android_*stubs_current" 2023-03-21 17:22:42 +00:00