summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
author Mohammad Samiul Islam <samiul@google.com> 2020-11-26 13:32:26 +0000
committer Mohammad Samiul Islam <samiul@google.com> 2020-12-08 13:06:25 +0000
commit3cd005d347b060f873b675e7a09e2aeb0e93eb25 (patch)
tree3b8184d03f6fd16f56f8f5cd70cd782e34e69b7b /rust/compiler.go
parentd348c41af56dbbc54e77ca60c29d281114deae02 (diff)
Enable soong build tool to handle APEX compression
1. Soong can now detect PRODUCT_COMPRESSED_APEX flag We don't want APEX to be compressed on all devices. Only those that have explicitely set PRODUCT_COMPRESSED_APEX flag. 2. Handle "compressible" field in soong build rule On devices that supports APEX compression, all APEX will be compressed by default. If any apex does not want to be compressed, they will need to state that by setting "compressible" field to false 3. Can use apex_compression_tool to compress APEX Note we compress the APEX after it has been signed. That way, when we decompress we will get a signed APEX. 4. Place the compressed APEX in system with .capex extension This makes it easy to identify. We still preserve the original extension so that when we decompress, we can just rename by cuttif off the .capex extension. Note: with this change, we can create a system image with compressed APEX, but we cannot boot with it since platform doesn't know how to handle .capex files. Platform support will be added on follow up CLs. Bug: 172911362 Test: OVERRIDE_PRODUCT_COMPRESSED_APEX=true m (apex_test.go) Test: observed $OUT/system/apex has .capex files Change-Id: I20ac4c4ceb521924c751a6017f979b2d808fdded
Diffstat (limited to 'rust/compiler.go')
0 files changed, 0 insertions, 0 deletions