Commit graph

83954 commits

Author SHA1 Message Date
Cole Faust
4b2bb5e9ab
Cleanup configurable getter usages
You don't have to call module.ConfigurableEvaluator(ctx) if ctx is
already a ModuleContext, you only need to do that for more restricted
contexts like SingletonContext.

Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I7612290d43dae7decfae283a341882d9016c98a3
2024-10-24 19:41:23 +02:00
Aleks Todorov
24a3d377d8
cc: Enable select syntax for cppflags
Bug: 325444956
Test: m
Test: m [custom build target with select in cppflags]
Change-Id: I7d27096526ce5b37afe447f900613a6fbb639986
2024-10-24 19:41:23 +02:00
Inseob Kim
a79bbf3bdb
Make vbmeta Partitions property configurable
This allows using select statements.

Bug: 354824866
Test: boot
Change-Id: I6cb41177620f85697eeaa77d3aec79f21674e245
2024-10-24 19:41:23 +02:00
Nelson Li
4427aab6e3
Enable select syntax support for phony_deps in phony_rule
Previously, `phony_deps` in `phony_rule` was a simple []string type, so
the select syntax was not supported. This change modifies it to a
Configurable[[]string] type to enable select syntax support.

Bug: 354850153
Test: Add select syntax in the Andorid.bp
Change-Id: Ibc5e5ee5d8fb9c19dc45d744a71b625fe94c9d88
2024-10-24 19:41:23 +02:00
Inseob Kim
10ec15d67c
Make more apex properties configurable
This allows using select statements with these.

* apps
* binaries
* prebuilts

Bug: 354824866
Test: m --no-skip-soong-tests
Change-Id: I8e28937d2fa6514b41bd189f56f9f584a60d2c80
2024-10-24 19:41:23 +02:00
Inseob Kim
989266aaff
Make genrule's srcs property configurable
This allows using select statements with it.

Bug: 354824866
Test: m
Change-Id: If1d71ac177618ad3eb628cdec57469886ee27c88
2024-10-24 19:41:23 +02:00
Inseob Kim
7889cf45fa
Make some apex properties configurable
This allows using select statements with these.

* androidManifest
* canned_fs_config
* systemserverclasspath_fragments

Bug: 354824866
Test: m
Change-Id: I4c2182944ec14d99332f437c39a19ba0dc6b7731
2024-10-24 19:41:23 +02:00
Inseob Kim
3cc3ca4d62
Make the vintf_fragments property configurable
This allows using select statements with it.

Bug: 354824866
Test: m
Change-Id: I9080c14b8342868d842670c65386582552b32d46
2024-10-24 19:41:23 +02:00
Inseob Kim
bbf681deaf
Make the defaults property configurable
This allows using select statements with it.

Bug: 354824866
Test: m
Change-Id: I673df0869a68c2e79b19c577d0ae1ff2249388db
2024-10-24 19:41:23 +02:00
Cole Faust
1d86a7f5e8
Add tests for configurable PostProcessors
Bug: 362579941
Test: m nothing --no-skip-soong-tests
Change-Id: Iaaff66844ebe0b2fb19148bd07562785b12cd7e9
2024-10-24 19:41:23 +02:00
Cole Faust
77b84c1f56
Add tests for selects with bindings
Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I43f10ce21d777e94839c695cb7ca8dcbb968d1c3
2024-10-24 19:41:23 +02:00
Cole Faust
2dc6a269f1
Update selects_test for selects with deferred expressions
Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I18257ff586fb31d4e0b012a249726a925832cdac
2024-10-24 19:41:23 +02:00
Cole Faust
4be39f9509
Allow soong config variables to be boolean-typed
So that you can use `true` instead of `"true"` in select expressions.

Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I950bd8e04f8fab5187ea5075514d476227943f33
2024-10-24 19:39:05 +02:00
Cole Faust
5b91c24c11
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-10-24 19:38:47 +02:00
Cosmin Tanislav
8b82c0d750
soong: paths: Fix out of tree $OUT
Change-Id: Ia915a7fcb95c76272fff6d350dc69abacb7b9e00
2024-10-24 19:38:44 +02:00
Quallenauge
878adb61bf
Add ability to enable scudo-free 32-bit libc variant.
The default value is set to enable scudo with the
32-bit libc variant.

Change-Id: I9205da12eceadfe6245763a49c7208d30b82ad99
2024-10-24 19:38:41 +02:00
Alessandro Astone
90d46b8e4b
soong: Add equivalent for LOCAL_EXPORT_CFLAGS
Change-Id: Ieb3e5739b50789bdbaf41a7d5adb04b08f7b9ea2
2024-10-24 19:38:37 +02:00
Bruno Martins
ba53cd2aba
check_boot_jars: Add oplus packages to whitelist
Change-Id: I8e467e35f148cfae9b2cc4ae32a26ffbca1984b5
2024-10-24 19:38:30 +02:00
Michael Bestas
cd0f7bbd34
check_boot_jars: Add IFAA Manager to whitelist
Fixes:
Error: out/target/common/obj/JAVA_LIBRARIES/org.ifaa.android.manager_intermediates/classes.jar
  contains class file org/ifaa/android/manager/IFAAManager.class,
  whose package name org.ifaa.android.manager is not in the whitelist
  build/make/core/tasks/check_boot_jars/package_whitelist.txt
  of packages allowed on the bootclasspath.

(The error only pops up when using "make dist")

Change-Id: Ib17b935ca39de7f6e8e6b68aa81fbebe1d5a30a5
2024-10-24 19:38:10 +02:00
Scott Lobdell
9d618bc55f
Add qcom.fmradio and org.codeaurora.internal to allowlist
B58: Add org.codeaurora.ims to the list.

Bug: 192690464
Change-Id: I0837873f5bf4e3a8402d70e720d2b55ee4e0a991
(cherry picked from commit ef25c8777180f88650dad8bd2499e8c8c9d174b7)
2024-10-24 19:38:10 +02:00
daniml3
d44bc5b281
sandbox_linux: set CCACHE_DIR as a writable path
Fixes "Read-only file system" error when using ccache.

NOTE: This is only required when both ccache exec and dir are on the
same partition.

Change-Id: I99afe644c8ee0e0b881c1643fef0cb31b83bcd17
2024-10-24 19:38:10 +02:00
dianlujitao
243b54c46e
Add Init_rc to Product_variables.Eng
Change-Id: If490b64f3631ec0825ffa28964a3e65572a9bcb8
2024-10-24 19:38:10 +02:00
LuK1337
d00a3c6c93
Add exported-to-kati namespaces to root namespace
This lets us use boot jar modules that are hidden behind
soong_namespace.

Change-Id: If0068387efdeca5458b5b97ce6b993b10a268bd2
2024-10-24 19:38:10 +02:00
Chirayu Desai
d0ee341157
Replace {device,qti}_kernel_headers only when building inline
Change-Id: Ibbae77a92f5f96da92213d0a0078867ddeeeaf04
2024-10-24 19:38:10 +02:00
Nolen Johnson
87f74a3d2b
Replace qti_kernel_headers with generated_kernel_headers
* Further avoids edits in CAF repos.

Change-Id: I99f9773e3132de7816c921c9d6b09e3e62b68265
2024-10-24 19:38:10 +02:00
Chirayu Desai
17e9e9c0be
Replace device_kernel_headers with generated_kernel_headers
* For inline kernel building
* Avoids having to make edits to multiple repos, even
  if it's a quick replacement

Change-Id: I01d4a9b3e24315731efbc8d16882818d20e38e89
2024-10-24 19:38:10 +02:00
Jan Altensen
f5c73b4700
soong: allow overriding header files
Includes:

  Author: Jan Altensen <info@stricted.net>
  Date:   Sat Aug 7 19:41:59 2021 +0200

    soong: move header override to compiler.go

     * library.go only covers libraries

    Change-Id: I3374999d6b364dd1bbc2060996964ee7b04493e7

Change-Id: Ia9d2210605c5927b529fbe9485b0e5abd079f487
2024-10-24 19:38:10 +02:00
Sam Mortimer
34e34e8c1d
soong: Add PathForSourceRelaxed
Used by vendor/lineage generated kernel header module.

Partial pick from:
Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Fri Aug 17 11:25:08 2018 -0700
    soong: Add java sources overlay support
    Change-Id: I94143febb0a8afa6a165364d36a40d5120a4e7bc

Change-Id: I415af71458f2a7be8e256cb3c548994f09c5bebf
2024-10-24 19:38:10 +02:00
LuK1337
277672eab4
cleanbuild: Add install to installclean files
Change-Id: Ib46d9638a2b3648d5e2ade1dfa864bc4e2ae695c
2024-10-24 19:37:55 +02:00
Jarl-Penguin
7e2044fa35
cleanbuild: Add recovery_kernel to installclean files
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I89b7093be92cb22a223033f9a7269624f7293c35
2024-10-24 19:37:52 +02:00
Julian Veit
a7671f2808
cleanbuild: add *.zip.sha256sum to installclean_files
Change-Id: I91f92349423eeb99e7e4521f6239baabe8b1314c
2024-10-24 19:37:47 +02:00
HeroBuxx
fee41a1895
soong: ui: dumpvar: Apparently PRODUCT_SOONG_NAMESPACES is necessary
Bring back PRODUCT_SOONG_NAMESPACES after this change:
3690485a16

Change-Id: I1efa7620d79eb9c330f0f028a91e10d2a9ce49e8
Signed-off-by: HeroBuxx <me@herobuxx.me>
2024-10-24 19:37:38 +02:00
Rashed Abdel-Tawab
c4ec0f2daa
soong: Add TEQUILA_VERSION to dumpvars
Change-Id: I24b29442f041aec451a173db404f542060ac67d2
2024-10-24 19:36:20 +02:00
Michael Bestas
a118060197 Source tequila specific envsetup
Change-Id: I39d3e711a6beab47e3284919a9a4fef15b0f40b9
2024-09-07 20:41:09 +00:00
Android Build Coastguard Worker
3fe78dc9b3 Merge cherrypicks of ['android-review.googlesource.com/3197217', 'android-review.googlesource.com/3203370'] into 24Q3-release.
Change-Id: Ida44fe5e0a853ea8cea1578c548f8d93ced9bce4
2024-08-06 22:35:41 +00:00
Spandan Das
56866c5c6d Hide unflagged mainline prebuilts with missing source.
Partner worksapces contain two versions of mainline prebuilts - BigAndroid
and Go. These two prebuilts export dexpreopt'd system server artifacts
to be installed in system image. Since the install paths are same, we
run into duplicate installation rules issue unless one of them is
hidden.

This hiding was previously done by creating a dependendency between
source aosp apex to BA and Go google prebuilts. However, this
implementaion had the unfortunate side effect on the packaging name of
the Google mainline prebuilts - the name becomes the aosp apex name.

Instead of creating the dependency to aosp apex, this CL hides all
mainline apex_set(s) if it has not been flagged using
RELEASE_APEX_CONTRIBUTIONS_*. Since there are some non mainline apex
prebuilts, apex_name will be used to determine whether the prebuilt is a
mainline module.

Test: m nothing --no-skip-soong-tests
Test: In partner workspaces, downloaded the CLs in b/355682304#comment7
Test: m out/target/product/generic/obj/PACKAGING/system_intermediates/file_list.txt
verified that aosp apexes are not installed, but mainline prebuilts are
installed

Test: unset RELEASE_APEX_CONTRIBUTIONS_ADSERVICES to build from source
Test: m out/target/product/generic/obj/PACKAGING/system_intermediates/file_list.txt
verified that aosp adservices is installed, and adservices prebuilt is
**not* installed.

Bug: 355682304
(cherry picked from https://android-review.googlesource.com/q/commit:85bd4625edc95c6e030acf4b4289724ff39e1d6e)
Merged-In: Idacb65313553bdea5c0593976694de478034229e
Change-Id: Idacb65313553bdea5c0593976694de478034229e
2024-08-06 22:35:28 +00:00
Spandan Das
d53fcc06ce Do not rename prebuilt apexes for product packaging
https://r.android.com/2901309 added support for handling installation
rules for multiple prebuilts. One of the implementation details there
was to change LOCAL_MODULE name to the source apex name in the generated
.mk files.

This causes issues in partner builds where the google singed apex
com.google.android.foo gets renamed to com.android.foo in
out/soong/Android-$PRODUCT.mk. If the partner builds does not include
the aosp apex in its PRODUCT_PACAKGES, then the google signed apex gets
elided from packaging.

This CL undoes that change. After this CL, the name of the module as it
appears in Android.bp will match the LOCAL_MODULE name emitted for
product packaging.

Test: in build/soong, go test ./apex
Bug: 355682304
(cherry picked from https://android-review.googlesource.com/q/commit:a8e2d6173d0d83ead3e481124311ab59deced404)
Merged-In: Icadbb75609174cff5326f52baf7d53e901f9f1c0
Change-Id: Icadbb75609174cff5326f52baf7d53e901f9f1c0
2024-08-06 22:35:13 +00:00
Android Build Coastguard Worker
af2b96ca93 Merge cherrypicks of ['googleplex-android-review.googlesource.com/28537601'] into 24Q3-release.
Change-Id: Icbb9a5208c5a090d0a7eff6533eff8987d216e9c
2024-07-30 00:02:44 +00:00
Inseob Kim
7c099a6b58 Fix DISPLAY_BUILD_NUMBER
The dot was accidentally removed.

Bug: 353425495
Test: build
(cherry picked from commit 51d3a6d2d3f85ac2014f3988a1f1975fe1a1a497)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e4fa1844b15d5eeecd2417477741d9b845c74b7e)
Merged-In: Id0c08f3c98d5b2f56e49180baf98bb8847f6bebd
Change-Id: Id0c08f3c98d5b2f56e49180baf98bb8847f6bebd
2024-07-29 23:55:37 +00:00
Android Build Coastguard Worker
2f3897006d Merge cherrypicks of ['android-review.googlesource.com/3162997', 'android-review.googlesource.com/3163726'] into 24Q3-release.
Change-Id: I25eadd3b472bdd43ee9c2727f99d5f05f0d1ae68
2024-07-12 04:02:57 +00:00
Roopesh Nataraja
d34337948f Add oryon to arm64 cpu variants
Bug: 350058746
Test: builds
(cherry picked from https://android-review.googlesource.com/q/commit:826912e7d4c743c2700016b40145342e6127a370)
Merged-In: I717e035165a7529629061cbfcb076b168dc031d6
Change-Id: I717e035165a7529629061cbfcb076b168dc031d6
2024-07-12 03:44:11 +00:00
Colin Cross
f1cc40e272 Relax cflag checks for -Xclang and -target*
Allow flags in cflags that start with "-target".

Allow "-Xclang <arg>" in cflags.

Bug: 350058746
Test: builds
Flag: EXEMPT bugfix
(cherry picked from https://android-review.googlesource.com/q/commit:7c4a40a2f611e049f15e69f59df9f6ec7aaf4565)
Merged-In: I1bf64268047949d747f53d8b111fc26298aee958
Change-Id: I1bf64268047949d747f53d8b111fc26298aee958
2024-07-12 03:43:55 +00:00
Android Build Coastguard Worker
f3a42c8e08 Merge cherrypicks of ['android-review.googlesource.com/3160716'] into 24Q3-release.
Change-Id: I3d1fe188748cfdb8fae067e6eb9ec5cd64cb88f5
2024-07-10 05:23:33 +00:00
Alyssa Ketpreechasawat
02774e8a88 Add option to override defaultManifestVersion for app.
Add an option to override defaultManifestVersion using environment
variable. With this environment variable, the mainline developer will be able to locally customize the app version to higher version and install it to target devices. This is also helpful as a workaround to adjust app/apex version for coverage build (e.g. 3520 to 3500) and allow the installation of app/apex from mainline release branch (e.g. 3508) onto it. This functionality already existed for apex, so we are extending to the app.

Test: 347735412
Bug: 350986287
Bug: 347735412
Test: OVERRIDE_APEX_MANIFEST_DEFAULT_VERSION=990090000 m
Test: adb shell pm list packages --show-versioncode
(cherry picked from https://android-review.googlesource.com/q/commit:ee8b44e72a3c875b983ca4f57d65fae906d949ab)
Merged-In: I58259fe781ca121ba4067f308f1744d80c1c2d48
Change-Id: I58259fe781ca121ba4067f308f1744d80c1c2d48
2024-07-10 05:08:42 +00:00
Android Build Coastguard Worker
84ee079586 Merge cherrypicks of ['android-review.googlesource.com/3132469'] into 24Q3-release.
Change-Id: I04fa6f597cc1a6ed1623d52691f95c7d98ed7491
2024-06-21 03:35:48 +00:00
Maciej Żenczykowski
256fb00278 Revert "Enable -Wfortify-source"
This reverts commit ca5e3eb407.

Reason for revert: falcon and seahawk build failures on git_main.
(cherry picked from https://android-review.googlesource.com/q/commit:32e35e416ecc8c297ed761bcd1e6cdcc96a76ac6)
Merged-In: Ib48e33dbb1649641223013739bb85934342a067a
Change-Id: Ib48e33dbb1649641223013739bb85934342a067a
2024-06-21 03:17:55 +00:00
Android Build Coastguard Worker
7e76719028 Snap for 11976889 from 89234715c4 to 24Q3-release
Change-Id: I17ddaf0e0f688a878959c2ff8f4e1581d92407f8
2024-06-16 23:36:33 +00:00
Aditya Kumar
89234715c4 Enable -Wfortify-source am: ca5e3eb407 am: 2ac2966a57
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3107458

Change-Id: Ie07d8a9bdfcb91ea8e9879096677eb516439d009
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-16 19:12:17 +00:00
Aditya Kumar
2ac2966a57 Enable -Wfortify-source am: ca5e3eb407
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3107458

Change-Id: I6477f33004ec494666cd948b33f04587c69fe788
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-16 19:03:48 +00:00
Android Build Coastguard Worker
94287ec7ee Snap for 11975806 from be0f95b374 to 24Q3-release
Change-Id: I9e762f31971c4bf692a091c1d7b0f36e55725cd5
2024-06-15 21:00:26 +00:00