From bec3b4c7a32b05ebfcb916306aad254bd08feb25 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Thu, 28 Nov 2024 12:44:25 -0500 Subject: [PATCH] deadpool: Support extracting from factory image Change-Id: I7bbafc75121403c460635b91b06e281590fda264 --- extract-files.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extract-files.py b/extract-files.py index 5118b9c..6157a29 100755 --- a/extract-files.py +++ b/extract-files.py @@ -4,6 +4,12 @@ # SPDX-License-Identifier: Apache-2.0 # +from extract_utils.extract import extract_fns_user_type +from extract_utils.extract_pixel import ( + extract_pixel_factory_image, + pixel_factory_image_regex, +) + from extract_utils.fixups_blob import ( blob_fixup, blob_fixups_user_type, @@ -27,12 +33,17 @@ blob_fixups: blob_fixups_user_type = { .regex_replace('/vendor/lib/', '/vendor/lib/modules/') } # fmt: skip +extract_fns: extract_fns_user_type = { + pixel_factory_image_regex: extract_pixel_factory_image, +} + module = ExtractUtilsModule( 'deadpool', 'askey', blob_fixups=blob_fixups, namespace_imports=namespace_imports, add_firmware_proprietary_file=True, + extract_fns=extract_fns, ) if __name__ == '__main__': -- 2.20.1