Commit Graph

53286 Commits

Author SHA1 Message Date
Treehugger Robot
d3469e639e Merge "Do not pass --compiler-filter=speed-profile with --profile-file." am: b0879c843f am: e1ce0800cf am: cf93fbabf0 am: 312313aaba
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1899014

Change-Id: I378c29d19c446a0b5a07228d1b67d0152b5f8202
2021-11-25 21:40:54 +00:00
Treehugger Robot
312313aaba Merge "Do not pass --compiler-filter=speed-profile with --profile-file." am: b0879c843f am: e1ce0800cf am: cf93fbabf0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1899014

Change-Id: I0bb3ee702b161548c69d44e999e3e612d462eceb
2021-11-25 21:27:16 +00:00
Treehugger Robot
cf93fbabf0 Merge "Do not pass --compiler-filter=speed-profile with --profile-file." am: b0879c843f am: e1ce0800cf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1899014

Change-Id: Ia3cd67c37df3297e55cb5122be7aad84a702877e
2021-11-25 21:10:19 +00:00
Treehugger Robot
e1ce0800cf Merge "Do not pass --compiler-filter=speed-profile with --profile-file." am: b0879c843f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1899014

Change-Id: Ib8260eddc20f9250e5295666f73b341dd3282f00
2021-11-25 20:52:57 +00:00
Treehugger Robot
b0879c843f Merge "Do not pass --compiler-filter=speed-profile with --profile-file." 2021-11-25 20:42:31 +00:00
Treehugger Robot
89b783c51c [automerger skipped] Merge changes Iecf7edd6,Iaca5cf23,I01d57919 am: 8a0dd0265b am: 87feed1f91 am: 68527d510f am: b92a277c0e -s ours
am skip reason: Merged-In Iecf7edd6bae98c7af908d3f320f10ae4973d0396 with SHA-1 bde653e5fd is already in history

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901600

Change-Id: Ifc070caad7d5a1765766e51010d1d12d66a6e38e
2021-11-25 13:25:05 +00:00
Pedro Loureiro
9979b9b1dc [automerger skipped] Perform validation of shared library attributes am: c362142438 am: 4b495f1a5c am: 882970a63b am: 273921d0e6 -s ours
am skip reason: Merged-In Iaca5cf23fb0bc7e65effb3529c8e829560894c2e with SHA-1 f9e584dd20 is already in history

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901599

Change-Id: I6e7eb6612fc437e18761c2e3ba9c93120837fa52
2021-11-25 13:25:04 +00:00
Pedro Loureiro
ba1941b598 [automerger skipped] Add support for new permissions library tag attributes am: 9956e5e281 am: 913ab0d8cd am: 043f50930d am: cecbcf534a -s ours
am skip reason: Merged-In I01d579190fb585662086a7fc456f3b33cb89fb57 with SHA-1 826863c8e0 is already in history

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901598

Change-Id: I0db81fe2a19cfbd3fdb953126d88ac237511fe34
2021-11-25 13:25:02 +00:00
Treehugger Robot
b92a277c0e Merge changes Iecf7edd6,Iaca5cf23,I01d57919 am: 8a0dd0265b am: 87feed1f91 am: 68527d510f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901600

Change-Id: Ie7261e5c9a165d83e9b4858f1c83a56d35b6094d
2021-11-25 13:06:34 +00:00
Pedro Loureiro
273921d0e6 Perform validation of shared library attributes am: c362142438 am: 4b495f1a5c am: 882970a63b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901599

Change-Id: Ide035ab094587eef279c2f9d47bd08217d8c321a
2021-11-25 13:06:33 +00:00
Pedro Loureiro
cecbcf534a Add support for new permissions library tag attributes am: 9956e5e281 am: 913ab0d8cd am: 043f50930d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901598

Change-Id: I62a5e479bd08bb9c22febaba6ebe10dc9cb3e579
2021-11-25 13:06:32 +00:00
Treehugger Robot
68527d510f Merge changes Iecf7edd6,Iaca5cf23,I01d57919 am: 8a0dd0265b am: 87feed1f91
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901600

Change-Id: I0803ea9255c69323337fd4503ce7f7df7fc4fc8a
2021-11-25 12:55:24 +00:00
Pedro Loureiro
882970a63b Perform validation of shared library attributes am: c362142438 am: 4b495f1a5c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901599

Change-Id: If71dc840cdf1dc6733c81dce0f3f9707ae0dab69
2021-11-25 12:55:23 +00:00
Pedro Loureiro
043f50930d Add support for new permissions library tag attributes am: 9956e5e281 am: 913ab0d8cd
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901598

Change-Id: Ib6426a78cbf6df4c2caa07742b2ca6750ba17918
2021-11-25 12:55:22 +00:00
Treehugger Robot
87feed1f91 Merge changes Iecf7edd6,Iaca5cf23,I01d57919 am: 8a0dd0265b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901600

Change-Id: Ibcf03af1323e36afd04cf6443f3aac75612dbf0e
2021-11-25 12:38:36 +00:00
Pedro Loureiro
4b495f1a5c Perform validation of shared library attributes am: c362142438
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901599

Change-Id: I9af9c79cc0808854129c728ea21cd2bb117f5843
2021-11-25 12:38:35 +00:00
Pedro Loureiro
913ab0d8cd Add support for new permissions library tag attributes am: 9956e5e281
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901598

Change-Id: Ib126103022eae02d90f6f9f659a194dd437c13ec
2021-11-25 12:38:33 +00:00
Treehugger Robot
8a0dd0265b Merge changes Iecf7edd6,Iaca5cf23,I01d57919
* changes:
  Fix attribute names in generated permissions.xml
  Perform validation of shared library attributes
  Add support for new permissions library tag attributes
2021-11-25 12:22:37 +00:00
Cole Faust
ebab1172cc Merge "Change type of Unbundled_build_apps from bool to []string" am: b3a4ff4fa5 am: afb25de476 am: d33989cf01 am: 409ab59126
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901371

Change-Id: I413ebfc77801387731f3993b5453699d79041a88
2021-11-25 02:18:04 +00:00
Cole Faust
409ab59126 Merge "Change type of Unbundled_build_apps from bool to []string" am: b3a4ff4fa5 am: afb25de476 am: d33989cf01
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901371

Change-Id: Iba38ceb97d0e43d251c22f5e86360507c7e8183c
2021-11-25 02:00:26 +00:00
Cole Faust
d33989cf01 Merge "Change type of Unbundled_build_apps from bool to []string" am: b3a4ff4fa5 am: afb25de476
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901371

Change-Id: Ibd046bdad10b6f98ac76e3a41c67c2b63fe5f38a
2021-11-25 01:42:52 +00:00
Cole Faust
afb25de476 Merge "Change type of Unbundled_build_apps from bool to []string" am: b3a4ff4fa5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901371

Change-Id: I114bab43127ac09e49f8ad0b60d59543f862ce71
2021-11-25 01:27:02 +00:00
Cole Faust
b3a4ff4fa5 Merge "Change type of Unbundled_build_apps from bool to []string" 2021-11-25 01:06:53 +00:00
Treehugger Robot
e20c5ea6ba Merge "Rename rbc_product_config.sh to rbc_regression_test.sh" am: a5524e3272 am: 1c323016f7 am: bbe6dfd463 am: ed07b22f58
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901176

Change-Id: Ia718bc1d4d42acf3d636d1e8aecced45443e9ff9
2021-11-24 19:21:31 +00:00
Treehugger Robot
ed07b22f58 Merge "Rename rbc_product_config.sh to rbc_regression_test.sh" am: a5524e3272 am: 1c323016f7 am: bbe6dfd463
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901176

Change-Id: I9a4a92351f9518e04d381809b673b53d78248ef6
2021-11-24 19:03:23 +00:00
Treehugger Robot
bbe6dfd463 Merge "Rename rbc_product_config.sh to rbc_regression_test.sh" am: a5524e3272 am: 1c323016f7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901176

Change-Id: I236a5b941b8bc539e8c21028d5803303a5ba6505
2021-11-24 18:39:45 +00:00
Treehugger Robot
1c323016f7 Merge "Rename rbc_product_config.sh to rbc_regression_test.sh" am: a5524e3272
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901176

Change-Id: Ic2b52609f8d61b5adb99fbd338bb466223fdf0eb
2021-11-24 18:23:19 +00:00
Treehugger Robot
a5524e3272 Merge "Rename rbc_product_config.sh to rbc_regression_test.sh" 2021-11-24 18:03:09 +00:00
Pedro Loureiro
ba6682fabf Fix attribute names in generated permissions.xml
Previously it would write min_device_sdk whereas the correct name should
be min-device-sdk. This happened for all shared libs attributes.

Test: m nothing
Test: manually installed an apex with a shared lib and made sure PM used
the attributes as expected

Bug: 191978330

Change-Id: Iecf7edd6bae98c7af908d3f320f10ae4973d0396
Merged-In: Iecf7edd6bae98c7af908d3f320f10ae4973d0396
(cherry picked from commit bde653e5fd)
2021-11-24 17:09:20 +00:00
Pedro Loureiro
c362142438 Perform validation of shared library attributes
Perform consistency checks as per http://go/updatable-shared-libraries

These include:
  * no attribute can specified can be less than T
  * max-device-sdk can't be less than min-device-sdk
  * min and max-device-sdk need to be at least the module's
  min_sdk_version
  * using on-bootclasspath-before implies that the module's
  min_sdk_version is at least T or the library has min-device-sdk of at
  least T

Test: m nothing

Bug: 191978330

Change-Id: Iaca5cf23fb0bc7e65effb3529c8e829560894c2e
Merged-In: Iaca5cf23fb0bc7e65effb3529c8e829560894c2e
(cherry picked from commit f9e584dd20)
2021-11-24 17:09:19 +00:00
Pedro Loureiro
9956e5e281 Add support for new permissions library tag attributes
We are expanding PackageManager's supported attributes and this change
enables the developer to define them in the .bp file.

Test: m nothing

Bug: 191978330

Change-Id: I01d579190fb585662086a7fc456f3b33cb89fb57
Merged-In: I01d579190fb585662086a7fc456f3b33cb89fb57
(cherry picked from commit 826863c8e0)
2021-11-24 17:09:18 +00:00
Usta Shrestha
13c1d990ef Merge "Minor refactoring of Append/PrependProperties() methods Test: m nothing and compare ninja file Bug: n/a" am: 8c64fa9a8e am: 4bcee485b9 am: d2e2742b45 am: cd82dfe9eb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1900990

Change-Id: I04cc56c2e2f5ca118e4c798203b3a040bfa49709
2021-11-24 16:25:22 +00:00
Usta Shrestha
cd82dfe9eb Merge "Minor refactoring of Append/PrependProperties() methods Test: m nothing and compare ninja file Bug: n/a" am: 8c64fa9a8e am: 4bcee485b9 am: d2e2742b45
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1900990

Change-Id: I91ea68293420b701a1724f12177feaf10c2951b9
2021-11-24 16:07:07 +00:00
Usta Shrestha
d2e2742b45 Merge "Minor refactoring of Append/PrependProperties() methods Test: m nothing and compare ninja file Bug: n/a" am: 8c64fa9a8e am: 4bcee485b9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1900990

Change-Id: I123f20be4ce736e2fe06b7f4ad9220e791b3e4a6
2021-11-24 15:48:34 +00:00
Usta Shrestha
4bcee485b9 Merge "Minor refactoring of Append/PrependProperties() methods Test: m nothing and compare ninja file Bug: n/a" am: 8c64fa9a8e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1900990

Change-Id: Ic5ba24324a5e5e9993a1f560b88cdc4e89d170f4
2021-11-24 15:31:43 +00:00
Usta Shrestha
8c64fa9a8e Merge "Minor refactoring of Append/PrependProperties() methods Test: m nothing and compare ninja file Bug: n/a" 2021-11-24 15:18:37 +00:00
Jingwen Chen
6fe8e20e24 Add a mutex for soong config var map writes. am: 4ad40d99b0 am: efb5654552 am: 1b91d4be89 am: c1b6478f5e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901432

Change-Id: I4ac9b492e29d49daad31942ddab946ef1cf6027b
2021-11-24 13:09:41 +00:00
Jingwen Chen
c1b6478f5e Add a mutex for soong config var map writes. am: 4ad40d99b0 am: efb5654552 am: 1b91d4be89
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901432

Change-Id: I2c1ed764c35a2ca3d962408ce785ad3225d501f0
2021-11-24 12:56:00 +00:00
Jingwen Chen
1b91d4be89 Add a mutex for soong config var map writes. am: 4ad40d99b0 am: efb5654552
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901432

Change-Id: I97d78c6f562b28003a9953b84bd89b4a404c98c6
2021-11-24 12:45:33 +00:00
Jingwen Chen
efb5654552 Add a mutex for soong config var map writes. am: 4ad40d99b0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901432

Change-Id: I80083220c1e06854c98b1a5aa96cddd944b5b181
2021-11-24 12:28:15 +00:00
Jingwen Chen
4ad40d99b0 Add a mutex for soong config var map writes.
Fixes: 207572723
Test: CI
Change-Id: Ide4ca9961b8615186c3ab703c461b6ef53ef656e
2021-11-24 03:42:35 +00:00
Martin Stjernholm
93f5a8d1a7 Don't pass ":=" in variable name to AndroidMkEntries.SetString. am: ae44fd8032 am: 7263046919 am: 471116c036 am: 3514941226
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1900777

Change-Id: I4f5bd0b59f06a2dee68fd6e7b25a34081a902e75
2021-11-24 03:39:52 +00:00
Martin Stjernholm
3514941226 Don't pass ":=" in variable name to AndroidMkEntries.SetString. am: ae44fd8032 am: 7263046919 am: 471116c036
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1900777

Change-Id: Ia9305a4a9746c8fa33e5e7e472f339a2bbfa5b13
2021-11-24 03:15:30 +00:00
Cole Faust
701ca2545e Change type of Unbundled_build_apps from bool to []string
Unbundled_build_apps is supposed to be a list of apps to
build as unbundled, not just a simple boolean. Change it
to properly reflect what it is, because the starlark
product configuration relies on soong's interpretation
of variables types.

Bug: 201700692
Test: Presubmits
Change-Id: I85d40d58fe519f9f6e5a382b8f3ec9014f990aa1
2021-11-23 19:06:01 -08:00
Martin Stjernholm
471116c036 Don't pass ":=" in variable name to AndroidMkEntries.SetString. am: ae44fd8032 am: 7263046919
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1900777

Change-Id: If398fd25ce0465e13af6d31d84579c162a3078e4
2021-11-24 03:05:22 +00:00
Martin Stjernholm
7263046919 Don't pass ":=" in variable name to AndroidMkEntries.SetString. am: ae44fd8032
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1900777

Change-Id: I0f13bd89411e62a874d10f20f7b970d5f63edd23
2021-11-24 02:44:21 +00:00
Cole Faust
fbfd40073d Rename rbc_product_config.sh to rbc_regression_test.sh
Test: Presubmits
Change-Id: I3423b9cc44d972646d89952a310a47147548ddc4
2021-11-23 16:57:16 -08:00
Martin Stjernholm
ae44fd8032 Don't pass ":=" in variable name to AndroidMkEntries.SetString.
Fixes typos in https://r.android.com/1897972.

Test: m SOONG_CONFIG_art_module_source_build=false nothing
Bug: 204136549
Change-Id: I768c21bc99bfb4978fcf7f4f3631eef866e76764
2021-11-23 23:17:33 +00:00
Treehugger Robot
7cc3bc2dc6 Merge "Account for "validations:"" am: b5f81d2a6a am: 3996eb1a77 am: d1e248c441 am: cf715e6327
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901170

Change-Id: I475390064e65637300d6982ab4411cae488596c6
2021-11-23 23:13:22 +00:00
Treehugger Robot
cf715e6327 Merge "Account for "validations:"" am: b5f81d2a6a am: 3996eb1a77 am: d1e248c441
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901170

Change-Id: Ib57f50172e27e751e953e42ed4300e954a606e03
2021-11-23 22:54:08 +00:00