extract-utils: Make symlink_target account for moved blobs

It can happen that a blob is being moved for example from /product
to /system_ext. Obviously the desired symlink_target associated
with that blob must respect that.

Example:

 product/lib64/libimscamera_jni.so:system_ext/lib64/libimscamera_jni.so;SYMLINK=system_ext/priv-app/ims/lib/arm64/libimscamera_jni.so

Resulting diff:

install_symlink {
       name: "libimscamera_jni_libimscamera_jni_symlink64",
       system_ext_specific: true,
       installed_location: "priv-app/ims/lib/arm64/libimscamera_jni.so",
-       symlink_target: "/product/lib64/libimsmedia_jni.so",
+       symlink_target: "/system_ext/lib64/libimscamera_jni.so",
}

Change-Id: I4a2580be1d5da4c0f35ae47029e16431f72343db
1 file changed
tree: e995a5d463f6fa0f66554b8e4f2a3d41ea9da011
  1. templates/
  2. extract_utils.sh
  3. sdat2img.py
  4. sort-blobs-list.py