pixel/firmware: Use prebuilts/extract-tools/qc_image_unpacker
Change-Id: I4909fb1ec172f618699fbe181563991fddaf281c
This commit is contained in:
committed by
Michael Bestas
parent
ad9967ba3e
commit
e1afbf32bb
@@ -25,6 +25,7 @@ readonly script_path="$(cd "$(dirname "$0")";pwd -P)"
|
|||||||
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
readonly vars_path="${script_path}/../../../vendor/lineage/vars"
|
||||||
readonly top="${script_path}/../../.."
|
readonly top="${script_path}/../../.."
|
||||||
|
|
||||||
|
readonly qc_image_unpacker="${top}/prebuilts/extract-tools/linux-x86/bin/qc_image_unpacker"
|
||||||
readonly extract_ota_py="${top}/tools/extract-utils/extract_ota.py"
|
readonly extract_ota_py="${top}/tools/extract-utils/extract_ota.py"
|
||||||
|
|
||||||
readonly work_dir="${WORK_DIR:-/tmp/pixel}"
|
readonly work_dir="${WORK_DIR:-/tmp/pixel}"
|
||||||
@@ -49,9 +50,9 @@ readonly vendor_path="${top}/vendor/firmware/${device}"
|
|||||||
# from the factory image's bootloader.img
|
# from the factory image's bootloader.img
|
||||||
unpack_firmware() {
|
unpack_firmware() {
|
||||||
# modem.img
|
# modem.img
|
||||||
qc_image_unpacker -i "${factory_dir}"/radio-*.img -o "${ota_firmware_dir}"
|
"${qc_image_unpacker}" -i "${factory_dir}"/radio-*.img -o "${ota_firmware_dir}"
|
||||||
# All other ${firmware_partitions[@]}
|
# All other ${firmware_partitions[@]}
|
||||||
qc_image_unpacker -i "${factory_dir}"/bootloader-*.img -o "${ota_firmware_dir}"
|
"${qc_image_unpacker}" -i "${factory_dir}"/bootloader-*.img -o "${ota_firmware_dir}"
|
||||||
}
|
}
|
||||||
|
|
||||||
extract_firmware() {
|
extract_firmware() {
|
||||||
|
|||||||
Reference in New Issue
Block a user