summaryrefslogtreecommitdiff
path: root/android/variable.go
AgeCommit message (Collapse)Author
2021-07-23Split the x86 host toolchain into glibc and musl variants Colin Cross
Create new musl toolchains that are based on the existing glibc toolchains, and add the necessary flags for musl compiles. Bug: 190084016 Test: TestArchMutator Change-Id: Ifc02f9e5afa61ff758be98b0c962f3a4b53d0546
2021-07-23Merge "Remove Fuchsia support from Soong" am: b8d69871a8 am: be588a31d1 Colin Cross
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1774379 Change-Id: I9e0151ef36eb011f8c942469ca50eff0b781faf6
2021-07-22Rename UpdatableBootJars to ApexBootJars. satayev
Note that ART apex boot jars and core-icu4j are exceptions here as they are not part of ApexBootJars. ART apex boot jars are defined in their own variable, while core-icu4j is treated as a regular non-updatable boot jar. Bug: 191127295 Test: atest CtsClasspathsTestCases Change-Id: I3cea3d82ef521655a1a5ffa8cae2258ab9d08bfc
2021-07-21Remove Fuchsia support from Soong Colin Cross
Bug: 194215932 Test: m checkbuild Change-Id: Id7d3964d9417f8b0938af9b168bb4c00cebe9390
2021-07-15Merge "dexpreopt.config should be created even though unbundled image is ↵ Treehugger Robot
built" am: 75d719fdd7 am: 1bc89a7af1 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1730112 Change-Id: I4e91d1b293e84c69f032e148931357e2a050e10f
2021-07-15dexpreopt.config should be created even though unbundled image is built Jeongik Cha
Bug: 188179858 Test: compare dexpreopt_config.zip files from 1. TARGET_BUILD_UNBUNDLED_IMAGE=true m dexpreopt_config_zip 2. m dexpreopt_config_zip (note that m clean should run between steps) Change-Id: I36a6e8b10b9922cc5522accaf90af1aa05049a86
2021-06-29Merge "Add libs to debuggable" am: 3b90bb9834 am: 3835adce04 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1744764 Change-Id: Id7c43d2e29aaba652016dd9cd7cbce47dcd2161c
2021-06-28Merge "Add libs to debuggable" Treehugger Robot
2021-06-28Add libs to debuggable Yifan Hong
Test: pass Bug: 190868302 Change-Id: Ia51d9bb97d2f413b515335534cd5a771da68ce4b
2021-06-07Merge changes I4a5ea40c,I40ab16e3 am: 2f26595072 am: cc1961d51d Liz Kammer
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1726010 Change-Id: I4f1af9e641322edc52dd60206168e43c28d44d3e
2021-06-04Use maps in bazel *attribute types am: 9abd62d133 am: e90edc333c Liz Kammer
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1725151 Change-Id: I3d75f3405b099d21151334598a346f8c1c592e9b
2021-06-04Handle excludes_{shared,static}_libs Liz Kammer
Bug: 188497994 Test: bp2build.sh Change-Id: I4a5ea40cbd804e8542fe33143e4926abc0c6164f
2021-06-03Use maps in bazel *attribute types Liz Kammer
This is to simplify the process of resolving label + exclude labels across the various configuration axes we have and across the various properties/modules that use this behavior. Test: ci/bp2build.sh && ci/mixed_droid.sh Change-Id: I8efae3e75ddb365384f5caaf5bb504a5206618d3
2021-05-26Make GetTargetProperties() aware of more complex targets, like ↵ Rupert Shuttleworth
'android_arm', instead of just 'android'. am: c194ffbcf3 am: 42b29a5b40 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1712089 Change-Id: I2a68455e55701c2251d61a0db6855c34879fea93
2021-05-25Make GetTargetProperties() aware of more complex targets, like ↵ Rupert Shuttleworth
'android_arm', instead of just 'android'. Test: Added new unit test and updated existing tests. Test: bazel build //bionic/... //external/... //frameworks/... //system/... Test: ./build/bazel/scripts/run_presubmits.sh Change-Id: I250d1964f5cf42b92ddb929379d35d8c844423f7
2021-05-25Merge "Handle arch/os-specific product variables" am: c1ae9243a4 am: 91743e86ce Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1700827 Change-Id: Id941cac62a9a64a9d224038583b73421b432881e
2021-05-24Handle arch/os-specific product variables Liz Kammer
Bug: 183595873 Test: go test bp2build tests Change-Id: I36e93ae1eb2943555dd304d5bdf62d995e77b437
2021-05-20Merge "Dump bazel product config in Soong" am: 50d601731b am: 95f87cd34e Liz Kammer
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1708967 Change-Id: I80d35711694382fe880b093a09430c884a517a84
2021-05-19Dump bazel product config in Soong Liz Kammer
Bug: 187862880 Test: build/bazel/ci/bp2build.sh Test: build/soong/tests/bp2build_bazel_test.sh Change-Id: I24b09baad973e25bec4476e1ea4a7692b72b7d20
2021-04-16Merge "Remove draft API support." am: 7548b1ad05 am: 0ccb169046 am: c1499a90e2 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1674968 Change-Id: I281cb957b9214fdd9d90c6ec6e95c5c69a4f5c96
2021-04-13Remove draft API support. Dan Albert
This is unused and doesn't work with our current API review process anyway (un-drafting an API won't be flagged for API council review). Test: treehugger Bug: None Change-Id: I6d8fcc9885b82dac5ada7772d9e3fb9101524ece
2021-04-09Merge "Add a variable that indicates build-time debugfs restrictions" am: ↵ Treehugger Robot
929cac7433 am: 7525eff709 am: c088c17a5a Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1663602 Change-Id: Ia80487823714954da29859fd80cfa30b3ca55d6c
2021-04-02Add a variable that indicates build-time debugfs restrictions Hridya Valsaraju
This patch adds a variable to indicate to check if the target has the flag PRODUCT_SET_DEBUGFS_RESTRICTIONS enabled. Bug: 184381659 Test: make with/without PRODUCT_SET_DEBUGFS_RESTRICTIONS set Change-Id: Ic14a3759b155ed4e16048d62fcd990f4ba7c906a
2021-03-31Merge "Handle product_variable asflag for cc_object." am: acacbc1166 am: ↵ Liz Kammer
2cc845060d am: 263bdc570c Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652787 Change-Id: I6f9fd6727fd3eb0a5fdf3b0ccd324fed24a05be6
2021-03-31Merge "Handle product_variable asflag for cc_object." Liz Kammer
2021-03-30Handle product_variable asflag for cc_object. Liz Kammer
cc_object crtbrand sets product_variable.platform_sdk_version.asflag and will not compile correctly within mixed builds without it. Only handles product_variables that expand product variables. Bug: 181794963 Test: ~/aosp/build/bazel/scripts/milestone-2/demo.sh full Change-Id: I293fcb18032aa51f63bb7b3de94abd6d1ec38180
2021-03-24Merge "Add WithDexpreopt soong variable" am: eb120bd741 am: 3c4cb3e99b am: ↵ Inseob Kim
df6015f661 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1649336 Change-Id: I76b917412953b97966e93015542d34f9456a8526
2021-03-23Add WithDexpreopt soong variable Inseob Kim
Test: m selinux_policy on sc-arc Change-Id: I9e8ba5746e4648a04fe4d8fbe5d3403ba06b5914
2021-03-19Merge "Add sepolicy related variables" am: fc8e9c7f00 am: d76ad94973 am: ↵ Inseob Kim
1d84157810 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1641780 Change-Id: I30fb991c3b01210debe5c5fcb88641029947ced3
2021-03-19Merge "Add sepolicy related variables" Inseob Kim
2021-03-18Merge "Fix writing soong.variables ." am: 828b1e99ec am: 85787f8720 am: ↵ Lukács T. Berki
8f35b4df58 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1641405 Change-Id: I1ef94c752459994c75248d9525fab6eadad87c40
2021-03-17Merge "Allow extending of the list of directories to be scanned for VSDK" ↵ Justin DeMartino
am: dd1decf7f6 am: e7c7a5e8d6 am: 1bbe7b54ec Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1603623 Change-Id: I749bf59c09bc250e342953b4760695408aa8b513
2021-03-17Fix writing soong.variables . Lukacs T. Berki
ConfiguredJarList had a marshaler but no unmarshaler. Bug: 182965747 Test: Presubmits. Change-Id: Id03669f4a0a3d389063a4e4b11af6d6be63dbba3
2021-03-17Add sepolicy related variables Inseob Kim
Bug: 33691272 Test: try building with SELINUX_IGNORE_NEVERALLOWS := true Change-Id: Id2aa450740d412af7ac66f096fa2121957964cac
2021-03-15Allow extending of the list of directories to be scanned for VSDK Justin DeMartino
Bug: 180925851 Bug: 181564692 Test: m nothing, manually Change-Id: Ifff95db4c9ec362322fecca08f7fd1a7b60755c0
2021-03-11Merge "Add preparer for test with variables" am: 8c004c6c04 am: c371cbb33d ↵ Paul Duffin
am: cc285a8253 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1626512 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I46946e1448cf6e83399e46c259e8fba9e6744817
2021-03-11Add preparer for test with variables Paul Duffin
Bug: 181070625 Test: m nothing Change-Id: I101826d88e67c63a58007f20f8e24d574dd7c99b
2021-03-05variable: Add header_libs to product_variables.arc Jasmine Chen
Add header_libs to product_variables.arc struct, which is needed for cc_library_headers. Bug: 151048523 Test: Image builds. Change-Id: I1e1af35fb2c3a55454c9b70acfa10abb5d65ef61
2021-02-19Remove EnforceRROExemptedTargets Jeongik Cha
There is no more target relying on EnforceRROExemptedTargets Bug: 150820813 Test: m Change-Id: If50d22c0e4f99e8c50d6a30cb94a0c3a5646b6fa
2021-02-16Add BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE to BoardConfig Inseob Kim
Bug: 175526482 Test: m vendor_property_contexts after making violations Change-Id: I489312f07e068c3c0e0b7bd6e6c49698707aa9a8
2021-02-16Add PRODUCT_SHIPPING_API_LEVEL to device config Inseob Kim
Bug: 175526482 Test: m selinux_policy Change-Id: I040897f4bdb918aa4b1acb3539a7253640e670a3
2021-02-09Implement directed recovery snapshot. Jose Galmes
Bug: 177451657 Test: m -j nothing Change-Id: I0b84c34fb2e9e9340d9f9e7405428cd2cc4d43b5
2021-02-08Remove Use_lmkd_stats_log from product variables Ioannis Ilkos
Use_lmkd_stats_log used to control LMKD_LOG_STATS when compiling lmkd. However, for newer Android releases, we mandate that lmkd informs statsd of process kills (change id I8cb123b9488fbc6e88863c2f0e75f1422bcd282e) After aosp/1555318 we compile lmkd with statsd by default, so this setting is a noop. Change-Id: Ibcf661e205b3ed2a4a520a42952aaece503e9350 Test: build Bug: 177985094
2021-01-20Move reflect.ValueOf out of product variable loop Colin Cross
Calling reflect.ValueOf for every variable for every module was using ~3 seconds of CPU time on my AOSP builds. Test: m checkbuild Change-Id: Idf459ad8ddf5e07f6c0df0e58e2442aaa6ab3342
2021-01-20Merge changes from topic "prebuilt-hiddenapi" Bill Peckham
* changes: Supply LOCAL_SOONG_DEX_JAR for java_import with compile_dex. Enable an apex to include a java_import. Enable prebuilt hiddenapi CSV files.
2021-01-19Enable prebuilt hiddenapi CSV files. Bill Peckham
By enabling these hiddenapi CSV files to be prebuilt, it becomes possible to create a split build that supports the hiddenapi encode dex step, but doesn't contain all of the java sources needed to generate the CSV files. Bug: 175048716 Test: m nothing Test: new TestHiddenAPISingletonWithPrebuiltCsvFile Test: local build without prebuilt hiddenapi Test: local build with prebuilt hiddenapi Change-Id: I805ea3ec05860d2df211a3985ec025bf36f0d775
2021-01-18Implement directed vendor snapshot Inseob Kim
Vendors can now generate only needed modules by setting the following Makefile variables: - DIRECTED_VENDOR_SNAPSHOT: set to true - VENDOR_SNAPSHOT_MODULES: list of snapshot candidates e.g. DIRECTED_VENDOR_SNAPSHOT := true VENDOR_SNAPSHOT_MODULES := toybox_vendor sh_vendor libbase libcutils ... Bug: 157967325 Test: m dist vendor-snapshot after setting those in BoardConfig.mk Change-Id: I6515a43d9358d94483d7c7fa2b066f9dd457f6aa
2021-01-11Include/exclude lists for memtag_heap sanitizer. Evgenii Stepanov
Bug: b/135772972 Test: cc_test.go / TestSanitizeMemtagHeap Change-Id: I263b23647f1874ae3024101dce1b07091c1c9403
2021-01-11Remove ANDROID_EXPERIMENTAL_MTE. Peter Collingbourne
Now that the feature guarded by this flag has landed in Linux 5.10 we no longer need the flag, so we can remove it. Bug: 135772972 Change-Id: I02fa50848cbd0486c23c8a229bb8f1ab5dd5a56f
2021-01-06Merge "Support for recovery snapshot." Jose "Pepe" Galmes