Skip to content

Commit

Permalink
FP5: Add firmware extraction support
Browse files Browse the repository at this point in the history
Change-Id: Ib435fa518044bf86867659d6ce16a7a12b957677
  • Loading branch information
mikeNG committed Jan 31, 2024
1 parent dbf7573 commit 08d8d72
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
6 changes: 5 additions & 1 deletion extract-files.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down Expand Up @@ -66,4 +66,8 @@ setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"

extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"

if [ -z "${SECTION}" ]; then
extract_firmware "${MY_DIR}/proprietary-firmware.txt" "${SRC}"
fi

"${MY_DIR}/setup-makefiles.sh"
21 changes: 21 additions & 0 deletions proprietary-firmware.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Firmware from Fairphone/FP5/FP5:13/TKQ1.230127.002/TT40:user/release-keys

abl.elf:abl.img;AB
aop.mbn:aop.img;AB
BTFM.bin:bluetooth.img;AB
cpucp.elf:cpucp.img;AB
devcfg.mbn:devcfg.img;AB
dspso.bin:dsp.img;AB
featenabler.mbn:featenabler.img;AB
hypvm.mbn:hyp.img;AB
imagefv.elf:imagefv.img;AB
km41.mbn:keymaster.img;AB
NON-HLOS.bin:modem.img;AB
multi_image.mbn:multiimgoem.img;AB
qupv3fw.elf:qupfw.img;AB
shrm.elf:shrm.img;AB
study.tar:studybk.img;AB
tz.mbn:tz.img;AB
uefi_sec.mbn:uefisecapp.img;AB
xbl.elf:xbl.img;AB
xbl_config.elf:xbl_config.img;AB
4 changes: 3 additions & 1 deletion setup-makefiles.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down Expand Up @@ -32,5 +32,7 @@ write_headers

write_makefiles "${MY_DIR}/proprietary-files.txt" true

append_firmware_calls_to_makefiles "${MY_DIR}/proprietary-firmware.txt"

# Finish
write_footers

0 comments on commit 08d8d72

Please sign in to comment.