From 612ef5d9fb178e8740b8d1d9036b3bb025e78425 Mon Sep 17 00:00:00 2001
From: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Date: Mon, 9 Dec 2024 01:17:32 +0900
Subject: [PATCH] Enable HW media decoder in NanoPC T6

The meta-rockchip has gstreamer-rockchip recipe.  It enables HW
media decoder in rockchip boards.
Current integration did not enable gstreamer-rockchip.
This patch enable gstreamer-rockchip.

Bug-AGL: SPEC-5319

Change-Id: I2cfa34b4d8daf0f0830de288b07f0ceddb99e210
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/30642
Tested-by: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
ci-image-build: Jenkins Job builder account
---
 meta-agl-bsp/conf/include/agl_rk3588.inc                              | 2 +-
 .../recipes-multimedia/gstreamer/gstreamer1.0_%.bbappend              | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100644 meta-agl-bsp/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0_%.bbappend

diff --git a/meta-agl-bsp/conf/include/agl_rk3588.inc b/meta-agl-bsp/conf/include/agl_rk3588.inc
index 4c3f6990f..fdd8c9a28 100644
--- a/meta-agl-bsp/conf/include/agl_rk3588.inc
+++ b/meta-agl-bsp/conf/include/agl_rk3588.inc
@@ -3,7 +3,7 @@ LICENSE_FLAGS_ACCEPTED:append = " commercial"
 MACHINE_FEATURES:append:rk3588 = " multimedia"
 
 BBMASK += " \
-    meta-rockchip/recipes-multimedia/gstreamer \
+    meta-rockchip/recipes-multimedia/gstreamer/ \
     meta-rockchip/recipes-graphics/wayland/weston_%.bbappend \
     "
 
diff --git a/meta-agl-bsp/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0_%.bbappend b/meta-agl-bsp/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0_%.bbappend
new file mode 100644
index 000000000..c815f83d7
--- /dev/null
+++ b/meta-agl-bsp/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0_%.bbappend
@@ -0,0 +1,4 @@
+RDEPENDS:${PN} += "\
+    gstreamer1.0-rockchip-rockchipmpp \
+"
+
-- 
2.16.6