Commit Graph

83181 Commits

Author SHA1 Message Date
mrziwang
e7ec89e0a9 ExportableModule no longer implements OutputFileProducer
multitree.ExportableModule no longer implements
android.OutputFileProducer

In the context of incremental soong, the output files
inter-module-communication will be through OutputFilesProvider.
The OutputFileProducer interface will be deprecated.

ApiSurface and apexBundle are included in this change.

Test: CI
Bug: 339477385
Change-Id: I9247bb2dfed270a879f8bc96c6aa06803fde0150
2024-06-20 16:19:48 +00:00
Zi Wang
26faf1b321 Merge "Use OutputFilesProvider on cc_cmake_snapshot" into main 2024-06-20 16:18:16 +00:00
Zi Wang
9b3fba9b0b Merge "Use OutputFilesProvider on sdk" into main 2024-06-20 16:17:49 +00:00
Victor Chang
abf841134f Merge "Allow java, java. and jdk.* package_allowed_list.txt." into main 2024-06-20 09:32:44 +00:00
Victor Chang
9fc907642b Merge "Allow jdk.internal.event / .vm in the boot image" into main 2024-06-20 08:48:26 +00:00
Pechetty Sravani
f80ffa8b86 Merge "Revert "Enable -Wfortify-source"" into main 2024-06-19 13:15:28 +00:00
Pechetty Sravani
55748021b0 Revert "Enable -Wfortify-source"
This reverts commit 25e9e900f1.

Reason for revert: Droidmonitor triggered revert due to build breakage in b/348142863. Will be verifying through ABTD before submission.

Change-Id: Ia18f83e9261e395cf5f76669523bd6f4a5e9ba49
2024-06-19 11:47:27 +00:00
Maciej Żenczykowski
d957a9bd70 Merge "Enable -Wfortify-source" into main 2024-06-19 10:09:21 +00:00
Paul Duffin
94811f3031 Merge "Support passing multiple --migrate-nullness option for java_api_library" into main 2024-06-19 09:48:09 +00:00
Treehugger Robot
c0cbb491d5 Merge "Use BaseApexName to generate permission file for sdk library" into main 2024-06-19 04:29:18 +00:00
Spandan Das
33bbeb243f Use BaseApexName to generate permission file for sdk library
Permissions of apex variants of shared java sdk libraries should use the
base apex name (com.android.foo) and not the override apex name
(com.mycompany.android.foo). The override apex name started being used
when separate variants were created for override apex transitive deps
(https://r.android.com/3083813)

Bug: 346486531
Test: m com.google.android.ipsec
Test: verified that
out/target/product/<product>/apex/com.google.android.ipsec/etc/permissions/android.net.ipsec.ike.xml
contains /apex/com.androiqd.ipsec/javalib/android.net.ipsec.ike.jar #
previously it contained com.google.android.ipsec

Test: https://android-build.corp.google.com/builds/abtd/run/L59900030004679761
Change-Id: I863170d78efa017bef5e4ece3b1471f74ba84b0c
2024-06-19 04:27:43 +00:00
Inseob Kim
9687618816 Merge "Add build_prop soong module" into main 2024-06-19 03:26:37 +00:00
Treehugger Robot
d3b519fc30 Merge "Update Bindgen Clang to clang-r522817" into main 2024-06-19 03:14:00 +00:00
Yu Liu
88f4e331cc Merge "Experimental code to support build action caching." into main 2024-06-19 01:57:12 +00:00
LaMont Jones
d2021e3f31 Merge "Add RELEASE_ACONFIG_EXTRA_RELEASE_CONFIGS" into main 2024-06-19 01:48:53 +00:00
Inseob Kim
2da72af53a Add build_prop soong module
build_prop is a soong module generating {partition}/build.prop. It's
ported from build/make/core/sysprop.mk and will replace sysprop.mk in
the future. Currently used only by Android.bp cuttlefish system image.

Bug: 322090587
Bug: 346214958
Test: compare system/build.prop and aosp_cf_x86_64_system-build.prop for
      eng / user / userdebug
Change-Id: Iad76139fe86ec4f582218c185aa15baeacaa38dc
2024-06-19 10:42:07 +09:00
LaMont Jones
21d04d99c8 Add RELEASE_ACONFIG_EXTRA_RELEASE_CONFIGS
This build flag causes us to create aconfig flag artifacts for the
given extra release configs.

Bug: 298444886
Test: manual
Change-Id: I10148f6e7318b0477438ed1d8baafbf4dc594c90
2024-06-18 17:16:42 -07:00
Yu Liu
fa29764f9f Experimental code to support build action caching.
Bug: 335718784
Test: build locally
Change-Id: Icc1f1fb15f9fe305e95dd51e2e7aff1e9cbf340c
2024-06-19 00:09:32 +00:00
Wei Li
603331542f Implement Module interface function FilesToInstall in platform_compat_config modules.
Bug: 324465531
Test: CIs
Change-Id: Idf24c987ad3fafb13956712c14bcb9329673e923
2024-06-18 16:38:31 -07:00
mrziwang
d40d36895d Use OutputFilesProvider on sdk
In the context of incremental soong, the output files
inter-module-communication will be through OutputFilesProvider.
The OutputFileProducer interface will be deprecated.

Test: CI
Bug: 339477385
Change-Id: I786661d2ef882fe5dc7a0f67fa28f5df78f1f259
2024-06-18 15:15:38 -07:00
Aditya Kumar
25e9e900f1 Enable -Wfortify-source
This reverts commit 32e35e416e.

Reason for revert: Fixed the failing builds

Change-Id: I919c292e4802a795771c499a830381ca4c761e18
2024-06-18 21:17:12 +00:00
Cole Faust
ecdb25e674 Merge "Make required a configurable property" into main 2024-06-18 18:05:41 +00:00
Paul Duffin
1b1eb9b3af Support passing multiple --migrate-nullness option for java_api_library
Bug: 347751326
Test: m droid
Change-Id: I7702021348004b5f6d686d71ee566c5589dbc4f5
2024-06-18 18:17:39 +01:00
mrziwang
f95cfa6087 Use OutputFilesProvider on cc_cmake_snapshot
In the context of incremental soong, the output files
inter-module-communication will be through OutputFilesProvider.
The OutputFileProducer interface will be deprecated.

Test: CI
Bug: 339477385
Change-Id: I38d9b2a953296134490a4347ecd024dac2dd4757
2024-06-18 10:11:39 -07:00
Jiakai Zhang
a66c2c5b9b Allow java, java. and jdk.* package_allowed_list.txt.
It avoids modifying this allowlist  when adding new packages into
core-oj.jar in the future.

(cherry-picked from f2fc54ff58b371872c357c33bd66b4b7ec7afe0e)

Bug: 346996451
Test: m
Merged-In: Iaf99efe73a3f9a43323d4c22238786db98993990
Merged-In: Icb208bb235f9c6ac97492c54c32a3174982756ae
Change-Id: Iaf99efe73a3f9a43323d4c22238786db98993990
2024-06-18 15:38:58 +01:00
Inseob Kim
25cdff6815 Merge changes from topic "product_config_module" into main
* changes:
  Use product_config from buildinfo_prop module
  Add product_config module
2024-06-18 03:57:41 +00:00
Inseob Kim
1d9148244f Use product_config from buildinfo_prop module
Many parameters can be migrated to product_config module. This is also a
PoC, which is helpful for future build.prop migration.

Bug: 346214955
Test: compare buildinfo.prop before and after
Change-Id: I751220b3a09583e469ae721c0e49a1909b6428d7
2024-06-18 09:56:53 +09:00
Inseob Kim
58c802f8e3 Add product_config module
product_config module will export productVariables struct (defined in
android/variable.go). Other modules can depend on product_Config module
to read product variables, without needing to update Soong.

Bug: 346214955
Test: build and see output of product_config module
Change-Id: I06e1d2716dc2a8b90984bb46c5fc901cd1ca5020
2024-06-18 09:56:45 +09:00
Treehugger Robot
d6352efd1a Merge "Use --lto-O0 for optimizeForSize targets" into main 2024-06-17 21:18:00 +00:00
Zi Wang
d838795450 Merge "Use OutputFilesProvider on genrule" into main 2024-06-17 21:07:22 +00:00
Zi Wang
c401229e18 Merge "Use OutputFilesProvider on prebuilt_apex and apex_set" into main 2024-06-17 21:07:13 +00:00
Cole Faust
43ddd08bd2 Make required a configurable property
So that users can use select statements with it.

Fixes: 347605145
Bug: 342006386
Test: m nothing --no-skip-soong-tests
Change-Id: Ica0ca6d1725b000b3748c0293e5a9f9b38ed87f9
2024-06-17 12:32:40 -07:00
Xin Li
f9fc13dd78 Merge "Merge Android 14 QPR3 to AOSP main" into main 2024-06-17 18:51:33 +00:00
Treehugger Robot
541be507f2 Merge "Propagate flags_packages to static reverse dependencies" into main 2024-06-17 18:21:26 +00:00
mrziwang
4514ef26e2 Use OutputFilesProvider on genrule
Test: CI
Bug: 339477385
Change-Id: I06955584517ce0ec7402047ffdac0e07b954e93e
2024-06-17 11:12:54 -07:00
Jihoon Kang
9aef777826 Propagate flags_packages to static reverse dependencies
flags_packages property was added to supports flagging the manifest
files. The listed names of `aconfig_declarations` modules are passed to
aapt2. However, this is currently scoped to the module level, and is not
propagated to the reverse dependencies. In other words, if the manifest
is flagged with `featureFlag` property, all of the reverse dependency of
the android_app/android_library should specify `flags_packages` property
in the bp module definition, leading to huge toil for the users.

In order to resolve such inconvenience, this change modifies the build
rules of android_app,android_library and runtime_resource_overlay such
that flags_packages of the static dependencies are collected.

Test: Patch ag/27816261 && m Settings --no-skip-soong-tests
Bug: 347289274
Change-Id: I4c3855541dd09cb72293515eb2626eaf4ae8c0df
2024-06-17 17:18:37 +00:00
LaMont Jones
bfab026b29 Merge "Rename flag_artifacts field in proto" into main 2024-06-17 17:01:26 +00:00
LaMont Jones
1ecfa8fb9f Rename flag_artifacts field in proto
Having a message name and field name that are the same causes C++
generated code to fail.

Bug: 347076012
Test: manual, TH
Change-Id: I198e92dc906d476881ef351e603ef2ea63ce5848
2024-06-17 15:36:14 +00:00
Victor Chang
78ba397272 Allow jdk.internal.event / .vm in the boot image
Bug: 346542404
Test: m out/soong/boot-jars-package-check/stamp
Change-Id: I5ae8d4ff5aec1586c9090b8629d03237a5549295
2024-06-17 15:19:03 +01:00
Maciej Żenczykowski
3639ee4aac Merge "Revert "Enable -Wfortify-source"" into main 2024-06-17 09:57:04 +00:00
Maciej Żenczykowski
32e35e416e Revert "Enable -Wfortify-source"
This reverts commit ca5e3eb407.

Reason for revert: falcon and seahawk build failures on git_main.

Change-Id: Ib48e33dbb1649641223013739bb85934342a067a
2024-06-17 09:55:36 +00:00
Treehugger Robot
7f9441175f Merge "Add DistForGoal "droidcore" for merged_compat_config.xml" into main 2024-06-17 03:05:13 +00:00
Yi Kong
ae870727b5 Use --lto-O0 for optimizeForSize targets
This is another place where we can trade performance for additional
binary size savings.

Test: presubmit
Change-Id: Icf9600ef2ca4092e4adccc0c26465b542b038f7b
2024-06-16 13:05:05 +09:00
Aditya Kumar
ca5e3eb407 Enable -Wfortify-source
This reverts commit 885f2eec3c.

Reason for revert: Fixed the error reported in post-submit

Change-Id: I152494403e6d6937413d0e5d2637d426c2f54009
2024-06-15 12:07:06 +00:00
Cole Faust
ba80e4c16b Merge "Remove saveToBazelConfigFile" into main 2024-06-14 23:23:58 +00:00
Zi Wang
f222db3d01 Merge "Add another way for TestingModule to get its output files" into main 2024-06-14 22:14:59 +00:00
Pirama Arumuga Nainar
52436e1574 Merge "Revert^4 "Enable full LTO optimization by default"" into main 2024-06-14 21:54:50 +00:00
Cole Faust
7dc42aa7af Merge "Remove debug/release cflags" into main 2024-06-14 21:15:15 +00:00
Cole Faust
ad18649d29 Remove saveToBazelConfigFile
Bug: 315353489
Test: Presubmits
Change-Id: I781f0fd9d0241b9742b0b84f5df4088e7bba16c7
2024-06-14 14:13:54 -07:00
Cole Faust
791733fad4 Merge "Simplify aconfig_declarations_group" into main 2024-06-14 20:25:40 +00:00