Commit Graph

86084 Commits

Author SHA1 Message Date
Luca Stefani
73a17f04e0 Add support for kotlin plugins
Use the already existing hooks used by the compose
compiler plugin to support kotlin plugins bundled
alongside the compiler such as kotlin-serialize-compiler

Test: m, sample app with kotlin-serialize-compiler
Change-Id: I4d5fa6cd42acfc90ef437222e9e07f61c259d565
2025-02-11 22:49:22 +08:00
Quallenauge
3f71bc7084 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
2025-02-11 22:44:05 +08:00
Ido Ben-Hur
027b01d48d androidmk_denylist: Allow make files in packages 2025-02-11 22:38:48 +08:00
Cole Faust
151d0aa950 Make include_dirs and local_include_dirs configurable
Requested by a user.

Fixes: 377540448
Test: m nothing --no-skip-soong-tests
Change-Id: I59e49c68e1d47ee0914677714cedcddf624903e6
2025-02-11 22:38:24 +08:00
beanstown106
0754262ae7 soong: Show only Build ID in "Build number" section
(Former Change-Id: Ibf29628c622cab05597a5ca8cfd265534d303f8c)
Change-Id: I3e4f83d7ca5f0ac3b2036c5ef363c09ad565fcd1
Signed-off-by: Hridaya Prajapati <hridaya@pixelos.net>
2025-02-11 22:38:24 +08:00
Ido Ben-Hur
107888e09e soong: Hardcode release-keys instead of dev-keys
- We sign inline.

Change-Id: Idfac2f3a48973a3068da48f04724d5fa4ee5e934
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-02-11 22:38:07 +08:00
Michael Bestas
83146225c1 Make soong-shared public
Test: m
Change-Id: I2e25b115c863434ed7f167a4333e30423801682a
2025-02-11 22:37:27 +08:00
Michael Bestas
742736d955 Conditionally use Unix epoch time for build incremental
Incremental version is used in various places to invalidate caches.
Setting BUILD_NUMBER directly causes unnecessary rebuilds due to
environment variable changes, so simply set it to Unix epoch unless
BUILD_NUMBER is explicitly set.

Change-Id: Id590df48ae1b73b63039f185644103d66a4bbbb3
2025-02-11 22:37:11 +08:00
SkyMinus
6743f96dcb gen_build_prop: Set ro.minus.device
Change-Id: I485d74642b869d7ac94ef2fd171cafd759965d41
(cherry picked from commit 03a92d7ad592feb7069859ab7a860ac0fb0f94a3)
2025-02-11 22:35:39 +08:00
Michael Bestas
8768f3afc1 gen_build_prop: Set ro.minui.default_touch_rotation
Change-Id: I18745292fadb8a8ff37d94e5603256997a3c1036
2025-02-11 22:32:44 +08:00
Michael Bestas
8bc24ce26b gen_build_prop: Set ro.build.fingerprint
Change-Id: I0e40b6f8154f8bc9a7b8450ecb4af4c44ab3d46d
2025-02-11 22:32:35 +08:00
Alessandro Astone
4f1e88fab3 soong: Add equivalent for LOCAL_EXPORT_CFLAGS
Change-Id: Ieb3e5739b50789bdbaf41a7d5adb04b08f7b9ea2
2025-02-11 22:24:00 +08:00
LuK1337
d70492f14f check_boot_jars: Add nvidia packages to whitelist
Change-Id: I9958189f8baec057f65da692dd060682726125b4
2025-02-11 22:23:36 +08:00
Michael Bestas
35c53b6639 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
2025-02-11 22:23:36 +08:00
Scott Lobdell
cff7f54fef 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)
2025-02-11 22:23:36 +08:00
daniml3
4ac1f093dc 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
2025-02-11 22:23:36 +08:00
dianlujitao
04f9d80501 Add Init_rc to Product_variables.Eng
Change-Id: If490b64f3631ec0825ffa28964a3e65572a9bcb8
2025-02-11 22:23:36 +08:00
LuK1337
8199595dde Add exported-to-kati namespaces to root namespace
This lets us use boot jar modules that are hidden behind
soong_namespace.

Change-Id: If0068387efdeca5458b5b97ce6b993b10a268bd2
2025-02-11 22:23:36 +08:00
Chirayu Desai
48b430bd89 Replace {device,qti}_kernel_headers only when building inline
Change-Id: Ibbae77a92f5f96da92213d0a0078867ddeeeaf04
2025-02-11 22:23:36 +08:00
Nolen Johnson
63e0915641 Replace qti_kernel_headers with generated_kernel_headers
* Further avoids edits in CAF repos.

Change-Id: I99f9773e3132de7816c921c9d6b09e3e62b68265
2025-02-11 22:23:36 +08:00
Chirayu Desai
ef7a3f0e01 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
2025-02-11 22:23:36 +08:00
Jan Altensen
0d114a5953 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
2025-02-11 22:23:10 +08:00
Sam Mortimer
3d0211f4fa 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
2025-02-11 22:16:19 +08:00
LuK1337
0e4dd53982 cleanbuild: Add install to installclean files
Change-Id: Ib46d9638a2b3648d5e2ade1dfa864bc4e2ae695c
2025-02-11 22:15:15 +08:00
Jarl-Penguin
1db2b2cc5f cleanbuild: Add recovery_kernel to installclean files
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I89b7093be92cb22a223033f9a7269624f7293c35
2025-02-11 22:15:15 +08:00
Julian Veit
4428f9922b cleanbuild: add *.zip.sha256sum to installclean_files
Change-Id: I91f92349423eeb99e7e4521f6239baabe8b1314c
2025-02-11 22:14:43 +08:00
HeroBuxx
e27da47beb 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>
2025-02-11 22:14:31 +08:00
Nolen Johnson
fe9d40342b Add dumpvars for GMS
* For most people and in most enviorments these will
  never pop up, but given we now support GMS variants
  and different build types we ought to tell the user
  which one is in use.

Change-Id: I7639f2e741d9b24e3719ef76d7d532c0155cd988
2025-02-11 22:14:17 +08:00
Abhisek Devkota
5567c50113 Add dumpvar for WITH_SU
-Allow folks to see easily if the term session they are in has
   WITH_SU set to true

Change-Id: Ib310d0016bb9eb16960f794720321b706b6fd8b0
2025-02-11 22:14:06 +08:00
SkyMinus
c5deb2da14 soong: Add MINUS_VERSION to dumpvars
Change-Id: I24b29442f041aec451a173db404f542060ac67d2
(cherry picked from commit 1c1460eb635df8f3627a2e9ff5dee044e4fed850)
2025-02-11 22:13:44 +08:00
SkyMinus
ee8bc3cc9a Source Minus specific envsetup
Change-Id: I39d3e711a6beab47e3284919a9a4fef15b0f40b9
(cherry picked from commit 58848569b57986b488cb105063c99d4d4b80f726)
2025-02-11 22:12:20 +08:00
Android Build Coastguard Worker
905305efab Merge cherrypicks of ['android-review.googlesource.com/3299976'] into 24Q4-release.
Change-Id: I809601a81b9c232f42bcc4292211212daeb002c2
2024-10-30 00:20:34 +00:00
Evgenii Stepanov
39fe1946c2 Revert^3 "Use -target-feature for MTE"
This reverts commit 0feac37f1f.

Reason for revert: reapplied to early
(cherry picked from https://android-review.googlesource.com/q/commit:159860c848a709cac23ec7d448c6dfa6bfd8781b)
Merged-In: I43bf9e11ad021dbad82f6d82163a97a3856e032d
Change-Id: I43bf9e11ad021dbad82f6d82163a97a3856e032d
2024-10-30 00:19:35 +00:00
Android Build Coastguard Worker
4678471bc2 Merge cherrypicks of ['android-review.googlesource.com/3290274'] into 24Q4-release.
Change-Id: Ib1d35c7f7910404a07e106fcb4f9dd169de47ca5
2024-10-11 01:03:29 +00:00
LaMont Jones
2895eed928 Enforce exclusive release config component directories
Enforce this requirement for delivery to aosp:
- "A release config shall exist in at most one of build/release and
  vendor/google_shared/build/release".

Bug: 349843674
Bug: 370829778
Bug: 371026851
Test: manual, TH
(cherry picked from https://android-review.googlesource.com/q/commit:639423daacc146457f10cf3d060bc2932dc903eb)
Merged-In: Ie4bc8137f2bd10f3b90efcffe8d2c8e317dcc2fc
Change-Id: Ie4bc8137f2bd10f3b90efcffe8d2c8e317dcc2fc
2024-10-11 00:57:09 +00:00
Android Build Coastguard Worker
3ff024c3a6 Merge cherrypicks of ['googleplex-android-review.googlesource.com/29581937'] into 24Q4-release.
Change-Id: I5b74b78edb91a6c4978f0d6a7cd930e738af21bf
2024-09-25 20:06:02 +00:00
Colin Cross
de7d7bcab2 Possible fix for stat error during globbing
Globs can fail when a directory is replaced with a file:
Error checking globs: stat foo: not a directory

Manually check for syscall.ENOTDIR, which is not covered by
fs.ErrNotExist.


Ignore-AOSP-First: "Landing internal first for critical ap4a move"
Bug: 369548825
Test: manual
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c3cd8e3f3c93773f0051608b94a0358554a95c98)
Merged-In: I35f65725b70fc0abb22aff46298d053d98d03b00
Change-Id: I35f65725b70fc0abb22aff46298d053d98d03b00
2024-09-25 20:05:15 +00:00
Android Build Coastguard Worker
cf886f91e4 Snap for 12406339 from 3961bb8fb2 to 24Q4-release
Change-Id: Icd8dd382b78f5e451a2a4bb1a5d59037d0e024bd
2024-09-24 17:33:42 +00:00
Spandan Das
3961bb8fb2 Merge "Remove prebuilt_apex_module_creator mutator" into main am: edefa90d42 am: faa827deee
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3277436

Change-Id: I7354bcbc135ac73577c4a35005e69c7507892fab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-24 02:56:09 +00:00
Spandan Das
faa827deee Merge "Remove prebuilt_apex_module_creator mutator" into main am: edefa90d42
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3277436

Change-Id: I5d3010798308436fcd90562e52c7003e9b2c78b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-24 02:10:06 +00:00
Spandan Das
edefa90d42 Merge "Remove prebuilt_apex_module_creator mutator" into main 2024-09-24 01:49:31 +00:00
Chan Wang
6dbdccea4a Merge "Temporarily bypass apex availability check for /product apexes with a specific prefix" into main am: 3a9a37cc78 am: 880aa466bf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3276271

Change-Id: I75a5c547cf1ce10dc099228539063da329797a69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-23 23:13:41 +00:00
Liana Kazanova
bffc676d4f [automerger skipped] Merge "Revert "pass read new storage parameter to java codegen"" into main am: 5c1283460c am: c561d6d1c3 -s ours
am skip reason: Merged-In Id12816206a16b17c23e3a53832d268f1600107b3 with SHA-1 9612480ee2 is already in history. Merged-In was found from reverted change.

Reverted change: https://android-review.googlesource.com/c/platform/build/soong/+/3276672

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

Change-Id: I4e94d8288acb4b4ad3ad40fa014e603473fa7d8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-23 23:13:29 +00:00
Spandan Das
1b0fddb015 Remove the internal extractor module created by apex_set am: 9d6e209f44 am: 5994600572
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3273164

Change-Id: Iac682fe1a9026f4075929adfd895913f1c3c567d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-23 23:13:07 +00:00
Spandan Das
bfa06e3d07 Remove the internal selector module created by prebuilt_apex am: e350e36e7b am: 4ecc11b560
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3273030

Change-Id: I9402d5ea32a0c460f3c26b9ba2da9fb5dc388d7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-23 23:13:03 +00:00
Spandan Das
309a612c9f Remove prebuilt_apex_module_creator mutator
prebuilt apex modules no longer create internal modules, so this
mutator is not necessary.

Test: go build ./apex
Change-Id: I12c08b8f36efab8a9898341052b6f3cd26a0e803
2024-09-23 23:06:53 +00:00
Android Build Coastguard Worker
64e4b91000 Snap for 12404440 from 03369e7f44 to 24Q4-release
Change-Id: I94f3473d08dd1c93dbd794fa7471f988e01396c6
2024-09-23 23:01:23 +00:00
Chan Wang
880aa466bf Merge "Temporarily bypass apex availability check for /product apexes with a specific prefix" into main am: 3a9a37cc78
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3276271

Change-Id: I2dfd5c517d0f39e6af0485574b0ec4ae7b133320
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-23 22:57:36 +00:00
Chan Wang
3a9a37cc78 Merge "Temporarily bypass apex availability check for /product apexes with a specific prefix" into main 2024-09-23 22:56:01 +00:00
Liana Kazanova
c561d6d1c3 Merge "Revert "pass read new storage parameter to java codegen"" into main am: 5c1283460c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3277435

Change-Id: I80370e6a23874b25c0ba6aad1418d306d660b797
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-23 22:52:14 +00:00