Skip to content

Commit

Permalink
walleye: Add firmware extraction support
Browse files Browse the repository at this point in the history
Rename from factory image dump to the common partition naming.

Change-Id: I61b0f4cdddf65166cb12a39926e1fcb504241975
  • Loading branch information
bgcngm authored and PixelBoot committed Feb 18, 2024
1 parent e690e5c commit cb5281f
Show file tree
Hide file tree
Showing 3 changed files with 23 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 @@ -75,4 +75,8 @@ setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
extract "${MY_DIR}/proprietary-files.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"
15 changes: 15 additions & 0 deletions proprietary-firmware.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Firmware - from RP1A.201005.004.A1, Dec 2020 - (factory image).

abl.img;AB
apdp.img;AB
cmnlib.img;AB
cmnlib64.img;AB
devcfg.img;AB
hyp.img;AB
keymaster.img;AB
modem.img;AB
msadp.img;AB
pmic.img;AB
rpm.img;AB
tz.img;AB
xbl.img;AB
4 changes: 3 additions & 1 deletion setup-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 @@ -33,5 +33,7 @@ write_headers
write_makefiles "${MY_DIR}/proprietary-files.txt" true
write_makefiles "${MY_DIR}/proprietary-files-vendor.txt" true

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

# Finish
write_footers

0 comments on commit cb5281f

Please sign in to comment.