summaryrefslogtreecommitdiff
path: root/android/variable.go
AgeCommit message (Collapse)Author
2023-11-30Define __ANDROID_VENDOR_API__ Justin Yun
cc modules can use __ANDROID_VENDOR_API__ to read BOARD_API_LEVEL that is the API level of the vendor surface. Bug: 313822931 Test: check ninja commands to have -D__ANDROID_VENDOR_API__=<version> Change-Id: Iceb5918cbfce0f24929d02d7e3caf1e9942b88e8
2023-11-24Deprecate BOARD_BUILD_GKI_BOOT_IMAGE_WITHOUT_RAMDISK Yi-Yo Chiang
These variables are no longer used. We don't build GKI in the platform tree anymore. Remove these vars as we are not maintaining these. Bug: 229701033 Test: presubmit Change-Id: I7551aa37a049f3bc9252559a18feb0f6bdf0a548
2023-11-17Revert^2 "Modify conditionals for BuildFromTextStub()" Jihoon Kang
This change modifies config.BuildFromTextStub() to return false when deviceConfig.BuildFromSourceStub() is set to true. This change resubmits https://r.android.com/2832580. Test: m nothing Bug: 311203379 Change-Id: I832364c3c42556e2b3aede2316e8927fd7163e91
2023-11-08Export build flags to soong. Inseob Kim
This exports a map of build flags used in this release config to Soong. Bug: 302514918 Test: manual Change-Id: Id95c03e14cfbb91c0cb9c8c37a065b8387733317
2023-10-18Add bazel-built modules as deps on the system image Cole Faust
These bazel-built modules will be installed into the system image as part of the bazel rule, rather than going through the make staging directory. Bug: 297269187 Test: m bazel_sandwich Change-Id: I96c6e58f8e0898b2ad92cb7069745ca2059a39f8
2023-10-13Handle the case where the release value set is a list. Yu Liu
Bug: 304814040 Test: CI, unit test, b build build/make/tools/aconfig:aconfig.test.cpp b test build/make/tools/aconfig:AconfigJavaHostTest Change-Id: I9ca939348a063c39e9528f24e788f9757458d30c
2023-10-06Merge "Revert "Revert "Disable hiddenapi check for building from ↵ Alyssa Ketpreechasawat
prebuilts.""" into main
2023-10-06Revert "Revert "Disable hiddenapi check for building from prebuilts."" Alyssa Ketpreechasawat
This reverts commit bb6b813b1de26306e1deb3b3d8842af41f4b5847. Reason for revert: resubmit Change-Id: I0ded78ed1a355654fa142351b95cd51f48c2186e
2023-10-06Merge "Revert "Disable hiddenapi check for building from prebuilts."" into main Alyssa Ketpreechasawat
2023-10-06Revert "Disable hiddenapi check for building from prebuilts." Alyssa Ketpreechasawat
Revert submission 2761821-suppress-hiddenapi-check Reason for revert: have some typo - break next build Reverted changes: /q/submissionid:2761821-suppress-hiddenapi-check Change-Id: I9fce1e1a9389d58928f1eec50c0eaf016f5f63ac
2023-10-05Merge "Disable hiddenapi check for building from prebuilts." into main Alyssa Ketpreechasawat
2023-10-04Merge "Generate product variants by default" into main Justin Yun
2023-10-03Merge changes from topic "expose_flagged_api_revert" into main Jihoon Kang
* changes: Revert^2 "Add flagged api hide conditional to droidstubs" Revert^2 "Add soong config variable Release_expose_flagged_api"
2023-10-03Revert^2 "Add soong config variable Release_expose_flagged_api" Jihoon Kang
This reverts commit 5548bf305368571c40461a818f24f26cbe2de533. Test: m nothing Bug: 299570421 Change-Id: I9f70648fb6657bbf4f5681cd6d40517d70a8fefb
2023-09-28Merge "AVB and selinux support in partitions" into main Cole Faust
2023-09-28Revert "Add soong config variable Release_expose_flagged_api" Maxim Siniavine
Revert submission 2755310 Reason for revert: Broken build b/302407753 Reverted changes: /q/submissionid:2755310 Change-Id: Ib5c01033882500296989a7c4476a723d95292aab
2023-09-27AVB and selinux support in partitions Cole Faust
Bug: 297269187 Test: m bazel_sandwich (updated partition_inspector to show selinux contexts, but still haven't figured out how to show avb information) Change-Id: I6911c2fc75495f9722887925d8609c9a171901c6
2023-09-27Generate product variants by default Justin Yun
PRODUCT_PRODUCT_VNDK_VERSION is set to 'current' by default. Now, we can generate product variants without checking the PRODUCT_PRODUCT_VNDK_VERSION build variable. Remove reading the PRODUCT_PRODUCT_VNDK_VERSION variable from soong and generate product variants by default. Bug: 302255959 Test: m Change-Id: I9a9b2076f4367c5ce9a393bbb206f8dee3884bd8
2023-09-26Add soong config variable Release_expose_flagged_api Jihoon Kang
The variable is a release config variable which will be used to determine whether if the api marked @FlaggedApi is exposed or not. Test: m nothing Bug: 299570421 Change-Id: I5647608065543cf5059836f6d6e8906a23145541
2023-09-25Import make variable NextReleaseHideFlaggedApi to Soong Jihoon Kang
This change imports NextReleaseHideFlaggedApi exported from soong_config Test: m nothing Bug: 299570421 Change-Id: I410596a39d2ba9ad353c5cf48bd38b1e843633b2
2023-09-25Disable hiddenapi check for building from prebuilts. Alyssa Ketpreechasawat
Add ReleaseDefaultModuleBuildFromSource to config.productVariables and use this parameter to disable hiddenapi check. Test: DEFAULT_MODULE_BUILD_FROM_SOURCE=false m (not failing hiddenapi check after disabling) Bug: 301871981 Change-Id: I86b3f3bc21d546022a503a1c6a8a641d4e785565
2023-09-22Emit a system image target for the current product Cole Faust
This system image can be built with bazel instead of make. Bug: 297269187 Test: m bazel_sandwich Change-Id: I5fd61a28f664d8310435c3b7e5dbdd89a7ec6159
2023-09-20Merge "Don't panic for unhandled product vars" into main Liz Kammer
2023-09-19Don't panic for unhandled product vars Liz Kammer
Instead, we return an error. This allows us to access some product variable information earlier when it will not be used as an attribute without panicing Test: m nothing Change-Id: Id094b2b9e1364a8d174d99b3824fa149fb235b3e
2023-09-19Move the android_platform next to it's entrypoint product config file Cole Faust
Because we're going to start generating partition images for the product, and the partitions will eventually be checked in, we want them to be in sensible locations. And the platform should be there as well so all the targets for a product are co-located. Bug: 297269187 Test: m nothing && b build --config=android //build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal Change-Id: Iaa25c44aa00295ada279d5fd49b5498bbafb89d5
2023-09-15Merge "Support aconfig_declarations, aconfig_values and aconfig_value_set" ↵ Yu Liu
into main
2023-09-09Support aconfig_declarations, aconfig_values and aconfig_value_set Yu Liu
Bug: 297356603 Test: Unit tests Change-Id: I2f797578a35322440db0f281b4d46b6652512e00
2023-09-08Allow actions to read BUILD_BROKEN_INCORRECT_PARTITION_IMAGES Cole Faust
To maintain good backwards compatibility with the legacy partition building behavior, allow actions to read BUILD_BROKEN_INCORRECT_PARTITION_IMAGES so that we don't have to rerun analysis. Bug: 205632228 Test: Presubmits Change-Id: I2b55c0143cbdaf010e6b5fd0c3d51d6930a94eff
2023-09-06Merge "soong: HWASan exclude path support" into main Treehugger Robot
2023-08-31Remove code about mixed sepolicy build Inseob Kim
There is no one actively using mixed sepolicy build, and it made sepolicy codes too complicated. As we are deprecating mixed build, removing such code for cleanup. Bug: 298305798 Test: boot cuttlefish Change-Id: Icb5071eb1378f8ed83568e4445d7b4d33e29bc46
2023-08-25Use board api level for seapp coredomain check Inseob Kim
Rather than PRODUCT_SHIPPING_API_LEVEL, use board api level (BOARD_API_LEVEL or BOARD_SHIPPING_API_LEVEL) to determine whether we check coredomain violations or not. Also provides a Makefile variable to override the flag, for targets that want to turn on the check optionally. Bug: 280547417 Test: see build command of vendor_seapp_contexts Change-Id: Ic7c4a53d0df0cccd45eb699e236a92c8c0bc2d56
2023-08-23Revert "Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN" Inseob Kim
Revert submission 2715179-BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN Reason for revert: not needed Reverted changes: /q/submissionid:2715179-BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN Change-Id: I3bc8f2006b2f82159ae308467ea74ad62a60ec6f
2023-08-22soong: HWASan exclude path support Tomislav Novak
Adds the ability to centrally disable HWASan for multiple modules when building with SANITIZE_TARGET=hwaddress. Soong version of the patchset. HWASan takes precedence over CFI and several other sanitizers that it's incompatible with[1], which can be problematic for modules that require those sanitizers (e.g. those that depend on vendor prebuilts where only sanitized variants are provided). This patch adds an easy way to disable HWASan for such modules while still keeping it globally enabled. Test: build with HWASAN_EXCLUDE_PATHS set and verify with readelf that relevant modules have no references to __hwasan symbols [1] https://android.googlesource.com/platform/build/+/bb31ca1168df6326d6f8eee7a834a974aafed6ed/core/config_sanitizers.mk#236 Change-Id: I5824f71f2a400c64cde29e2c7afdd167d851d337
2023-08-18Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN Inseob Kim
Starting from Android V, vendor seapp_contexts files can't assign coredomain to vendor apps, as it's Treble violation. This build broken variable is to suppress the enforcement for devices launching with U or prior. Bug: 280547417 Test: set BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN := true and build Change-Id: Ic4b5309f0d9bab9b93e88988d1a5a942b2de220a
2023-08-15Bp2build product variables on non-arch-variant module types Cole Faust
Mostly so that genrules can have their command qualified on a product variable. Bug: 295910468 Test: m nothing Change-Id: I28cc18a1b3b00368f4768a1326259a656ce970ec
2023-08-14Merge "Support default-permission in aconfig_declarations" into main Zhi Dou
2023-08-11Merge "soong: Add product variable DevicePageSizeAgnostic" into main Juan Yescas
2023-08-10Support default-permission in aconfig_declarations Zhi Dou
Aconfig provides new argument, default-permission, for create-cache. When buld aconfig_declarations, aconfig_declarations will read the value from release configuration to pass this value to aconfig. Bug: 294417368 Test: presubmit Change-Id: Id55dab1d757e2366a62449c73e2497cc958c5e78
2023-08-10Remove pdk product variable Cole Faust
It has no effect. Test: Presubmits Change-Id: Ia15cd99ce083294a119203c416046e43d20bf87f
2023-08-09soong: Add product variable DevicePageSizeAgnostic Juan Yescas
The product variable DevicePageSizeAgnostic will determine whether AOSP is kernel page size agnostic or not. Test: source build/envsetup.sh lunch aosp_cf_arm64_phone_pgagnostic m cat out/soong/build.aosp_cf_arm64_phone_pgagnostic.ninja | grep __BIONIC_NO_PAGE_SIZE_MACRO Bug: 289419664 Change-Id: I33a1a4f1967d7e78432b7b8d90357d16b2002dcc
2023-08-03Make bp2build-generated selects() based on product config build settings Cole Faust
...instead of based on constraint settings. Bug: 269577299 Test: m nothing and ./build/bazel/ci/bp2build.sh Change-Id: Ib9caec79c92b8fd304e46be841de5612bd1637e3
2023-07-28Merge changes Ie292173d,I23f14f83 into main Spandan Das
* changes: Panic if soongConfig and productConfig values do not match Check if soong_config_var propertystruct is zero before panicking
2023-07-28Panic if soongConfig and productConfig values do not match Spandan Das
Merging is not supported yet, but we do not need to panic if both of them have the same value. Test: m nothing Change-Id: Ie292173d549347164f0d8ad2c04963b97eefe4df
2023-07-27Check if soong_config_var propertystruct is zero before panicking Spandan Das
If we have a soong_config_module_type with target.android_<arch>.* properties, we should only panic if a soong_config_var is used to select on those properties. We already call `IsZero` in an upper function, but we need to call it in `AddSoongConfigPropertiesFromTargetStruct` as well because conditions_default gets its own struct. Test: unit tests Test: repro'd cmd in b/293206386#comment1, it passes now Bug: 293206386 Change-Id: I23f14f83cc9be66487625e292e26b204dfea4f9a
2023-07-26Merge "Add new Release_aidl_use_unfrozen soong variable" into main Devin Moore
2023-07-2416k: soong: Add flag Device_page_size_agnostic Juan Yescas
The flag Device_page_size_agnostic will determine whether AOSP is kernel page size agnostic or not. Test: source build/envsetup.sh lunch aosp_raven_64-userdebug m -j$(nproc) cat out/soong/build.aosp_raven_64.ninja | grep TARGET_PAGE_SIZE_AGNOSTIC Bug: 289419664 Change-Id: I0604db64a3b44db63f93773be003cdd44e0a867b
2023-07-21Add new Release_aidl_use_unfrozen soong variable Devin Moore
this comes from a trunk stable build flag `RELEASE_AIDL_USE_UNFROZEN` and is used by the AIDL compiler when creating build rules for the generated AIDL libraries. Test: m Bug: 290265210 Change-Id: I94445c870ac908474e62db0b3172b64d53680852
2023-07-19Merge "Install VNDK libraries into vendor or product lib with flag" into main Treehugger Robot
2023-07-18Install VNDK libraries into vendor or product lib with flag Kiyoung Kim
Install VNDK libraries into vendor or product lib when flag 'KEEP_VNDK' is set as false from build. This flag will be used to test while deprecating VNDK step by step. Bug: 290157355 Test: build succeded with DEPRECATE_VNDK succeded Test: Cuttlefish boot succeded with sepolicy disabled Change-Id: I05b166f054113ae2775df4e310916d0ea4af3fb6
2023-07-17Platform mapping-based product config Cole Faust
This allows us to set product variables as build settings instead of loading them from a target's provider, which further allows us to read product config variables in transitions. Bug: 287539062 Bug: 269577299 Test: Presubmits Change-Id: I8497703f706162572ceb3486240e1eb02a37f5f6