Cole Faust
2cfe696f4c
Properly initialize android_system_image modules
...
android_system_image just passed its embedded filesystem module to
InitAndroidModule (transitively via initFilesystemModule). This meant
that ModuleBase.module was pointing to the filesystem module, not
the system image module. This was a problem for the new "changeable
configuration" feature I'm working on, but you can also more readily
see the issue if you add a GenerateAndroidBuildActions function to
android_system_image: it won't be called.
Bug: 361816274
Test: Presubmits
Change-Id: I41978037b81910309a000dc1bba327e513ba5dce
2024-09-17 11:31:14 -07:00
Makoto Onuki
a191ef3c54
Merge "Make compat-config to generate output files too" into main
2024-09-17 18:29:23 +00:00
Treehugger Robot
2ad497a39d
Merge "Soong: BPF: add defaults support and local include" into main
2024-09-17 18:25:12 +00:00
Treehugger Robot
8c0c9b73ef
Merge "Pass the common sources rsp file as --common_srcs
to extractor" into main am: 1c8c5698ec
am: cc64154a60
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3267541
Change-Id: I57c34e05354db9c106a086dc8b5aab4ac85b089e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-17 18:10:52 +00:00
Colin Cross
b032510100
Merge "Convert arch and os mutators to TransitionMutators" into main am: 1531a12d2d
am: 906856c785
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3262266
Change-Id: I18e45ebdf7d292619664cf91918ae3592a31122a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-17 18:09:01 +00:00
Treehugger Robot
cc64154a60
Merge "Pass the common sources rsp file as --common_srcs
to extractor" into main am: 1c8c5698ec
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3267541
Change-Id: I49e9cf27c697bcc72e3a68960b9a6e8c5e8b17f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-17 18:06:27 +00:00
Treehugger Robot
1c8c5698ec
Merge "Pass the common sources rsp file as --common_srcs
to extractor" into main
2024-09-17 17:49:54 +00:00
Colin Cross
906856c785
Merge "Convert arch and os mutators to TransitionMutators" into main am: 1531a12d2d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3262266
Change-Id: I1707a33f7037ee5c36bf7ce1b2b44ca1cef7a9b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-17 17:46:56 +00:00
Colin Cross
1531a12d2d
Merge "Convert arch and os mutators to TransitionMutators" into main
2024-09-17 17:06:14 +00:00
Makoto Onuki
ed392f7097
Fix resource-apk inclusion
...
- We used to include the "install" files, but we really should be using
"output" files instead.
- Also supports a new "inst_resource_apk" property, which is another APK
that's loaded as resources of the instrumentation app itself.
Flag: EXEMPT host test change only
Bug: 292141694
Test: m nothing --no-skip-soong-tests
Test: manual test with a local test module change and make sure
the second apk exists
Change-Id: Ibd3f9d4a1cbc0f805b2294605ae8bc06fdf53b75
2024-09-17 10:03:24 -07:00
Makoto Onuki
ca678c4a36
Make compat-config to generate output files too
...
Flag: EXEMPT host test change only
Bug: 367706429
Test: m nothing --no-skip-soong-tests
Test: `m ravenwood-runtime` and make sure out/host/linux-x86/testcases/ravenwood-runtime/ravenwood-data/
has framework-platform-compat-config.xml and services-platform-compat-config.xml
Change-Id: I92b545c480890815cd886b8ecf50ed99ffe7eea1
2024-09-17 09:53:33 -07:00
Ulya Trofimovich
7d37960e1f
Merge "Revert^12 "Enable dex container (DEX v41) for the whole system"" into main am: 9d96d1f186
am: 0eff90b320
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3212295
Change-Id: I48da5f8c2753499099a148a0c38ced3a8c52cc7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-17 15:32:14 +00:00
Ulya Trofimovich
0eff90b320
Merge "Revert^12 "Enable dex container (DEX v41) for the whole system"" into main am: 9d96d1f186
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3212295
Change-Id: Iec3f740a25465564548f8d416c380a8a917c143d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-17 15:06:18 +00:00
Ulya Trofimovich
9d96d1f186
Merge "Revert^12 "Enable dex container (DEX v41) for the whole system"" into main
2024-09-17 14:01:55 +00:00
Colin Cross
d27205e8da
Convert test mutators to TransitionMutators
...
Convert various mutators in tests to TransitionMutators.
Bug: 319288033
Flag: EXEMPT refactor
Test: all soong tests pass
Change-Id: I1da55889c391582a7c825c118c5988ec27820237
2024-09-16 17:00:39 -07:00
Colin Cross
8bbc3d5a30
Convert arch and os mutators to TransitionMutators
...
Replace archMutator and osMutator with TransitionMutators.
Bug: 319288033
Flag: EXEMPT refactor
Test: all soong tests pass
Test: no change to out/soong/*.ninja
Change-Id: I92a4d7c895dd79f1dd8064d0ca90e7010b563525
2024-09-16 17:00:39 -07:00
Yifeng Zeng
9ff16fa53e
Enable Rust host coverage. am: d141912806
am: b88010cb9c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3063651
Change-Id: I5dca74f537f098c21f65f3ea9cb7858b2313bdcc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-16 23:03:21 +00:00
Yifeng Zeng
b88010cb9c
Enable Rust host coverage. am: d141912806
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3063651
Change-Id: I71c626d30a61ee34a884a37306655c3414d63de7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-16 22:43:19 +00:00
Cole Faust
55b56feb86
Add otherModuleProvider to ConfigurableEvaluatorContext
...
So that it can make decisisons based on a provider set by the
base config mutator.
Bug: 361816274
Test: m nothing
Change-Id: I19e8a9e800dfabcd05740f9c0ed5db833c5b2377
2024-09-16 15:10:05 -07:00
Neill Kapron
4f1f049f5c
Soong: libbpf_prog: Add defaults support
...
Add defaults support for libbpf_prog module type.
Test: TH / manual
Bug: 359646531
Change-Id: Idc2977d3cf6efe62968e0eac9fc592d0cf0b3beb
Signed-off-by: Neill Kapron <nkapron@google.com >
2024-09-16 20:12:14 +00:00
Ulya Trofimovich
5bb46810a5
Revert^12 "Enable dex container (DEX v41) for the whole system"
...
This reverts commit 78fccd9380
.
Reason for revert: test failure in can no longer be reproduced.
Bug: 353452237
Change-Id: I7cf926342efc612b4026d89df12078c018ede7b9
2024-09-16 18:58:53 +00:00
Android Build Coastguard Worker
19bec14a5f
Snap for 12369952 from 19256badc5
to 24Q4-release
...
Change-Id: I1fde3b7302ca549d25945af7e6836c48222d5b53
2024-09-14 22:35:19 +00:00
Yifeng Zeng
d141912806
Enable Rust host coverage.
...
Bug: 297082598
Bug: 330591720
Test: atest logger_host_unit_tests --experimental-coverage
Change-Id: Iec6db35b88e2812d3af69863e74b0acf138b04df
2024-09-14 05:21:18 +00:00
Android Build Coastguard Worker
8060b88142
Snap for 12368321 from 687dbd1cfd
to 24Q4-release
...
Change-Id: I710b8a73242511517c4f91cbad2cf163b218df8e
2024-09-14 01:00:48 +00:00
Treehugger Robot
19256badc5
Merge "Prevent evaluating configurable properties before the defaults mutator" into main am: 0bfceee178
am: 268959a55b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268013
Change-Id: I2b5ea50925f00594c94aa61c60f92dbccf86e960
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-14 00:41:42 +00:00
Treehugger Robot
268959a55b
Merge "Prevent evaluating configurable properties before the defaults mutator" into main am: 0bfceee178
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268013
Change-Id: Ib77c5c0a30267e649f0c37bc131825890bee8b37
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-14 00:19:52 +00:00
Treehugger Robot
05769c76d2
Merge "[Ravenwood] Support fonts files and data files" into main am: e372d287c0
am: 004b8fa8fe
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268351
Change-Id: Ie4477423aaa9ef38c9995b0fcbc6f3c08b3cb854
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-14 00:12:13 +00:00
Treehugger Robot
0bfceee178
Merge "Prevent evaluating configurable properties before the defaults mutator" into main
2024-09-13 23:56:18 +00:00
Treehugger Robot
004b8fa8fe
Merge "[Ravenwood] Support fonts files and data files" into main am: e372d287c0
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268351
Change-Id: I5e5ed7abbc0ae580f22add3bba37adb9c1c7067e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 23:44:23 +00:00
Treehugger Robot
e372d287c0
Merge "[Ravenwood] Support fonts files and data files" into main
2024-09-13 23:27:25 +00:00
Maciej Żenczykowski
fed2df02fa
Merge "BPF: rename bpf_defaults to bpf_cc_defaults" into main am: d0ea163941
am: 482bad125d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268011
Change-Id: I550ac4386c056ef4ac04b73f25ecd05707b6f3c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 23:03:36 +00:00
Maciej Żenczykowski
482bad125d
Merge "BPF: rename bpf_defaults to bpf_cc_defaults" into main am: d0ea163941
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268011
Change-Id: Ic615724aca37eec54c4b9d79f1a2dac294ed9325
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 22:50:19 +00:00
Maciej Żenczykowski
d0ea163941
Merge "BPF: rename bpf_defaults to bpf_cc_defaults" into main
2024-09-13 22:15:27 +00:00
Spandan Das
67136e14f3
Pass the common sources rsp file as --common_srcs
to extractor
...
This additional metadata allows the indexer to differentiate between
platform specific and platform agnostic kotlin code.
Bug: 3266381
Test: ran the indexer on `kotlinx_serialization_core` java_library
Change-Id: I860552808198cafa95fe0d5b6faa725b985e24d0
2024-09-13 22:12:45 +00:00
Treehugger Robot
b597ec6da6
Merge "Add links to partner docs for presigned apks" into main am: ad6a20f3a1
am: 50d7d19f7b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268012
Change-Id: I1690784d86940cffd122d523c67c03e70fef9cab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 21:50:02 +00:00
Aditya Kumar
033e432484
Merge "Disable -Wno-deprecated-dynamic-exception-spec until the warning is fixed in libc++abi header files" into main am: e5cb9c659b
am: 0427340d48
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3264777
Change-Id: Ib8678e48dfabcda5895b5eedc3b08365d8c42b7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 21:49:46 +00:00
Treehugger Robot
50d7d19f7b
Merge "Add links to partner docs for presigned apks" into main am: ad6a20f3a1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268012
Change-Id: I2fe7e1ff79bc978c4e2054e0d6cb71e59e1183ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 21:34:12 +00:00
Aditya Kumar
0427340d48
Merge "Disable -Wno-deprecated-dynamic-exception-spec until the warning is fixed in libc++abi header files" into main am: e5cb9c659b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3264777
Change-Id: Ieaf814cfb2c01210e8b260406bf50e32668796b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 21:33:12 +00:00
Treehugger Robot
ad6a20f3a1
Merge "Add links to partner docs for presigned apks" into main
2024-09-13 21:16:42 +00:00
Aditya Kumar
e5cb9c659b
Merge "Disable -Wno-deprecated-dynamic-exception-spec until the warning is fixed in libc++abi header files" into main
2024-09-13 21:10:04 +00:00
John Wu
680cd73e1a
[Ravenwood] Support fonts files and data files
...
Add support to include font files into ravenwood_libgroup. Also make ravenwood data property to accept paths instead of module name.
Bug: 292141694
Flag: EXEMPT host side change only
Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh
Change-Id: Ida5ef0230d2cc59fa1209199168c6c35e4842fbd
2024-09-13 20:59:05 +00:00
Cole Faust
d706709bf0
Prevent evaluating configurable properties before the defaults mutator
...
So that we can change the configuration after the defaults mutator
has run.
Bug: 361816274
Test: Presubmits
Change-Id: I550088b2555d275a86b5dd4d57e85a9ece859233
2024-09-13 13:37:59 -07:00
Treehugger Robot
687dbd1cfd
Merge changes from topic "flag_application_manifest" into main am: c2ea958b3d
am: da8bc7929e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3260724
Change-Id: I042228b1960f3cd2a247c0d8c620221be2b9fa43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 20:29:32 +00:00
Treehugger Robot
da8bc7929e
Merge changes from topic "flag_application_manifest" into main am: c2ea958b3d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3260724
Change-Id: I9d6d4446ab53bad4a9bea493afd7a5bd9e653ec5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 20:11:51 +00:00
Treehugger Robot
c2ea958b3d
Merge changes from topic "flag_application_manifest" into main
...
* changes:
Support multiple <application> or <uses-sdk> elements in manifest_*.py
Fix manifest_fixer.py warnings
2024-09-13 19:52:44 +00:00
Cole Faust
ce6ddd6e24
Add links to partner docs for presigned apks
...
So if a partner gets this error they can find the script and see
links to documentation.
Test: Presubmits
Change-Id: I50cbe4770e9619fb67a7a586fa6d2210c67d4650
2024-09-13 11:51:02 -07:00
Treehugger Robot
4fd825e1cd
Merge "Fix reanalysis after full build" into main am: 05d9069051
am: 49361b616a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3266058
Change-Id: I003b0a0d9ef9a86eafa17d641ef9f23fb0b359fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 18:44:34 +00:00
Colin Cross
e1ab849b39
Support multiple <application> or <uses-sdk> elements in manifest_*.py
...
Manifests may now have multiple copies of elements if they are
disambiguated with android:featureFlag attributes. Remove the
restrictions on duplicate elements from manifest_check.py and
manifest_fixer.py, and instead iterate over all matching elements.
Test: manifest_check_test.py, manifest_fixer_test.py
Bug: 365170653
Flag: EXEMPT bugfix
Change-Id: Ib577439d03a808a20a5fcc3e15a3117e0970d729
2024-09-13 11:20:21 -07:00
Treehugger Robot
49361b616a
Merge "Fix reanalysis after full build" into main am: 05d9069051
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3266058
Change-Id: I5ed2922d4106fd3920e7ac22a5d6391e9752ea63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2024-09-13 18:00:09 +00:00
Neill Kapron
dfc02f81fc
BPF: rename bpf_defaults to bpf_cc_defaults
...
With the addition of defaults to the bpf soong module (see aosp/3249485
), the name `bpf_defaults` will be used to define defaults for bpf
program compilation. While there are separate soong namespaces for
module types and module names, rename the existing bpf_defaults
cc_defaults to bpf_cc_defaults for clarity.
While we're at it, add -Wextra, and cleanup unnecessary cflags in
clauses which use bpf_cc_defaults.
Test: TH
Change-Id: Ib5f453ce33b13c698e8b91088bc59f8c6719c892
Signed-off-by: Neill Kapron <nkapron@google.com >
2024-09-13 17:55:12 +00:00