summaryrefslogtreecommitdiff
path: root/android/variable.go
AgeCommit message (Collapse)Author
2024-06-19Add build_prop soong module Inseob Kim
build_prop is a soong module generating {partition}/build.prop. It's ported from build/make/core/sysprop.mk and will replace sysprop.mk in the future. Currently used only by Android.bp cuttlefish system image. Bug: 322090587 Bug: 346214958 Test: compare system/build.prop and aosp_cf_x86_64_system-build.prop for eng / user / userdebug Change-Id: Iad76139fe86ec4f582218c185aa15baeacaa38dc
2024-06-06Merge "Drop IncludeTags" into main am: 211fdd6618 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3098657 Change-Id: I7bbd91db4f4309f8a8c0e558bf901a351ed20c24 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06Merge "Drop IncludeTags" into main Treehugger Robot
2024-06-05Merge "Shipping_api_level in build." into main am: c562e50fe5 Steven Moreland
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3112267 Change-Id: Ieae74f8a9f904cbdffd05ccc88bce407a25b703a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05Merge "Shipping_api_level in build." into main Steven Moreland
2024-06-04Shipping_api_level in build. Steven Moreland
Add shipping API level to build, so that we can move certain tests to build time. Bug: 340953047 Test: works in init for build time host checks Change-Id: Ic89066c2b49089da3113a1afef1d39de53b307d9
2024-06-04VNDK is fully deprecated from Soong Kiyoung Kim
VNDK is fully deprecated, so KeepVndk variable will have fixed value. This change removes KeepVndk config value, and updates any logic using the value as VNDK is always deprecated. Bug: 330100430 Test: Soong tests passed Ignore-AOSP-First: Resolve merge conflict Change-Id: I98b7590c059883e06bf3fb236d88966de64991d7 Merged-In: I98b7590c059883e06bf3fb236d88966de64991d7
2024-05-27Allow `required` property be conditional for release_aidl_use_unfrozen yangbill
Bug: 342336921 Test: cd build/soong/android ; go test -run TestProductVariables Test: add product_variables.release_aidl_use_unfrozen.required to the phony module. Change-Id: I9b934a8fb6245b9b6fd0f2db1e67d5e2876490b2
2024-05-27Merge "Remove VndkUseCoreVariant related code from build" into main Kiyoung Kim
2024-05-24Let Release_aidl_use_unfrozen add vintf_fragments Devin Moore
The product_config variable can be used to add different vintf_fragments. Ignore-AOSP-First: this is required for vFRC finalization and needs to be submitted ASAP. This can be cherry-picked to aosp after finalization. Test: launch_cvd && atest hal_implementation_test Test: lunch `next` && atest vts_treble_vintf_framework_test Bug: 279809333 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b93c1a74cf89caef950c63d64b93f2ccfefcbce8) Merged-In: Ied17ad4c4564a5d97f93001734fba7cc6648bbc2 Change-Id: Ied17ad4c4564a5d97f93001734fba7cc6648bbc2
2024-05-24Remove VndkUseCoreVariant related code from build Kiyoung Kim
VndkUseCoreVariant feature is deprecated along with VNDK. This change removes related code from Soong. Bug: 330100430 Test: AOSP CF build succeeded Change-Id: Ie182c9e4dc9cf0a4fe9d5fddf5b36754ddb53d18
2024-05-22Drop IncludeTags Spandan Das
This was previously used in conjunction with blueprint_package_includes to prune Android.bp files from soong analysis. Test: m nothing Bug: 308188212 Change-Id: Ie82e20eec63bd0be70e1cf0290c70f62d5621c76
2024-05-21Export release flag types to make/soong Cole Faust
And use the types to appropriately type selects on the release variables. Bug: 323382414 Test: Presubmits Change-Id: Ide7eca95662caaa7b4be42e20399d9fcd7fed35f
2024-05-07Merge "Make the enabled property configurable" into main Cole Faust
2024-05-02Make the enabled property configurable Cole Faust
This allows using select statements with it. Bug: 323382414 Test: m nothing --no-skip-soong-tests Change-Id: I6f3efaaa3d82505e38a91ee4ba0e18e404360191 Merged-In: If355d24506e3f117d27b21442a6c02bca3402dc7
2024-04-24Replace Malloc_not_svelte with Malloc_low_memory. Christopher Ferris
The Malloc_not_svelte variable name is confusing and makes the low memory config the default. Change this so that the default is the regular allocator, and that Malloc_low_memory is used to enable the low memory allocator. Test: Verified scudo config is used by default. Test: Verfified Android GO config uses the jemalloc low memory config. Change-Id: I02ee2bd304c8367152108caee08dd27d91838659
2024-04-22Merge "Remove more unused code" into main Colin Cross
2024-04-16Update soong to use flag for min supported sdk Linus Tufvesson
Test: Build and flash Test: adb shell getprop ro.build.version.min_supported_target_sdk Bug: 297603927 Change-Id: I5123c58c8397ae44f163c2c2ee557dce9b0437c1
2024-04-12Remove more unused code Colin Cross
Bug: 315353489 Test: builds Change-Id: I34cf772ba3c927bbbc141afb149cf0501ca6351f
2024-04-12Let `deps` property be conditional on debuggability Jiyong Park
This allows us to add dependencies only for debuggable builds. Bug: N/A Test: add product_variables.debuggable.deps to the android_system_image module. Change-Id: Id90646fff8a8a91c5e768418b9881e93228ec2a5
2024-04-04Merge "Convert BuildIgnoreApexContritbutions variable to a boolean" into main Spandan Das
2024-04-03Convert BuildIgnoreApexContritbutions variable to a boolean Spandan Das
(This relands aosp/3007754. The previous sdk build failures have been resolved now) The ignore list is burdensome to maintain once we start adding the module sdk contents to apex_contributions. Convert the variable to a boolean. When set to true, all contents in `apex_contributions` will be ignored Bug: 308187268 Test: m nothing on aosp,google and google_fullmte devices Merged-In: Ibdd1e0d0d4f08f4f5251b9c4baa1aaf42e7df34f (cherry picked from commit f3df7305d653471c70d131177e773b4723247e3a) Change-Id: I9d57d899c6a9a321e2eb3579c954641f2cb04709
2024-04-01Remove PlatformVndkVersion property Kiyoung Kim
Platform VNDK version is no longer available based on VNDK deprecation. Remove all code using Platform VNDK version. Bug: 330100430 Test: AOSP CF build succeeded Change-Id: I7d0f7e23eff5d153346890f242a94b78bad6736b
2024-03-27Reland "Migrate buildinfo.sh script into Soong" Inseob Kim
To build system.img in Soong, we need all artifacts including build.prop. This fully migrates buildinfo.prop file into Soong as a first step to build build.prop on Soong. This fixes an error caused by an incorrect path to build thumbprint file. Bug: 322090587 Test: compare build.prop before and after Test: build multiple times and see build.prop isn't rebuilt Change-Id: Id4fa830009538856c30825ff47268b11fa6cb5d6
2024-03-26Revert "Migrate buildinfo.sh script into Soong" Gina Ko
Revert submission 3004875-buildinfo_prop_soong Reason for revert: DroidMonitor-triggered revert due to breakage b/331462869 Reverted changes: /q/submissionid:3004875-buildinfo_prop_soong Bug: 331462869 Change-Id: Ib8bbbad29a4ad7b800e6bd1a67a401c2225b78cb
2024-03-26Migrate buildinfo.sh script into Soong Inseob Kim
To build system.img in Soong, we need all artifacts including build.prop. This fully migrates buildinfo.prop file into Soong as a first step to build build.prop on Soong. Bug: 322090587 Test: compare build.prop before and after Test: build multiple times and see build.prop isn't rebuilt Change-Id: Icaa7e1fdab2a8c169ac00949d3aaf6c8212a1872
2024-03-22Revert "Convert BuildIgnoreApexContritbutions variable to a boolean" Android Culprit Assistant
This revert was created by Android Culprit Assistant. The culprit was identified in the following culprit search session (http://go/aca-get/53721efb-c49e-4ce8-b96c-fd03598b4202). Change-Id: I197b03b650bc6c22ff3c5eb9605522fd9650e98f
2024-03-21Convert BuildIgnoreApexContritbutions variable to a boolean Spandan Das
The ignore list is burdensome to maintain once we start adding the module sdk contents to apex_contributions. Convert the variable to a boolean. When set to true, all contents in `apex_contributions` will be ignored Bug: 308187268 Test: m nothing on aosp,google and google_fullmte devices Ignore-AOSP-first: CL topic does a cleanup of an internal only denylist Change-Id: Ibdd1e0d0d4f08f4f5251b9c4baa1aaf42e7df34f Merged-In: Ibdd1e0d0d4f08f4f5251b9c4baa1aaf42e7df34f (cherry picked from commit f3df7305d653471c70d131177e773b4723247e3a)
2024-03-07Validate aconfig libs are built with the correct modes. Yu Liu
Bug: 323071835 Test: Unit tests and manual tests. Change-Id: I32de90826c7c8bb4d8495608e959d554820ab9a2
2024-02-22Convert the build flag RELEASE_EXPORT_RUNTIME_APIS to a product variable Jihoon Kang
RELEASE_EXPORT_RUNTIME_APIS build flag is currently used to modify the filter condition for the "exportable" stubs, so that it exposes wider set of flagged apis (ENABLED && READ_ONLY vs ENABLED || READ_WRITE). This flag was originally introduced as a build flag to be enabled in specific release configurations, but instead this is used as a product variable that will be enabled in the product `sdk_with_runtime_apis`, which will be introduced in a future change. Test: m nothing --no-skip-soong-tests Bug: 326312949 Change-Id: Ieb3cee517dd6cedcca844a9eab270aedf8199d4e
2024-02-22Introduce product variable PRODUCT_HIDDEN_API_EXPORTABLE_STUBS Jihoon Kang
The new product variable behaves identical to the build flag RELEASE_HIDDEN_API_EXPORTABLE_STUBS: if the variable is set to true, the hiddenapi flags are generated from the "exportable" stubs (i.e. the stubs that does not include READ_WRITE permission or DISABLE state flagged apis) instead of the "everything" stubs (i.e. the stubs that includes all flagged apis regardless of the state of the flags). If the variable is set to false, the stubs are generated from the "everything" stubs. This product variable will be utilized for `sdk_with_runtime_apis` product in the future changes. Test: m nothing Bug: 326310637 Change-Id: I8872d0b0617eb0f25da32611837ad823c77b0df7
2024-02-20Merge "Revert "Revert "Create a product variable for skipping apex cont..."" ↵ Spandan Das
into main
2024-02-17Revert "Revert "Create a product variable for skipping apex cont..." Spandan Das
Revert submission 2966055-revert-2964509-skip-apex-contributions-EOKWOFHENC Reason for revert: The root cause CL has been reverted https://googleplex-android-review.git.corp.google.com/c/platform/vendor/google/build/+/26268799 Reverted changes: /q/submissionid:2966055-revert-2964509-skip-apex-contributions-EOKWOFHENC Change-Id: I93e8f60124a09b4fba4675ac7f128ab553102bf7
2024-02-17Merge "Revert "Create a product variable for skipping apex contribution..."" ↵ Treehugger Robot
into main
2024-02-16Revert "Create a product variable for skipping apex contribution..." Jihoon Kang
Revert submission 2964509-skip-apex-contributions Reason for revert: 325666427 Reverted changes: /q/submissionid:2964509-skip-apex-contributions Change-Id: I510e81c8e06803dc014c9f04c3e357065aa19ce5
2024-02-15Merge "Create a product variable for skipping apex contribution contents" ↵ Spandan Das
into main
2024-02-15Create a product variable for skipping apex contribution contents Spandan Das
This denylist will be used to ignore the prebuilt google apexes listed in apex_contributions of vendor/google/build when building aosp products in next. Test: go build ./android Bug: 308187268 Change-Id: Ib2c018a2aeda5578cf3f1a6a56253bf84850ba5f Merged-In: Ib2c018a2aeda5578cf3f1a6a56253bf84850ba5f
2024-02-13Revert^2 "Remove unused ToTSepolicyVersion" Inseob Kim
a1448e072e00f6b3e6bfa2ffcd544996db48cd30 Change-Id: I728d0633718669fb57877e7440dedf49ab980a00
2024-02-08Revert "Remove unused ToTSepolicyVersion" Ikjoon Jang
Revert submission 2952245-vfrc_as_tot_sepolicy Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_main&target=mainline_modules_arm64-mainline-userdebug&lkgb=11421838&lkbb=11421957&fkbb=11421841, b/324335916 Reverted changes: /q/submissionid:2952245-vfrc_as_tot_sepolicy Bug: 324335916 Change-Id: I803ccc4c2d1e96f9e36b9d91eebc3e18e50b238f
2024-01-29Remove unused ToTSepolicyVersion Inseob Kim
Bug: 314010177 Test: build and boot Change-Id: I31ff0135d71bc3a38a8ca057c27ae32f41997b2d
2024-01-17Merge "Allow to change static_libs for variant" into main Treehugger Robot
2024-01-16Allow to change static_libs for variant Florian Mayer
This will be used to have different static_libs if we build with scudo. Bug: 309446525 Change-Id: I5f755dd768975a1dff403bffa92cd5dbc3b9f573
2024-01-16Remove HideFlaggedApi() related logic and the related product variables Jihoon Kang
With the recent build changes to support generating mainlin module sdk with flagged apis, the build no longer depends on the values of these product variables in exposing the flagged apis, but these are determined by the aconfig flags. Given that these variables are no longer used, this change removes these variables and the variables dependent code. Test: m nothing --no-skip-soong-tests Bug: 320515715 Change-Id: I6af94da73cc7fc7ffce670928aad81cec5d383b4
2024-01-04Revert^2 "Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK" Jiyong Park
fbf1b5e7f1caffdae4340f20802be5702e043c3b Change-Id: I2b6c7866eac24b217197d5f659b37b2ae6b4207d
2024-01-04Revert "Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK" Sebastian Pickl
Revert submission 2897682-dont_limit_systemsdk Reason for revert: blocking revert for 318695834 Bug:318695834 Reverted changes: /q/submissionid:2897682-dont_limit_systemsdk Change-Id: I4cf7268cba21c7b81b406c91240bb98190fa4ebc
2024-01-04Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK Jiyong Park
https://android-review.git.corp.google.com/q/topic:limit_systemsdk introduced a new check for preventing the use of system SDKs above 34 from Java modules in the vendor partition. As this may break some unprepared targets, introduce BUILD_BROKEN_DONT_CHECK_SYSTEMSDK as a temporary escape hatch. This flag will be deleted eventually. Bug: 314011075 Test: Add BUILD_BROKEN_DONT_CHECK_SYSTEMSDK := true to BoardConfig.mk Change-Id: Id7901f85c221bc03fa1c15ef15dbec14b783a79a
2023-12-08Remove infrastructure to run bp2build Colin Cross
Bug: 315353489 Test: m blueprint_tests Change-Id: Idcf6377d389b94c39e4e6ff4b8efa8a9f9e78b17
2023-12-0516k: soong: Update DevicePageSizeAgnostic to DeviceNoBionicPageSizeMacro Vilas Bhat
This is part of a larger change to update the flag PRODUCT_PAGE_SIZE_AGNOSTIC to PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO. This is to help clarify that this flag doesn't mean the device will actually work end-to-end with any page size. Bug: 312541564 Test: ``` source build/envsetup.sh lunch aosp_cf_arm64_phone_pgagnostic-trunk-userdebug m cat out/soong/build.aosp_cf_arm64_phone_pgagnostic.ninja | grep __BIONIC_NO_PAGE_SIZE_MACRO ``` Change-Id: I33033876d0d4a276d1bb962d40315b71a3968c66
2023-12-05Merge "Define __ANDROID_VENDOR_API__" into main Treehugger Robot
2023-12-04Add accessor function for bool product variables. Joe Onorato
Test: treehugger Change-Id: If6a59ba140d28696d1411ee5b5fcfc4fc0e97926