g12: Copy media firmware directly from the source
authorBruno Martins <bgcngm@gmail.com>
Sun, 7 Jul 2024 17:23:07 +0000 (18:23 +0100)
committerBruno Martins <bgcngm@gmail.com>
Sun, 7 Jul 2024 22:01:51 +0000 (23:01 +0100)
Change-Id: I327202b49c4487a6cfde81cfe6727d98f7b2774e

g12.mk
proprietary-files.txt

diff --git a/g12.mk b/g12.mk
index 717c88ced3bfdfd71f75a3d29aba823e18e3d6bb..0ddb57562f0bff090a24a027c2beff6331b9acab 100644 (file)
--- a/g12.mk
+++ b/g12.mk
@@ -119,6 +119,11 @@ PRODUCT_PACKAGES += \
     libtrusty.vendor
 endif
 
+## Media firmware
+PRODUCT_COPY_FILES += \
+    kernel/amlogic/kernel-modules/media-4.9/firmware/h264_enc.bin:$(TARGET_COPY_OUT_VENDOR)/lib/firmware/video/h264_enc.bin \
+    kernel/amlogic/kernel-modules/media-4.9/firmware/video_ucode.bin:$(TARGET_COPY_OUT_VENDOR)/lib/firmware/video/video_ucode.bin
+
 ## OEM Lock
 ifneq ($(TARGET_HAS_TEE),false)
 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
index b42f4be5317bc4a15c4908322cd7cceca273b477..1761bbae2e6dc5225c75d7f72d0fd834a8c51020 100644 (file)
@@ -96,8 +96,6 @@ vendor/etc/init/sysfs_permissions.rc
 ## Media (Hardware)
 vendor/bin/DecInfo_test
 vendor/bin/esplayer
-vendor/lib/firmware/video/h264_enc.bin
-vendor/lib/firmware/video/video_ucode.bin
 vendor/lib/libamavutils.so
 
 ## Media