This will create symlink entries in the Android.bp and related
PRODUCT_PACKAGES list in the product makefile for all files in
the blob list which has SYMLINK argument.
Example usage:
vendor/lib64/egl/libGLES_mali.so;SYMLINK=vendor/lib64/hw/vulkan.universal7904.so,vendor/lib64/libOpenCL.so,vendor/lib64/libOpenCL.so.1,vendor/lib64/libOpenCL.so.1.1
For particular cases, it might help getting rid of symlink creation
during build time as it breaks hermetic partition build, which is
forbidden since U QPR2.
Change-Id: If6d36c961cc2908d8d5cfbf61eb5d07f793ab0b9
If arch is not specified, blueprint parsing and elf checks assume the
source is the target arch. If target is 64-bit and the binary is 32-bit,
conflicts in symbols can arise, so lets be specific.
Change-Id: I943e269465e5b20829cb4719b81a7638b025b123
* When removing prefix, it might be possible that the resulting array isn't ordered anymore, thus breaking multilib detection with comm in write_product_packages()
* Sort the resulting files list to fix this
Change-Id: If3253c93881814d6c6ec42c9ef8d7b0258535455
Before:
real 1m32.730s
user 1m20.466s
sys 0m11.764s
After:
real 1m10.794s
user 1m21.270s
sys 0m11.592s
Change-Id: Idd4bc94ccb00d4e80ba1aa2efb86f1f29c5667ae
The python tools no longer work and google recommends ota_extractor.
This opens up the possibility for incremental extraction as well.
Change-Id: I03a2ce5d75d192f00ebd604d13694f8694965192
Allows devices to run required actions before attempting
to extract firmware.
Example: motorola star images & pixel fbpk images.
Change-Id: I105c3a17c10f63f0ad72966354aed6baed695d7c
A/B OTA might be missing some partitions like devinfo and frp
which are required for factory images.
Change-Id: I9d6f91c736476d3540c541e3ffc7a28e72089e4a
Merge the two functions into one and explicitly list all partitions
based on proprietary file list instead of scanning the radio folder.
Change-Id: I28a426af04efa5e103dc86bd369f507187e49489
This allows extracting firmware from factory images.
The following changes have been made:
* Remove filesmap support, this is not used in AOSP releasetools.
* Remove directory check, append_firmware_calls_to_makefiles() is opt-in
and if some device calls it, firmware will always exist.
* Implement append_firmware_ab_ota_to_makefiles() to automatically
append firmware images to AB_OTA_PARTITIONS
* Add support for source:target firmware extraction and AB argument
TODO: extract firmware from OTA images
Change-Id: Ib2158925f53657af949a186200c9e98e1a4db810
Not enabled by default as >0.9 versions where reported to break some
libraries (see change I6c0cbe76baf241233fdd125f5ed1eccbd5855124), but
patchelf 0.8/9 also seems to break certain libraries while 0.17.2
doesn't. See I079925c0a38a08661accbbf07831e36e6adb4d76 for example.
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: Ib68152e7936d8c618d29278a264a141cbab77d05
Allows copying single files or building single packages.
To be used for CarrierSettings extract integration.
Change-Id: I9238355c56673f633e7a0a4afe70e9a9ad62af56
* This is used by a lot of things, and the script removes
the entire directory. That can cause issues with other things,
that don't expect the root TMPDIR to go away, or some contents
within it.
* Let's use our own variable
* You can still keep setting TMPDIR since mktemp respects that
Change-Id: I6c71ce38bab781cd7a8d285499f127c2bf248eb8
* This will be beneficial for copying firmware and other stuff to recovery.
Change-Id: Ibc7e887d32f9c00d5914ed4d2c9d79864f1f4745
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
Signed-off-by: Mohd Faraz <mohd.faraz.abc@gmail.com>
Previously the wrong variables were checked to see if the prefix
matches, so e.g. no cc_prebuilt_binary were generated for those
binaries.
Change-Id: I744c6f6a4584921a26547478ac14a160c56e07b7
"comm" requires both input to be sorted. The T_X_LIB32 and T_X_LIB64
arrays from prefix_match-ing PRODUCT_PACKAGES_LIST may not always
be sorted, which causes certain multilib to be mis-categorized as
32-bit and 64-bit separately. The final blueprint would then have
duplicated targets.
Therefore, sort the package list first so that arrays generated
from the package list are also sorted. Set LC_ALL=C to avoid "sort"
using system locale.
Change-Id: Ia2bc9733d89de66eda52059237a54d624ba4b0ad
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Android 11 has removed /sbin support completely
Remove rootfs handling as that was only added for /sbin
Remove write_makefile_packages since it's no longer used
Change-Id: Ie44656d5e30da9637a850df53c4bf3fa1ab0fb2b