summaryrefslogtreecommitdiff
path: root/android/variable.go
AgeCommit message (Collapse)Author
2024-10-07Merge "Add product variable SelinuxIgnoreNeverallows for sepolicy" into main ↵ Kelly Hung
am: 60cf21903a am: dde753e202 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3196491 Change-Id: I6ab12003cc68f40798ce40a5e7dbb3f14d117d65 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-07Merge "Add product variable SelinuxIgnoreNeverallows for sepolicy" into main Kelly Hung
2024-10-03Add new module type for adb_keys. Wei Li
Bug: 371107666 Change-Id: Ibaee842f807bc829ca615d5754851e03a4aa5548 Test: CIs
2024-10-03Merge "Handle RELEASE_PLATFORM_SDK_MINOR_VERSION" into main Treehugger Robot
2024-10-02Added EXTRA_ALLOWED_DEPS_TXT to allow arbitrary allowedlist text files that ↵ Nouby Mohamed
enforces min_sdk_version for apex dependencies to avoid regression Ignore-AOSP-First: changes chain includes sdv related changes Test: Ran APEX soong tests and manual test Bug: 333868045 Change-Id: I7b0c7f32687d922dde41150f947c1b993998338f
2024-10-01Merge "Export partition-related variables to soong" into main Zi Wang
2024-09-26Export partition-related variables to soong mrziwang
Add related fields in soong to receive these variables Test: CI and manually checked new variables info is in soong output Bug: 368365523 Bug: 368364861 Change-Id: Ib151da44456e4a28d95ad56c252614328c2aca46
2024-09-25Remove checkPartitionsForJavaDependency() Jihoon Kang
The check adds restriction on inter-partition dependencies. This is now a no-op given that the container enforcement serves the same purpose. Also, the error guides the user to depend on java_sdk_library for inter-partition dependency, while depending on java_sdk_library directly is now restricted. Test: m nothing Bug: 308827369 Change-Id: I29f88b7b61e3d98d047e185e8757b9ffcf09582e
2024-09-12Handle RELEASE_PLATFORM_SDK_MINOR_VERSION Mårten Kongstad
Teach Soong about the new RELEASE_PLATFORM_SDK_MINOR_VERSION build flag which is used to set the minor Android API level. Bug: 350458259 Test: m Ignore-AOSP-First: internal to keep in sync with related CLs that are not AOSP first Change-Id: I1f715ed9eeeb98ac526299ae5bc1be5b44b7ef19
2024-09-11Soong system image may update the $PRODUCT_OUT Justin Yun
A target must define "USE_SOONG_DEFINED_SYSTEM_IMAGE := true" and "PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE := <name of soong system image>" to use the soong defined system image. The system image must install the files to $PRODUCT_OUT for adb sync and build verification. Instead of using 'update_product_out' property in Android.bp, copy the files only if the name of the image matches with PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE. Bug: 350599535 Bug: 365700376 Test: lunch aosp_x86_64-trunk_staging-userdebug && m && m aosp_cf_system_x86_64 Test: lunch aosp_cf_x86_64_phone_soong_system-trunk_staging-userdebug && m and adb sync on the cf device Change-Id: If8673ba2855a753a5559a588bd83068d950fd7e4
2024-09-11Merge "Support apk for product_variables.debuggable" into main Jim Tang
2024-09-10Support apk for product_variables.debuggable Jim Tang
Bug: 365707065 Test: m FactoryOtaPrebuilt Change-Id: I880b9d48b52d49cbf8c1eca6a67d3ffadc8ea0fc
2024-09-09Remove BUILD_BROKEN_USES_SOONG_PYTHON2_MODULES Cole Faust
It's been available for over a year, lets progress the python3 migration by removing it. Bug: 203436762 Test: Presubmits Change-Id: I46a6477ec65e98b7e6df5cc1359f676dcbd0f08e
2024-09-06Merge "Revert "Revert "Support BUILD_FRAMEWORK_COMPATIBILITY_MATRIX for..."" ↵ Treehugger Robot
into main
2024-09-05Revert "Revert "Support BUILD_FRAMEWORK_COMPATIBILITY_MATRIX for..." Bill Yang
Revert submission 3235656-revert-3195743-compatibility_matrix-KLJOLWYIMW Reason for revert: The root cause of the break is already be merged. Related changes: ag/29139095, ag/29139608 Reverted changes: /q/submissionid:3235656-revert-3195743-compatibility_matrix-KLJOLWYIMW Change-Id: Ie23bdd343bebbd077553dc25f0bfd13539daf57a
2024-08-28Merge "Include TARGET_ODM_PROP to odm/etc/build.prop" into main Inseob Kim
2024-08-27Merge "Revert "Support BUILD_FRAMEWORK_COMPATIBILITY_MATRIX for soong"" into ↵ Pindar Yang
main
2024-08-27Revert "Support BUILD_FRAMEWORK_COMPATIBILITY_MATRIX for soong" Pindar Yang
Revert submission 3195743-compatibility_matrix Reason for revert: Build Break, Bug: 361227456 Reverted changes: /q/submissionid:3195743-compatibility_matrix Change-Id: Ib89cdc64eb816ca0df872473b1e9a9dfdb08ceee
2024-08-26Include TARGET_ODM_PROP to odm/etc/build.prop Inseob Kim
It's missing in Soong's build_prop module. Bug: 322090587 Bug: 361623560 Test: set TARGET_ODM_PROP and see odm/etc/build.prop Change-Id: I447a64998f6ae0ba80201ab4ab6c0fd0ef22e3e5
2024-08-22Merge "Add "TARGET_BOARD_PLATFORM" into ProductVariables" into main Treehugger Robot
2024-08-22Add "TARGET_BOARD_PLATFORM" into ProductVariables Herbert Xue
Bug: 360872208 Bug: 348120216 Test: aosp_cf_x86_64_phone-trunk_staging-eng && m hosttar Change-Id: I79917b10245b982c466afde0570d9da0395232b3
2024-08-19Variables uses vintf_fragment_modules Kiyoung Kim
Product variable cannot be resolved when vintf_fragments are translated into vintf_fragment modules, because product variables are being handled after the translation phase. This change updates variables to use vintf_fragment_modules instead of vintf_fragments so it can be handled without resolving depenency between two mutators. Bug: 322089980 Test: aosp cf build succeeded Change-Id: I224ddb05bd86e24ae220af616b5a89accd043dd2
2024-08-15Merge "Support BUILD_FRAMEWORK_COMPATIBILITY_MATRIX for soong" into main Treehugger Robot
2024-08-08Build product/odm build.prop with Soong Inseob Kim
Bug: 322090587 Test: compare build.prop before and after, boot Change-Id: I7a7dc785030a0c17e5c09b7f65c978fe9bbcb7a7
2024-08-05Add system_ext support to build_prop module Inseob Kim
As some partitions have build.prop under etc/, this change adds relative_install_path property to build_prop module. Also this change adds system_ext related Soong variables and system_ext support in gen_build_prop.py. Bug: 322090587 Test: build and compare system_ext/etc/build.prop Change-Id: I416662b8bae09383af0cdd3d8444a5c300006b7b
2024-08-02Support BUILD_FRAMEWORK_COMPATIBILITY_MATRIX for soong yangbill
For building framework_compatibility_matrix.device.xml it will use matrix file path from DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE, and for product_compatibility_matrix.xml it will use matrix file path from DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE. This CL import those value from make to soong and will be used in hardware/interfaces/compatibility_matrices/. Also add vintf.vintfCompatibilityMatrixRule to the white list for using custom make rule. Bug: 352234038 Bug: 344445679 Test: m product_compatibility_matrix.xml Change-Id: Ib7042ee2d771bd47a12f0565014b4006da678ddb
2024-07-31Revert^2 "Conditionally pass kernel version to build.prop" Inseob Kim
This reverts commit 29fed1efe85cc07bb4311513e4acc1da73dfb298. Reason for revert: Fixed breakage with aosp/3200730, verified with ABTD Change-Id: I207abd188636673250eb9a070be95db0b82f39e7
2024-07-31Revert^6 "Add TARGET_SYSTEM_PROP to system build.prop" Inseob Kim
530c32acbee136ff3475192335cc7594589de096 Change-Id: I9dc817855e3db7b96320a977b24b84d72e762893
2024-07-31Revert^5 "Add TARGET_SYSTEM_PROP to system build.prop" Liana Kazanova
26756a86c13ea36cc12fa6983a75fef1797b4fd9 Change-Id: Iad186b283ea78477c33bfc4519b9a27395557b55
2024-07-30Merge "Revert "Conditionally pass kernel version to build.prop"" into main Liana Kazanova
2024-07-30Revert "Conditionally pass kernel version to build.prop" Liana Kazanova
This reverts commit 036d9e6744f312afde1f4eb68f38747df27cf5f8. Reason for revert: DroidMonitor: Potential culprit for b/356297315 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Change-Id: I58f1e43978eb812004d2e46fa7ce402e164d2800
2024-07-30Merge changes from topic ↵ Inseob Kim
"revert-3195812-revert-3195644-revert-3195637-revert-3184480-system_build_prop_soong-BZIDUTEOOC-KRUETCBWUR-TUHZPHUVFJ-XYILSUPUOA" into main * changes: Conditionally pass kernel version to build.prop Revert^4 "Use Soong-built system/build.prop" Revert^4 "Sync gen_build_prop.py to sysprop.mk" Revert^4 "Add TARGET_SYSTEM_PROP to system build.prop" Revert^2 "Set output for build_prop even on Soong only build"
2024-07-29Add product variable SelinuxIgnoreNeverallows for sepolicy kellyhung
Bug: 350881031 Test: Presubmits Change-Id: Ide2eaf95ec33686f785fc197a4cf8a75c666bd8a
2024-07-25Merge "Add ABFS (Android Build Filesystem) configuration option to Soong" ↵ Taylor Santiago
into main
2024-07-25Conditionally pass kernel version to build.prop Inseob Kim
This is to replicate Makefile's behavior as-is. Bug: 322090587 Test: build and compare build command Change-Id: Ib9ebec920701ea561a007bf2a1ae092ae1b4ff28
2024-07-25Revert^4 "Add TARGET_SYSTEM_PROP to system build.prop" Inseob Kim
072c0e4fcb3f9952e0d0dda7d56a595bca55dfcb Change-Id: I53a36f415a9bd472170f030f115039e623769acf
2024-07-25Revert^3 "Add TARGET_SYSTEM_PROP to system build.prop" Pechetty Sravani (xWF)
ff506d1af2624a7a77d9f9b3875d030398d733a8 Change-Id: I5659e93d4c45fdca20357b4fc61f936cfd0e748d
2024-07-25Revert^2 "Add TARGET_SYSTEM_PROP to system build.prop" Inseob Kim
027f50246f782de9c4b8cd22f88d736d8ab8cf79 Change-Id: I3e2e8d90029f897f1dbf76a829518cb7fe4a47b1
2024-07-25Merge changes from topic "revert-3184480-system_build_prop_soong-BZIDUTEOOC" ↵ Inseob Kim
into main * changes: Revert "Add TARGET_SYSTEM_PROP to system build.prop" Revert "Sync gen_build_prop.py to sysprop.mk" Revert "Use Soong-built system/build.prop"
2024-07-25Revert "Add TARGET_SYSTEM_PROP to system build.prop" Inseob Kim
Revert submission 3184480-system_build_prop_soong Reason for revert: breaks ndk and mainline build Reverted changes: /q/submissionid:3184480-system_build_prop_soong Change-Id: Ic089dc3dfcbf2083d1bcf2413be432dcb61ce525
2024-07-25Merge changes from topic "system_build_prop_soong" into main Inseob Kim
* changes: Use Soong-built system/build.prop Sync gen_build_prop.py to sysprop.mk Add TARGET_SYSTEM_PROP to system build.prop
2024-07-24Add TARGET_SYSTEM_PROP to system build.prop Inseob Kim
System partition's build_prop output now contains TARGET_SYSTEM_PROP. Soong needs to know paths to add them to ninja build dependency graph. Bug: 322090587 Test: build and compare both build.prop files Change-Id: Ide73e876d28eda0cced2ec08bd3c680115025ad8
2024-07-23Remove VSDK related code from build Kiyoung Kim
Remove leftover VSDK related code from build, as they are no longer in use. Bug: 332986564 Test: AOSP CF build succeeded Change-Id: I7dcec66ddf6ee9a563ac09a3fa8a282c9e00258a
2024-07-19Merge "Add 'use_debug_art' to product_variable" into main Treehugger Robot
2024-07-18Add 'use_debug_art' to product_variable Kiyoung Kim
Add 'use_debug_art' property to product_variable so it can be checked from Android.bp whether ART debug APEX or ART APEX should be used. Bug: 351698657 Test: AOSP CF eng build succeeded Test: AOSP CF userdebug build succeeded Change-Id: I01cd80f0d899c55828ecb05fdafdc9bb05fd8200
2024-07-17Add ABFS (Android Build Filesystem) configuration option to Soong Taylor Santiago
Change-Id: Ibbe81004adc67b1212d7e619a35f7425bfee0d72
2024-07-16Support more variables for "debuggable". Herbert Xue
Enhance bp feature to support "product_variables.debuggable.exclude_static_libs" and "product_variables.debuggable.jni_libs". Bug: 325857852 Test: lunch akita-trunk_staging-userdebug && m ConnectivityMonitor Change-Id: Iae843af2d41ec7754812a0b89a7ebc791c58e099
2024-07-04Define otacerts_zip module in soong Justin Yun
To move the otacerts module from make to soong, define a new module type otacerts_zip module. This module collects key files from PRODUCT_DEFAULT_DEV_CERTIFICATE and PRODUCT_EXTRA_OTA_KEYS (PRODUCT_EXTRA_RECOVERY_KEYS for recovery) to install the zipped file in etc. otacerts_zip module is available to recovery to install the otacerts.zip file in the recovery partition. Bug: 335364209 Test: Define "PRODUCT_DEFAULT_DEV_CERTIFICATE := \ build/make/target/product/security/testkey" and m aosp_cf_system_x86_64 Change-Id: Ib5b671e9caef0403c6d9d69bfab29be248d7086c
2024-06-20Allow soong config variables to be boolean-typed Cole Faust
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-06-19Merge "Add build_prop soong module" into main Inseob Kim