Add delta.ua - a binary to apply an upgrade of DELTA_FS type.
The binary is build with code previously from tota-ua and libtota, although some
changes were made. They include: changes to make delta.ua a command line tool
(reading given parameters instead of reading config files), changes to make delta.ua a tool
only applying the deltas and only applying them for one partition, adding support for handling
hardlinks (previously in cases where harlinks were present in a delta, upgrade wasn't guaranteed
to be successsful), removing code/files unused for update types other than DELTA_FS
and other more minor changes (e.g. removing unused functions)
Change-Id: Ice1e272a553abb5ebae4230eaffe82afc931b204
Add files from libtota and tota-ua, necessary for easier review of the next commit.
The code is imported from following:
-> platform/core/system/libtota, SHA1: d36348f
(ss_bsdiff: Change the search function)
-> platform/core/system/tota-ua, SHA1: 681435d
(Fix fprintf format warning)
Change-Id: I783799ed335f03bc69c287f6d85092b6dbff9b21
Import system-rw-upgrade
This commit imports system-rw-upgrade from commit
fbb4ba4cf ("Add critical log where upgrade
status is changing").
Following changes were made with repect to original repository:
- move scripts and unit files under scripts/rw-upgrade
- move logic behind installing scripts and unit files to scripts/rw-upgrade/CMakeLists.txt
- depend only on UPGRADE_ variables
- integrate build into new spec
Change-Id: I305fe67d2ac32df7d2b9d05b51b67a1fb808a68b
Import tota-ua
This commit imports tota-ua from commit
a0c2c06cf ("Add return 0
to log functions to prevent unexpected failure").
Following changes were made with repect to original tota-ua repository:
- naming is adjusted (tota-ua -> upgrade/upgrade-engine)
- delta.ua is dropped along with libtota depencency
(currently it brings only unsupported and faulty delta_fs
upgrade type)
- actual programs are moved to src/ subdir, scripts moved to scripts/
- CMakeFiles.txt are considerably simplified, dropping most of the
duplication
Change-Id: If7da44c748e3e25b4519022fb292088ed8cbdcc0