bramble: Add firmware extraction support

Change-Id: If6cb6334a8f7b2fcc77c8947569eba1b2002190a
This commit is contained in:
Michael Bestas
2023-11-30 20:44:20 +02:00
parent 6baca6c679
commit e83db3f96d
3 changed files with 28 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2021 The LineageOS Project
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -66,6 +66,12 @@ function blob_fixup() {
esac
}
function prepare_firmware() {
if [ "${SRC}" != "adb" ]; then
bash "${ANDROID_ROOT}"/lineage/scripts/pixel/prepare-firmware.sh "${DEVICE}" "${SRC}"
fi
}
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
@@ -73,4 +79,8 @@ extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTIO
extract "${MY_DIR}/proprietary-files-carriersettings.txt" "${SRC}" "${KANG}" --section "${SECTION}"
extract "${MY_DIR}/proprietary-files-vendor.txt" "${SRC}" "${KANG}" --section "${SECTION}"
if [ -z "${SECTION}" ]; then
extract_firmware "${MY_DIR}/proprietary-firmware.txt" "${SRC}"
fi
"${MY_DIR}/setup-makefiles.sh"

14
proprietary-firmware.txt Normal file
View File

@@ -0,0 +1,14 @@
# All firmware images are extracted from Google factory images for each new ASB
abl.img;AB
aop.img;AB
devcfg.img;AB
featenabler.img;AB
hyp.img;AB
keymaster.img;AB
modem.img;AB
qupfw.img;AB
tz.img;AB
uefisecapp.img;AB
xbl.img;AB
xbl_config.img;AB

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2021 The LineageOS Project
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -34,5 +34,7 @@ write_makefiles "${MY_DIR}/proprietary-files.txt" true
write_makefiles "${MY_DIR}/proprietary-files-carriersettings.txt" true
write_makefiles "${MY_DIR}/proprietary-files-vendor.txt" true
append_firmware_calls_to_makefiles "${MY_DIR}/proprietary-firmware.txt"
# Finish
write_footers