101146 Commits

Author SHA1 Message Date
Luca Farsi
0b73dde4e9 Split out host shared libs target from device-tests
Split out the building of the host shared libs zip from the device-tests
target so it can be build separately. Building device-tests still still
build both.

Test: m device-tests, m device-tests-shared-libs
Bug: 366308541
Change-Id: I13741ce22823622a6bf4744cb55026765c188b8c
2024-09-19 12:05:06 -07:00
Luca Farsi
1f68c0091b Merge "Fix packaging outputs commands" into main 2024-09-19 19:03:56 +00:00
Shreshta Manu
3e6c5cc24d Merge "[Ranging] Add service-ranging to build" into main am: dad619fb93 am: 43386d6489
Original change: https://android-review.googlesource.com/c/platform/build/+/3266765

Change-Id: I6d9ed4682f1ec68dda3e9736c491e43ef9efb9fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 18:44:21 +00:00
Shreshta Manu
4723af04c0 Merge "[Ranging] Add ranging to build" into main am: d3f628f084 am: fc276f14eb
Original change: https://android-review.googlesource.com/c/platform/build/+/3263772

Change-Id: Ifc7c3c5526a8bf9a509533317cef912e367ff082
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 18:43:23 +00:00
Shreshta Manu
43386d6489 Merge "[Ranging] Add service-ranging to build" into main am: dad619fb93
Original change: https://android-review.googlesource.com/c/platform/build/+/3266765

Change-Id: I304103d409649b26b8f1332a0f49273e3a825c39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 18:39:23 +00:00
Shreshta Manu
fc276f14eb Merge "[Ranging] Add ranging to build" into main am: d3f628f084
Original change: https://android-review.googlesource.com/c/platform/build/+/3263772

Change-Id: Ie2abffa83686aefeca40a85910b5fb438d6563c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 18:37:54 +00:00
Shreshta Manu
dad619fb93 Merge "[Ranging] Add service-ranging to build" into main 2024-09-19 18:33:16 +00:00
Shreshta Manu
d3f628f084 Merge "[Ranging] Add ranging to build" into main 2024-09-19 18:32:51 +00:00
Priyanka Advani (xWF)
159dd4c276 Merge "Revert "Add command line tool that generates NOTICE.xml.gz for p..."" into main am: 75501177a5 am: f13f451e8b
Original change: https://android-review.googlesource.com/c/platform/build/+/3272667

Change-Id: I922961cd61934fefb09d8e4dd3a9de2e703961ca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 18:02:33 +00:00
Luca Farsi
8ea6742d05 Fix packaging outputs commands
There were a few issues with the output packaging process that were
found during testing of the general-tests optimization.

First and foremost is that the packaging commands were trying to be
created before the build ran, when the outputs don't exist. I've changed
the logic to just collect the methods themselves which will then be run
during build plan execution after the build has completed.

A few other smaller issues include fixing the path to the soong_zip
binary, incorrect execution of the soong dumpvars command, and not
building the shared libs zip.

Test: atest build_test_suites_test; atest optimized_targets_test
Bug: 358215235
Change-Id: I8a3f54738f8bb5d871aadf7423844076c38b54a6
2024-09-19 11:01:06 -07:00
Priyanka Advani (xWF)
f13f451e8b Merge "Revert "Add command line tool that generates NOTICE.xml.gz for p..."" into main am: 75501177a5
Original change: https://android-review.googlesource.com/c/platform/build/+/3272667

Change-Id: Ie0793220f83ec567ebd6c788c0ac8df2077d1f53
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 17:57:10 +00:00
Wei Li
486c627e72 Revert "Revert "Add command line tool that generates NOTICE.xml...."
Revert submission 3272666-revert-3273112-soong-notice-xml-XKFAUDLTXP

Reason for revert: reland it

Reverted changes: /q/submissionid:3272666-revert-3273112-soong-notice-xml-XKFAUDLTXP

Change-Id: Ica8daafbc5f1bc0bc473c939c595666403349739
2024-09-19 17:55:12 +00:00
Priyanka Advani (xWF)
75501177a5 Merge "Revert "Add command line tool that generates NOTICE.xml.gz for p..."" into main 2024-09-19 17:53:20 +00:00
Treehugger Robot
0ccd5b29ba Merge "aconfig: cpp test-mode lib" into main am: 8e571eea6d am: a3c3cdce43
Original change: https://android-review.googlesource.com/c/platform/build/+/3272287

Change-Id: Ifc1596a84c3b7320b656ab3e2f63b96906891626
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 17:49:09 +00:00
Treehugger Robot
a3c3cdce43 Merge "aconfig: cpp test-mode lib" into main am: 8e571eea6d
Original change: https://android-review.googlesource.com/c/platform/build/+/3272287

Change-Id: Id0a1b12a39c9733a51e8c492fe05004a3a0c3be9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 17:48:39 +00:00
Wei Li
71f114e347 Merge "Add command line tool that generates NOTICE.xml.gz for partitions." into main am: 9c3097d5fb am: 8c0d7cd133
Original change: https://android-review.googlesource.com/c/platform/build/+/3271576

Change-Id: I92d7fd14171ceedf62ddb111ea9bf277f9406243
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 17:48:09 +00:00
Priyanka Advani (xWF)
2f37c1980c Revert "Add command line tool that generates NOTICE.xml.gz for p..."
Revert submission 3273112-soong-notice-xml

Reason for revert: Droidmonitor created revert due to b/368348129.

Reverted changes: /q/submissionid:3273112-soong-notice-xml

Change-Id: I55e1e93aa6d4b311c6ee461d4216a104909af842
2024-09-19 17:43:39 +00:00
Treehugger Robot
8e571eea6d Merge "aconfig: cpp test-mode lib" into main 2024-09-19 17:42:29 +00:00
Wei Li
8c0d7cd133 Merge "Add command line tool that generates NOTICE.xml.gz for partitions." into main am: 9c3097d5fb
Original change: https://android-review.googlesource.com/c/platform/build/+/3271576

Change-Id: I0a447f26a32ee351271ddbd6c8a3c91fb31978e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 17:41:58 +00:00
Wei Li
9c3097d5fb Merge "Add command line tool that generates NOTICE.xml.gz for partitions." into main 2024-09-19 17:37:06 +00:00
Jeremy Bettis
6bfe51ae53 Add trendy team for desktop firmware team
Bug: 357660887
Bug: 368101278
Bug: 368341182

Change-Id: Ieff334e1b718776a2f09ce31f909b816c310e5ec
2024-09-19 17:17:40 +00:00
Treehugger Robot
a1ecbc8f2f Merge "Add etc/bpf/uprobestats/ProcessManagement.o in allowlist" into main am: 8a1e78aa9c am: 54f7f3cce5
Original change: https://android-review.googlesource.com/c/platform/build/+/3273919

Change-Id: I2b8399527de71fcad50e55f02cb8cb821cd5af8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 17:17:31 +00:00
Treehugger Robot
54f7f3cce5 Merge "Add etc/bpf/uprobestats/ProcessManagement.o in allowlist" into main am: 8a1e78aa9c
Original change: https://android-review.googlesource.com/c/platform/build/+/3273919

Change-Id: Idfbd6318f2aa41397dbcc31853ab5a852e81000c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 17:12:04 +00:00
Treehugger Robot
8a1e78aa9c Merge "Add etc/bpf/uprobestats/ProcessManagement.o in allowlist" into main 2024-09-19 17:04:32 +00:00
Jeongik Cha
ac740c3ef9 Update OWNERS for allowlist
Bug: n/a
Test: n/a
Change-Id: I7a186fbc89d5edf75efc76791e554c67bc02ef75
2024-09-20 00:33:25 +09:00
Jeongik Cha
392c0c954d Add etc/bpf/uprobestats/ProcessManagement.o in allowlist
to unblock build failure

Bug: 351698657
Bug: 368185982
Test: build
Change-Id: I1017091dd26cd74b471d1d71c3f3b6ad80a0c50a
2024-09-20 00:29:03 +09:00
Marybeth Fair
769d8eed37 Add fingerprint to packages.map.
No guards to this change because we will guard actually writing the
fingerprint, and right now new storage is not in trunkfood yet. This
change modifies the package map file structure. Note that if the new
storage was in trunkfood, this could (theoretically) cause issues if
there were cross-container READ_WRITE flags (not permitted per
documentation) and if the containers were built at separate aconfig
versions (ie before and after this change). Adding the fingerprint will
help prevent such issues in the future. Incremented the storage version
number as I've changed the format.

Again, fingerprint is not actually written in this CL, it always has a
value of 0.

Updated the test files as well to have the new version and the
fingerprint. Since this changed the package node size, some of the
information in the buckets there (offset) has changed as well.

Also added a test util for flags from another package to test future
changes.

Bug: 316357686
Test: atest aconfig.test
Change-Id: I09e10808492f241fe78028d2757f7d63328623c3
2024-09-19 10:17:23 -04:00
Nelson Li
21ba377f5a Move the dist target of mke2fs to build/core/tasks
Because `mke2fs`, `make_f2fs`, and `make_f2fs_casefold` have
`recovery_available` set to true, Soong forcibly adds a new variation
with a `_recovery` suffix to the existing variations. If this is
directly added to the `dist` of the corresponding module, it will cause
duplication of the `android_recovery_<arch>/meta_lic` and
`android_<arch>/meta_lic` files.

Therefore, it is temporarily moved to `build/core/tasks`. Once the
issues are resolved, they will be moved to the corresponding modules.

Bug: 349741178
Test: m sdk dist
Change-Id: I1bea3aa2f42334c9ed14bf766aaa7e6f428ed35a
2024-09-19 07:20:46 +00:00
Treehugger Robot
04d2989388 Merge "Export USE_CAMERA_V4L2_HAL to soong" into main am: 48a08682fa am: 8f91d9801d
Original change: https://android-review.googlesource.com/c/platform/build/+/3256421

Change-Id: Ic415d2e7b964b0fc470895078bba08c3fc603efc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 01:45:05 +00:00
Treehugger Robot
8f91d9801d Merge "Export USE_CAMERA_V4L2_HAL to soong" into main am: 48a08682fa
Original change: https://android-review.googlesource.com/c/platform/build/+/3256421

Change-Id: I26408ce51b0c23bb7a08497543b2456e99ea466c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-19 01:37:06 +00:00
Treehugger Robot
48a08682fa Merge "Export USE_CAMERA_V4L2_HAL to soong" into main 2024-09-19 01:14:21 +00:00
William Escande
01d6bb3aae aconfig: cpp test-mode lib
Incompatible interface between test-mode and normal mode.

Bluetooth is linking the normal flag for the code that is shipped, and
it is linking the test-mode library for unit testing.
While trying to move some test to use the test-mode, we noticed some
failure as the flag returned were not the one expected.

It appear the code and the test are built against 2 different library,
but linked against one.
The provide interface only contains getter in normal mode, and it is
alternating between getter/setter in test-mode.
By moving the setter in test-mode toward the end of the interface, we
are not modifying the assumed order for the code built against the
normal mode.

This CL is a short term fix, to make the test goes green and prevent
immediat failure. An refactor of the cpp generated code should be done
to avoid using 2 different version of the same symbol in 2 different
libs.

Bug: 311772251
Test: atest aconfig.test
Change-Id: I97f6523452c451d005d2e92bfa1ef861611ab840
2024-09-18 18:01:20 -07:00
Android Build Coastguard Worker
58f7e044c6 Version bump to AP4A.240919.002 [core/build_id.mk]
Change-Id: I0eb39e3ca24a6893106fc46a53a12970b0a50cf3
2024-09-19 00:35:11 +00:00
Krzysztof Kosiński
0d5776f887 Add required makefile for ARMv9.2-A.
Bug: 364383722
Test: presubmit, internal build for relevant device
Change-Id: I7ab3ab54e946a40d6c69c0bc1234d4032c89370e
2024-09-19 00:06:33 +00:00
Android Build Coastguard Worker
b645e7dc66 Make change and version bump to AP4A.240919.001
Snap for 12385180 from bdf28aa7bb to 24Q4-release

Change-Id: I38709f83280d24ee85c4f40ce449bcbcd07e17f9
2024-09-18 23:45:01 +00:00
Florian Mayer
3340cf27f7 Use -target-feature for MTE
This combines with other features.

Bug: 366222162
Change-Id: I74bab7e725eaa856d183987fa682f2ab0903ce70
2024-09-18 21:18:19 +00:00
Wei Li
e4c1ec9466 Add command line tool that generates NOTICE.xml.gz for partitions.
The tool currently generates a XML file with the root element only and its content will be filled in in following CLs.

Also disable the generation of NOTICE.xml.gz in make when USE_SOONG_DEFINED_SYSTEM_IMAGE is true, so the Soong module could be used without conflict.

Bug: 330949782
Bug: 338342381
Test: lunch aosp_cf_x86_64_phone-trunk_staging-eng && m, and check that system/etc/NOTICE.xml.gz have all the XML elements.
Test: lunch aosp_cf_x86_64_phone_soong_system-trunk_staging-eng && m, and check that system/etc/NOTICE.xml.gz has root element only.
Change-Id: I82e90bd9aa3dabc605acfe8da697ab1f7e7ecf9b
2024-09-18 20:48:34 +00:00
Ashutosh Agarwal
bdf28aa7bb Merge "Update core/Makefile to add variable PRODUCT_EXTRA_STUB_LIBRARIES." into main am: f09a84419c am: 07fca5b929
Original change: https://android-review.googlesource.com/c/platform/build/+/3272171

Change-Id: I9ee45dd4887fd356899a0c2a093f329f43d17d1f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-18 18:44:05 +00:00
Ashutosh Agarwal
07fca5b929 Merge "Update core/Makefile to add variable PRODUCT_EXTRA_STUB_LIBRARIES." into main am: f09a84419c
Original change: https://android-review.googlesource.com/c/platform/build/+/3272171

Change-Id: I16aad101ed5af364d716e12190c3a42476816fb1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-18 18:18:03 +00:00
Ashutosh Agarwal
f09a84419c Merge "Update core/Makefile to add variable PRODUCT_EXTRA_STUB_LIBRARIES." into main 2024-09-18 17:54:39 +00:00
Ashutosh Agarwal
f0f939409d Update core/Makefile to add variable PRODUCT_EXTRA_STUB_LIBRARIES.
This allows products to specify additional device-specific stub libraries that should be included in the system_linker_config. This is useful for products that need to include additional stub libraries that are not picked up by Soong automatically.

Bug: 361441210
Change-Id: Ia18c476e249ac5b14b43819fa0a4f0059dc620de
2024-09-18 14:24:05 +00:00
Shreshta Manu
420237dc41 [Ranging] Add service-ranging to build
Bug: 364930449
Test: compiles
Change-Id: Ib14d0434a3e40e8dee76eea647051816dc8a740c
2024-09-18 03:27:54 +00:00
Shreshta Manu
1e9faa2bc9 [Ranging] Add ranging to build
Bug: 364930449
Test: compiles
Change-Id: I35af9f96715be1366fba7041b65094e5a8c04eb0
2024-09-18 03:25:55 +00:00
Dennis Shen
a66e86a0b0 Merge "aconfig: update cpp_codegen to just read from new storage" into main am: 5b6b40e037 am: 390991bd61
Original change: https://android-review.googlesource.com/c/platform/build/+/3266995

Change-Id: Ie99ad0d876a2fe823952ab7df17a2c1f8292ec40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-18 02:35:16 +00:00
Dennis Shen
390991bd61 Merge "aconfig: update cpp_codegen to just read from new storage" into main am: 5b6b40e037
Original change: https://android-review.googlesource.com/c/platform/build/+/3266995

Change-Id: I23865ea3825b1ff9da37eb2ecd12c1f53723d032
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-18 02:12:36 +00:00
Dennis Shen
5b6b40e037 Merge "aconfig: update cpp_codegen to just read from new storage" into main 2024-09-18 01:53:30 +00:00
Android Build Coastguard Worker
7177ba4ce8 Make change and version bump to AP4A.240918.001
Snap for 12378824 from b015439ee6 to 24Q4-release

Change-Id: Ifaad4da8c4e5dffd6a0a6dfd7d9d7325936acc26
2024-09-17 23:46:40 +00:00
Yu-Ting Tseng
d1275b9333 Merge "flag guarded move of uprobestats into Mainline" into main 2024-09-17 21:22:16 +00:00
Zhuoyao Zhang
e27d217ae3 Merge "Bootstrap the edit monitor project" into main am: cd1908f552 am: 01b092672d
Original change: https://android-review.googlesource.com/c/platform/build/+/3261331

Change-Id: I51f32dcf34cc2c1f53bedaa035a86a64c5b5acaa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-17 21:17:36 +00:00
Dennis Shen
ee4e44ade7 aconfig: update cpp_codegen to just read from new storage
Change-Id: Ifc5886e587a64da0d940df903f972593c5e9c9d8
2024-09-17 21:11:22 +00:00