From 4679e671b0efa32d392aed05e6e7e951fb7005d8 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 22 Jan 2024 12:19:33 +0000 Subject: [PATCH] walleye: Add firmware extraction support Rename from factory image dump to the common partition naming. Change-Id: I61b0f4cdddf65166cb12a39926e1fcb504241975 --- extract-files.sh | 6 +++++- proprietary-firmware.txt | 15 +++++++++++++++ setup-makefiles.sh | 4 +++- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 proprietary-firmware.txt diff --git a/extract-files.sh b/extract-files.sh index f3a3132..1c2d8e0 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -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 # @@ -81,4 +81,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" diff --git a/proprietary-firmware.txt b/proprietary-firmware.txt new file mode 100644 index 0000000..e51d004 --- /dev/null +++ b/proprietary-firmware.txt @@ -0,0 +1,15 @@ +# Firmware - from RP1A.201005.004.A1, Dec 2020 - (factory image). + +abl.img;AB +aes.img;AB +cmnlib.img;AB +cmnlib64.img;AB +devcfg.img;AB +hyp.img;AB +keymaster.img;AB +laf.img;AB +modem.img;AB +pmic.img;AB +rpm.img;AB +tz.img;AB +xbl.img;AB \ No newline at end of file diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 0d0e225..57db22a 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -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 # @@ -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