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, 21 Jul 2024 13:39:39 +0000 (14:39 +0100)
Change-Id: I327202b49c4487a6cfde81cfe6727d98f7b2774e

g12.mk
proprietary-files.txt

diff --git a/g12.mk b/g12.mk
index f5d9e53aa3d4fa713b7646aede453bba9fc539be..25acdebd0281b025cd5dc14180aa50d9891bf4e3 100644 (file)
--- a/g12.mk
+++ b/g12.mk
@@ -111,6 +111,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 b8907cbcd168574f0c924c1418e387afaca52aea..9dc1af20e5b329d8b492a98a97ea4cae1066f1ac 100644 (file)
@@ -138,8 +138,6 @@ vendor/usr/keylayout/Vendor_7545_Product_0190.kl
 # 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