diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2023-11-30 20:44:20 +0200 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2024-01-02 00:28:00 +0800 |
commit | 7004daf34d0dc94507d765e6d80278c7a6234881 (patch) | |
tree | eb616216f259801073fe9169163eefabc4921f9b | |
parent | 56b25c29badedb95b145750e6ee93f756e8da90e (diff) |
lynx: Add firmware extraction support
Change-Id: If6cb6334a8f7b2fcc77c8947569eba1b2002190a
-rwxr-xr-x | extract-files.sh | 12 | ||||
-rw-r--r-- | proprietary-firmware.txt | 11 | ||||
-rwxr-xr-x | setup-makefiles.sh | 4 |
3 files changed, 25 insertions, 2 deletions
diff --git a/extract-files.sh b/extract-files.sh index 7742032..0dd42ce 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 # @@ -53,10 +53,20 @@ if [ -z "${SRC}" ]; then SRC="adb" fi +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}" 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..f32fb48 --- /dev/null +++ b/proprietary-firmware.txt @@ -0,0 +1,11 @@ +# All firmware images are extracted from Google factory images for each new ASB + +abl.img;AB +bl1.img;AB +bl2.img;AB +bl31.img;AB +gsa.img;AB +ldfw.img;AB +modem.img;AB +pbl.img;AB +tzsw.img;AB diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 1e50530..ebbf296 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 |