├── recipes-kernel ├── linux │ ├── files │ │ ├── ext4.cfg │ │ └── cgroups.cfg │ ├── linux-rockchip_4.4.bb │ ├── linux-rockchip_4.19.bb │ ├── linux-rockchip_6.1.bb │ └── linux-rockchip_5.10.bb ├── perf │ └── perf.bbappend └── linux-libc-headers │ ├── linux-libc-headers_4.19-custom.bb │ ├── linux-libc-headers_5.10-custom.bb │ ├── linux-libc-headers_6.1-custom.bb │ ├── linux-libc-headers_4.4-custom.bb │ └── linux-libc-headers_4.4-custom │ └── 0005-uapi-ioctls.h-Add-TIOCGPTPEER-from-upstream.patch ├── .gitignore ├── recipes-multimedia ├── gstreamer │ ├── gstreamer1.0_1.22.12 │ ├── gstreamer1.0_1.24.10 │ ├── gstreamer1.0_1.24.12 │ ├── gstreamer1.0-plugins-bad_1.22.12 │ ├── gstreamer1.0-plugins-bad_1.24.10 │ ├── gstreamer1.0-plugins-bad_1.24.12 │ ├── gstreamer1.0-plugins-base_1.22.12 │ ├── gstreamer1.0-plugins-base_1.24.10 │ ├── gstreamer1.0-plugins-base_1.24.12 │ ├── gstreamer1.0-plugins-good_1.22.12 │ ├── gstreamer1.0-plugins-good_1.24.10 │ ├── gstreamer1.0-plugins-good_1.24.12 │ ├── gstreamer1.0_%.bbappend │ ├── gstreamer1.0-plugins-bad_%.bbappend │ ├── gstreamer1.0-plugins-base_%.bbappend │ ├── gstreamer1.0-plugins-good_%.bbappend │ ├── gstreamer1.0-plugins-bad_1.20.7 │ │ ├── 0006-waylandsink-release-frame-callback-when-finalizing.patch │ │ ├── 0041-kmssink-Avoid-choosing-disconnected-connector.patch │ │ ├── 0015-waylandsink-Fix-random-crash.patch │ │ └── 0014-waylandsink-Drop-frame-when-window-not-ready.patch │ ├── gstreamer1.0-plugins-good_1.20.7 │ │ └── 0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch │ ├── gstreamer1.0-plugins-good_1.22.7 │ │ └── 0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch │ ├── gstreamer1.0-plugins-good_1.22.9 │ │ └── 0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch │ ├── gstreamer1.0-plugins-good_1.24.11 │ │ └── 0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch │ ├── gstreamer1.0-plugins-good_1.24.6 │ │ └── 0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch │ ├── gstreamer1.0-plugins-base_1.24.11 │ │ ├── 0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch │ │ ├── 0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch │ │ └── 0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch │ ├── gstreamer1.0-plugins-base_1.24.6 │ │ ├── 0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch │ │ ├── 0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch │ │ └── 0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch │ ├── gstreamer1.0-plugins-base_1.20.7 │ │ ├── 0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch │ │ ├── 0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch │ │ └── 0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch │ ├── gstreamer1.0-plugins-base_1.22.7 │ │ ├── 0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch │ │ ├── 0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch │ │ └── 0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch │ ├── gstreamer1.0-plugins-base_1.22.9 │ │ ├── 0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch │ │ ├── 0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch │ │ └── 0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch │ ├── gstreamer1.0-plugins-bad_1.22.7 │ │ ├── 0042-kmssink-Avoid-choosing-disconnected-connector.patch │ │ ├── 0014-waylandsink-Fix-random-crash.patch │ │ ├── 0018-waylandsink-Fix-crash-when-setting-fullscreen-proper.patch │ │ ├── 0013-waylandsink-Drop-frame-when-window-not-ready.patch │ │ └── 0012-gstjpegparse-Allow-parsebin-to-use-it-for-autopluggi.patch │ ├── gstreamer1.0-plugins-bad_1.22.9 │ │ ├── 0042-kmssink-Avoid-choosing-disconnected-connector.patch │ │ ├── 0014-waylandsink-Fix-random-crash.patch │ │ ├── 0018-waylandsink-Fix-crash-when-setting-fullscreen-proper.patch │ │ ├── 0013-waylandsink-Drop-frame-when-window-not-ready.patch │ │ └── 0012-gstjpegparse-Allow-parsebin-to-use-it-for-autopluggi.patch │ ├── gstreamer1.0-plugins-bad_1.24.11 │ │ ├── 0034-kmssink-Avoid-choosing-disconnected-connector.patch │ │ ├── 0010-waylandsink-Fix-random-crash.patch │ │ ├── 0013-waylandsink-Fix-crash-when-setting-fullscreen-proper.patch │ │ └── 0009-waylandsink-Drop-frame-when-window-not-ready.patch │ └── gstreamer1.0-plugins-bad_1.24.6 │ │ ├── 0034-kmssink-Avoid-choosing-disconnected-connector.patch │ │ ├── 0010-waylandsink-Fix-random-crash.patch │ │ ├── 0013-waylandsink-Fix-crash-when-setting-fullscreen-proper.patch │ │ └── 0009-waylandsink-Drop-frame-when-window-not-ready.patch ├── v4l2apps │ ├── v4l-utils_%.bbappend │ ├── v4l-rkmpp.bb │ └── v4l-utils │ │ └── 0003-libv4l-Disallow-conversion-by-default.patch ├── alsa │ └── rockchip-alsa-config.bb ├── rockchip-rkaiq │ └── files │ │ └── rkaiq_daemons.sh └── rockchip-rkisp │ └── files │ └── rkisp_daemons.sh ├── recipes-core ├── busybox │ ├── files │ │ └── gpt-label.cfg │ └── busybox_%.bbappend ├── util-linux │ └── util-linux_%.bbappend ├── coreutils │ └── coreutils_%.bbappend ├── systemd │ └── systemd_%.bbappend ├── sysvinit │ ├── sysvinit_%.bbappend │ └── sysvinit │ │ └── 0001-Rebooting-with-arg-by-default.patch ├── glibc │ ├── glibc-locale_%.bbappend │ └── glibc_%.bbappend └── udev │ ├── udev-conf-rockchip.bb │ └── files │ └── 99-rockchip-permissions.rules ├── conf ├── machine │ ├── include │ │ ├── rk3288w.conf │ │ ├── rk3326.inc │ │ ├── rk3308.inc │ │ ├── rk3506.inc │ │ ├── rk3328.inc │ │ ├── rk356x.inc │ │ ├── rk3562.inc │ │ ├── rk3576.inc │ │ ├── px30.inc │ │ ├── rk3588.inc │ │ ├── px3se.inc │ │ ├── rk3399.inc │ │ ├── rk3288.inc │ │ └── mali.inc │ ├── rockchip-rk3288w-evb.conf │ ├── rockchip-rk3568-evb.conf │ ├── rockchip-rk3288-evb-act8846.conf │ ├── rockchip-rk3506-evb.conf │ ├── rockchip-custom.conf │ ├── rockchip-px3se-evb.conf │ ├── rockchip-rk3288-evb.conf │ ├── rockchip-rk3328-evb.conf │ ├── rockchip-rk3588-evb.conf │ ├── rockchip-px30-evb.conf │ ├── rockchip-rk3308-evb.conf │ ├── rockchip-rk3326-evb.conf │ ├── rockchip-rk3399pro-evb.conf │ ├── rockchip-rk3576-evb.conf │ ├── rockchip-rk3308-evb-aarch32.conf │ ├── rockchip-rk3562-evb.conf │ ├── rockchip-rk3399-sapphire-excavator.conf │ └── rockchip-rk3566-evb.conf └── layer.conf ├── dynamic-layers └── recipes-browser │ └── chromium │ ├── chromium-x11_%.bbappend │ ├── chromium-ozone-wayland_%.bbappend │ ├── files │ └── chromium-init.sh │ ├── chromium_103.0.5060 │ ├── 0012-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0015-libgav1-Enable-parser-on-arm32-as-well.patch │ ├── 0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ └── 0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch │ ├── chromium_104.0.5112 │ ├── 0012-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0015-libgav1-Enable-parser-on-arm32-as-well.patch │ ├── 0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ └── 0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch │ ├── chromium_105.0.5195 │ ├── 0012-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-libgav1-Enable-parser-on-arm32-as-well.patch │ ├── 0018-swiftshader-Don-t-check-system-wayland-for-non-wayla.patch │ ├── 0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ └── 0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch │ ├── chromium_109.0.5414 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0009-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ └── 0006-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch │ ├── chromium_111.0.5563 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0018-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ └── 0006-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch │ ├── chromium_114.0.5735 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0018-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0020-ui-gfx-linux-Force-disabling-modifiers.patch │ ├── 0009-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ └── 0006-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch │ ├── chromium_119.0.6045 │ ├── 0014-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0015-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ ├── 0016-ui-gfx-linux-Force-disabling-modifiers.patch │ ├── 0002-HACK-media-gpu-v4l2-Enable-V4L2-VEA.patch │ └── 0010-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ ├── chromium_120.0.6099 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ └── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ ├── chromium_121.0.6167 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ └── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ ├── chromium_122.0.6261 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ ├── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ └── 0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch │ ├── chromium_124.0.6367 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ ├── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ └── 0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch │ ├── chromium_125.0.6422 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ ├── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ └── 0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch │ ├── chromium_126.0.6478 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ ├── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ └── 0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch │ ├── chromium_129.0.6668 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ ├── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ └── 0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch │ ├── chromium_130.0.6723 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ ├── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ └── 0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch │ ├── chromium_131.0.6778 │ ├── 0013-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ ├── 0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch │ ├── 0015-ui-gfx-linux-Force-disabling-modifiers.patch │ └── 0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch │ ├── chromium_132.0.6834 │ ├── 0012-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0013-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ └── 0014-ui-gfx-linux-Force-disabling-modifiers.patch │ ├── chromium_136.0.7103 │ ├── 0012-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0013-media-gpu-sandbox-Only-depend-dri-for-X11.patch │ └── 0014-ui-gfx-linux-Force-disabling-modifiers.patch │ ├── chromium_98.0.4758 │ ├── 0014-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0010-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ ├── 0007-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch │ └── 0005-media-Enable-mojo-media-when-using-v4l2-codec-on-des.patch │ ├── chromium_100.0.4896 │ ├── 0012-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ └── 0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch │ └── chromium_101.0.4951 │ ├── 0012-content-gpu-Only-depend-dri-for-X11.patch │ ├── 0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch │ └── 0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch ├── LICENSE ├── recipes-devtools ├── android-tools │ └── files │ │ ├── 10-adbd-rockchip.conf │ │ ├── android-gadget-start │ │ ├── android-gadget-cleanup │ │ └── android-gadget-setup ├── rtl-tools │ ├── files │ │ ├── hciattach_h4.h │ │ └── Makefile │ └── rtl-tools.bb ├── io │ └── io.bb └── brcm-tools │ └── brcm-tools.bb ├── recipes-graphics ├── wayland │ ├── wayland_%.bbappend │ └── weston_%.bbappend ├── mesa │ └── mesa-gl%.bbappend ├── drm │ └── libdrm_%.bbappend ├── drm-cursor │ └── drm-cursor.bb ├── rockchip-librga │ └── rockchip-librga.bb └── xorg-xserver │ └── xserver-xorg_%.bbappend ├── recipes-benchmark └── glmark2 │ └── glmark2_%.bbappend ├── recipes-bsp ├── u-boot │ ├── u-boot-dummy.bb │ └── u-boot-rockchip │ │ └── 0003-Revert-Makefile-enable-Werror-option.patch └── rockchip-npu │ └── files │ └── rockchip-npu.sh ├── classes └── auto-patch.bbclass ├── wic └── generic-gptdisk.wks.in └── COPYING.MIT /recipes-kernel/linux/files/ext4.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_EXT4_FS=y 2 | -------------------------------------------------------------------------------- /recipes-kernel/linux/files/cgroups.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_CGROUPS=y 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.pyo 3 | *.swp 4 | *.orig 5 | *.rej 6 | *~ 7 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0_1.22.12: -------------------------------------------------------------------------------- 1 | gstreamer1.0_1.22.9 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0_1.24.10: -------------------------------------------------------------------------------- 1 | gstreamer1.0_1.24.6 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0_1.24.12: -------------------------------------------------------------------------------- 1 | gstreamer1.0_1.24.6 -------------------------------------------------------------------------------- /recipes-core/busybox/files/gpt-label.cfg: -------------------------------------------------------------------------------- 1 | CONFIG_FEATURE_GPT_LABEL=y 2 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.12: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-bad_1.22.9 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.10: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-bad_1.24.6 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.12: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-bad_1.24.11 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.12: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-base_1.22.9 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.24.10: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-base_1.24.6 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.24.12: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-base_1.24.11 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.12: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-good_1.22.9 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.10: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-good_1.24.6 -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.12: -------------------------------------------------------------------------------- 1 | gstreamer1.0-plugins-good_1.24.11 -------------------------------------------------------------------------------- /recipes-core/util-linux/util-linux_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | PACKAGECONFIG:remove = "libmount-mountfd-support" 5 | -------------------------------------------------------------------------------- /conf/machine/include/rk3288w.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/rk3288.inc 5 | 6 | MALI_SUBVERSION := "r1p0" 7 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium-x11_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2021, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DEPENDS:append = " libxshmfence libxkbcommon" 5 | -------------------------------------------------------------------------------- /recipes-core/coreutils/coreutils_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | CACHED_CONFIGUREVARS:class-native = " FORCE_UNSAFE_CONFIGURE=1" 5 | -------------------------------------------------------------------------------- /recipes-core/systemd/systemd_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | # Avoid installing hwdb 5 | EXTRA_OEMAKE:append = " dist_udevhwdb_DATA=" 6 | -------------------------------------------------------------------------------- /recipes-core/sysvinit/sysvinit_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" 5 | 6 | inherit auto-patch 7 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium-ozone-wayland_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | CHROMIUM_EXTRA_ARGS:append = " --enable-wayland-ime" 5 | -------------------------------------------------------------------------------- /recipes-core/glibc/glibc-locale_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | # Avoid dup files warning in multilib case 5 | SSTATE_ALLOW_OVERLAP_FILES:append = " ${LOCALETREESRC}" 6 | -------------------------------------------------------------------------------- /recipes-core/busybox/busybox_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 5 | 6 | SRC_URI:append = " \ 7 | file://gpt-label.cfg \ 8 | " 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | All metadata files (including, but not limited to bb, bbappend, 2 | bbclass, inc and conf files) are MIT licensed unless otherwise stated. 3 | Source code included in tree for individual recipes is under the 4 | LICENSE stated in the associated recipe (.bb file) unless otherwise 5 | stated. 6 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3288w-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3288w EVB 6 | 7 | require conf/machine/rockchip-rk3288-evb.conf 8 | 9 | MALI_SUBVERSION := "r1p0" 10 | -------------------------------------------------------------------------------- /recipes-core/glibc/glibc_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | # Avoid dup files warning in multilib case 5 | SSTATE_ALLOW_OVERLAP_FILES:append = " ${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale" 6 | -------------------------------------------------------------------------------- /recipes-devtools/android-tools/files/10-adbd-rockchip.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | Environment="PROC_service.adb.tcp.port=5555" 3 | 4 | # Already in android-tools-adbd.service 5 | # ExecStartPre=/usr/bin/android-gadget-setup 6 | 7 | ExecStartPost=/usr/bin/android-gadget-start 8 | ExecStopPost=/usr/bin/android-gadget-cleanup 9 | -------------------------------------------------------------------------------- /recipes-devtools/android-tools/files/android-gadget-start: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | # Wait for usb ffs ready 6 | for i in `seq 100`;do 7 | fuser /dev/usb-ffs/adb/ep* && break 8 | sleep .01 9 | done 10 | 11 | ls /sys/class/udc/ | head -n 1 | \ 12 | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC 13 | -------------------------------------------------------------------------------- /recipes-graphics/wayland/wayland_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | # 4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" 5 | 6 | SRC_URI:append = " \ 7 | file://0001-HACK-egl-Prefer-using-libmali.so.1-s-Wayland-EGL-API.patch \ 8 | " 9 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3568-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3568 EVB 6 | 7 | require conf/machine/rockchip-rk3566-evb.conf 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3568-evb1-ddr4-v10-linux.dtb" 10 | -------------------------------------------------------------------------------- /recipes-devtools/rtl-tools/files/hciattach_h4.h: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-2.0 2 | #include 3 | int h4_download_patch(int fd, int index, uint8_t *data, int len); 4 | int h4_vendor_change_speed(int fd, uint32_t baudrate); 5 | int h4_hci_reset(int fd); 6 | int h4_read_local_ver(int fd); 7 | int h4_vendor_read_rom_ver(int fd); 8 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3288-evb-act8846.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3288 ACT8846 EVB 6 | 7 | require conf/machine/rockchip-rk3288-evb.conf 8 | 9 | KERNEL_DEVICETREE = "rk3288-evb-act8846.dtb" 10 | -------------------------------------------------------------------------------- /recipes-kernel/perf/perf.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | # Override EXTRA_CFLAGSS and add -Wno-stringop-truncation for gcc 8+ 5 | EXTRA_OEMAKE:append = ' EXTRA_CFLAGS="-ldw -Wno-stringop-truncation"' 6 | PERF_SRC:append = " include/" 7 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 3)}" 5 | PATCHPATH = "${CURDIR}/${BPN}_${MAJ_VER}" 6 | 7 | inherit auto-patch 8 | 9 | ERROR_QA:remove = "patch-status" 10 | -------------------------------------------------------------------------------- /recipes-benchmark/glmark2/glmark2_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | # Some opengl[es] libraries are multithreaded. 5 | LDFLAGS:append = " -pthread" 6 | 7 | DEPENDS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-protocols', '', d)}" 8 | -------------------------------------------------------------------------------- /conf/machine/include/rk3326.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/px30.inc 5 | 6 | RK_SOC_FAMILY := "rk3326" 7 | 8 | KBUILD_DEFCONFIG := "rk3326_linux_defconfig" 9 | KBUILD_DEFCONFIGS := "px30_linux_defconfig rk3326_linux.config" 10 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | # 4 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 3)}" 5 | PATCHPATH = "${CURDIR}/${BPN}_${MAJ_VER}" 6 | 7 | inherit auto-patch 8 | 9 | ERROR_QA:remove = "patch-status" 10 | -------------------------------------------------------------------------------- /recipes-graphics/mesa/mesa-gl%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | PACKAGECONFIG:class-target:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gallium', '', d)}" 5 | 6 | EXTRA_OEMESON:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '-Dglx=dri', '', d)}" 7 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3506-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3506 EVB 6 | 7 | require conf/machine/include/rk3506.inc 8 | 9 | KERNEL_DEVICETREE = "rk3506g-evb1-v10.dtb" 10 | 11 | UBOOT_MACHINE = "rk3506_defconfig" 12 | RK_UBOOT_SPL = "1" 13 | -------------------------------------------------------------------------------- /recipes-multimedia/v4l2apps/v4l-utils_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | PATCHPATH = "${CURDIR}/${BPN}" 5 | 6 | inherit auto-patch 7 | 8 | INSANE_SKIP:libv4l:append = " dev-so" 9 | 10 | # The chromium will dlopen it 11 | FILES:libv4l:append = " ${libdir}/libv4l2.so" 12 | -------------------------------------------------------------------------------- /conf/machine/include/rk3308.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc 5 | require conf/machine/include/rockchip-common.inc 6 | 7 | RK_SOC_FAMILY := "rk3308" 8 | 9 | KBUILD_DEFCONFIG := "rk3308_linux_defconfig" 10 | 11 | RK_LOADER_BACKUP_NUM := "2" 12 | -------------------------------------------------------------------------------- /conf/machine/include/rk3506.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv7a/tune-cortexa7.inc 5 | require conf/machine/include/rockchip-common.inc 6 | 7 | SERIAL_CONSOLES ?= "115200;ttyFIQ0" 8 | 9 | RK_SOC_FAMILY := "rk3506" 10 | 11 | KBUILD_DEFCONFIG := "rk3506_defconfig" 12 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 3)}" 5 | PATCHPATH = "${CURDIR}/${BPN}_${MAJ_VER}" 6 | 7 | inherit auto-patch 8 | 9 | DEPENDS:append = " rockchip-librga" 10 | 11 | ERROR_QA:remove = "patch-status" 12 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 3)}" 5 | PATCHPATH = "${CURDIR}/${BPN}_${MAJ_VER}" 6 | 7 | inherit auto-patch 8 | 9 | DEPENDS:append = " rockchip-librga" 10 | 11 | ERROR_QA:remove = "patch-status" 12 | -------------------------------------------------------------------------------- /conf/machine/include/rk3328.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | RK_SOC_FAMILY := "rk3328" 9 | 10 | MALI_GPU := "utgard-450" 11 | MALI_VERSION ?= "r7p0" 12 | -------------------------------------------------------------------------------- /conf/machine/include/rk356x.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv8-2a/tune-cortexa55.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | RK_SOC_FAMILY := "rk3568" 9 | 10 | MALI_GPU := "bifrost-g52" 11 | MALI_VERSION ?= "g13p0" 12 | 13 | RK_ISP_VERSION := "2.1" 14 | -------------------------------------------------------------------------------- /conf/machine/rockchip-custom.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: CUSTOM BOARD 6 | 7 | require conf/machine/include/rockchip-common.inc 8 | 9 | PREFERRED_PROVIDER_virtual/kernel := "linux-dummy" 10 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-dummy" 11 | PREFERRED_PROVIDER_u-boot = "u-boot-dummy" 12 | USE_DEPMOD := "0" 13 | -------------------------------------------------------------------------------- /conf/machine/include/rk3562.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | RK_SOC_FAMILY := "rk3562" 9 | 10 | MALI_GPU := "bifrost-g52" 11 | MALI_VERSION ?= "g13p0" 12 | 13 | RK_ISP_VERSION := "3.2_LITE" 14 | -------------------------------------------------------------------------------- /conf/machine/include/rk3576.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv8a/tune-cortexa72-cortexa53.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | RK_SOC_FAMILY := "rk3576" 9 | 10 | MALI_GPU := "bifrost-g52" 11 | MALI_VERSION ?= "g13p0" 12 | 13 | RK_ISP_VERSION := "3.9" 14 | -------------------------------------------------------------------------------- /recipes-devtools/android-tools/files/android-gadget-cleanup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | [ -d /sys/kernel/config/usb_gadget/adb ] || exit 0 4 | 5 | cd /sys/kernel/config/usb_gadget/adb 6 | 7 | echo -n "" > UDC || true 8 | 9 | umount /dev/usb-ffs/adb 10 | rmdir /dev/usb-ffs/adb 11 | 12 | rm configs/c.1/ffs.usb0 13 | 14 | rmdir configs/c.1/strings/0x409 15 | rmdir configs/c.1 16 | 17 | rmdir functions/ffs.usb0 18 | rmdir strings/0x409 19 | 20 | cd .. 21 | rmdir adb 22 | -------------------------------------------------------------------------------- /conf/machine/rockchip-px3se-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: PX3SE EVB 6 | 7 | require conf/machine/include/px3se.inc 8 | 9 | KERNEL_DEVICETREE = "px3se-evb.dtb" 10 | 11 | UBOOT_MACHINE = "evb-px3se_defconfig" 12 | RK_TEE_ADDR = "0x68400000" 13 | 14 | RK_WIFIBT_RRECOMMENDS = " \ 15 | rkwifibt-firmware-rtl8723ds-bt \ 16 | rtl-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3288-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3288 EVB 6 | 7 | require conf/machine/include/rk3288.inc 8 | 9 | KERNEL_DEVICETREE = "rk3288-evb-rk808-linux.dtb" 10 | 11 | UBOOT_MACHINE = "rk3288_defconfig" 12 | RK_TEE_ADDR = "0x08400000" 13 | 14 | RK_WIFIBT_RRECOMMENDS = " \ 15 | rkwifibt-firmware \ 16 | brcm-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/include/px30.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | RK_SOC_FAMILY := "px30" 9 | 10 | KBUILD_DEFCONFIG := "px30_linux_defconfig" 11 | 12 | MALI_GPU := "bifrost-g31" 13 | MALI_VERSION ?= "g2p0" 14 | 15 | RK_ISP_VERSION := "1" 16 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3328-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3328 EVB 6 | 7 | require conf/machine/include/rk3328.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3328-evb.dtb" 10 | 11 | UBOOT_MACHINE = "rk3328_defconfig" 12 | 13 | RK_WIFIBT_RRECOMMENDS = " \ 14 | rkwifibt-firmware-ap6356-wifi \ 15 | rkwifibt-firmware-ap6356-bt \ 16 | brcm-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/u-boot-dummy.bb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | SUMMARY = "Dummy loader for external bootloaders" 5 | SECTION = "bootloaders" 6 | 7 | LICENSE = "MIT" 8 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 9 | 10 | PROVIDES = "virtual/bootloader" 11 | 12 | addtask do_deploy 13 | 14 | # Do nothing here 15 | do_deploy () { 16 | : 17 | } 18 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3588-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2021, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3588 EVB 6 | 7 | require conf/machine/include/rk3588.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3588-evb1-lp4-v10-linux.dtb" 10 | 11 | UBOOT_MACHINE = "rk3588_defconfig" 12 | 13 | RK_WIFIBT_RRECOMMENDS = " \ 14 | rkwifibt-firmware-ap6275p-wifi \ 15 | rkwifibt-firmware-ap6275-bt \ 16 | brcm-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/include/rk3588.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv8-2a/tune-cortexa76-cortexa55.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | RK_SOC_FAMILY := "rk3588" 9 | 10 | KBUILD_DEFCONFIG := "rk3588_linux_defconfig" 11 | 12 | MALI_GPU := "valhall-g610" 13 | MALI_VERSION ?= "g13p0" 14 | 15 | RK_ISP_VERSION := "3.0" 16 | -------------------------------------------------------------------------------- /conf/machine/rockchip-px30-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: PX30 EVB 6 | 7 | require conf/machine/include/px30.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/px30-evb-ddr3-v10-linux.dtb" 10 | 11 | UBOOT_MACHINE = "evb-px30_defconfig" 12 | 13 | RK_WIFIBT_RRECOMMENDS = " \ 14 | rkwifibt-firmware-ap6212a1-wifi \ 15 | rkwifibt-firmware-ap6212a1-bt \ 16 | brcm-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3308-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3308 EVB 6 | 7 | require conf/machine/include/rk3308.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3308-evb-dmic-pdm-v11.dtb" 10 | 11 | UBOOT_MACHINE = "evb-rk3308_defconfig" 12 | 13 | RK_WIFIBT_RRECOMMENDS = " \ 14 | rkwifibt-firmware-ap6255-wifi \ 15 | rkwifibt-firmware-ap6255-bt \ 16 | brcm-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3326-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3326 EVB 6 | 7 | require conf/machine/include/rk3326.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3326-evb-lp3-v10-linux.dtb" 10 | 11 | UBOOT_MACHINE = "evb-rk3326_defconfig" 12 | 13 | RK_WIFIBT_RRECOMMENDS = " \ 14 | rkwifibt-firmware-ap6212a1-wifi \ 15 | rkwifibt-firmware-ap6212a1-bt \ 16 | brcm-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3399pro-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3399pro EVB 6 | 7 | require conf/machine/include/rk3399.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3399pro-evb-v11-linux.dtb" 10 | 11 | UBOOT_MACHINE = "rk3399pro_defconfig" 12 | 13 | RK_WIFIBT_RRECOMMENDS = " \ 14 | rkwifibt-firmware-ap6354-wifi \ 15 | rkwifibt-firmware-ap6354-bt \ 16 | brcm-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/include/px3se.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv7a/tune-cortexa7.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | SERIAL_CONSOLES ?= "115200;ttyFIQ0" 9 | 10 | RK_SOC_FAMILY := "px3se" 11 | 12 | RK_UBOOT_CFG ?= "evb-px3se" 13 | 14 | MALI_GPU := "utgard-400" 15 | MALI_VERSION ?= "r7p0" 16 | MALI_SUBVERSION := "r1p1" 17 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3576-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3576 EVB 6 | 7 | require conf/machine/include/rk3576.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3576-evb1-v10-linux.dtb" 10 | 11 | UBOOT_MACHINE = "rk3576_defconfig" 12 | RK_UBOOT_SPL = "1" 13 | 14 | RK_WIFIBT_RRECOMMENDS = " \ 15 | rkwifibt-firmware-ap6275p-wifi \ 16 | rkwifibt-firmware-ap6275-bt \ 17 | brcm-tools \ 18 | " 19 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3308-evb-aarch32.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3308 EVB aarch32 6 | 7 | DEFAULTTUNE ?= "armv7vethf-neon" 8 | require conf/machine/rockchip-rk3308-evb.conf 9 | 10 | KBUILD_DEFCONFIG = "rk3308_linux_aarch32_defconfig" 11 | KERNEL_DEVICETREE = "rk3308-evb-dmic-pdm-v11-aarch32.dtb" 12 | KERNEL_IMAGETYPE = "zImage" 13 | 14 | UBOOT_MACHINE = "evb-aarch32-rk3308_defconfig" 15 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3562-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3562 EVB 6 | 7 | require conf/machine/include/rk3562.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3562-evb1-lp4x-v10-linux.dtb" 10 | 11 | UBOOT_MACHINE = "rk3562_defconfig" 12 | RK_UBOOT_SPL = "1" 13 | 14 | RK_WIFIBT_RRECOMMENDS = " \ 15 | rkwifibt-firmware-ap6275s-wifi \ 16 | rkwifibt-firmware-ap6275-bt \ 17 | brcm-tools \ 18 | " 19 | -------------------------------------------------------------------------------- /recipes-devtools/rtl-tools/files/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS := -Wall -g 2 | #CC := $(CROSS_COMPLE)gcc 3 | all: rtk_hciattach 4 | OBJS := hciattach.o hciattach_rtk.o hciattach_h4.o rtb_fwc.o 5 | 6 | rtk_hciattach: $(OBJS) 7 | $(CC) -o rtk_hciattach $(OBJS) 8 | 9 | %.o: %.c 10 | $(CC) $(CFLAGS) -c $< -o $@ 11 | 12 | clean: 13 | rm -f $(OBJS) rtk_hciattach 14 | 15 | tags: FORCE 16 | ctags -R 17 | find ./ -name "*.h" -o -name "*.c" -o -name "*.cc" -o -name "*.cpp" > cscope.files 18 | cscope -bkq -i cscope.files 19 | PHONY += FORCE 20 | FORCE: 21 | -------------------------------------------------------------------------------- /conf/machine/include/rk3399.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2025, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv8a/tune-cortexa72-cortexa53.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | RK_SOC_FAMILY := "rk3399" 9 | 10 | MALI_GPU := "midgard-t86x" 11 | MALI_VERSiON ?= "r18p0" 12 | 13 | RK_ISP_VERSION := "1" 14 | 15 | MACHINE_EXTRA_RRECOMMENDS:append = " \ 16 | linux-firmware-rockchip-dptx \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3399-sapphire-excavator.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3399 Sapphire Excavator 6 | 7 | require conf/machine/include/rk3399.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3399-sapphire-excavator-linux.dtb" 10 | 11 | UBOOT_MACHINE = "evb-rk3399_defconfig" 12 | 13 | RK_WIFIBT_RRECOMMENDS = " \ 14 | rkwifibt-firmware-ap6354-wifi \ 15 | rkwifibt-firmware-ap6354-bt \ 16 | brcm-tools \ 17 | " 18 | -------------------------------------------------------------------------------- /recipes-graphics/drm/libdrm_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | EXTRA_OECONF:append = " \ 5 | --disable-intel \ 6 | --disable-radeon \ 7 | --disable-amdgpu \ 8 | --disable-nouveau \ 9 | --disable-vmwgfx \ 10 | --disable-omap-experimental-api \ 11 | --disable-etnaviv-experimental-api \ 12 | --disable-exynos-experimental-api \ 13 | --disable-freedreno \ 14 | --disable-tegra-experimental-api \ 15 | --disable-vc4 \ 16 | --enable-install-test-programs \ 17 | " 18 | -------------------------------------------------------------------------------- /conf/machine/rockchip-rk3566-evb.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2020, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | #@TYPE: Machine 5 | #@NAME: RK3566 EVB 6 | 7 | require conf/machine/include/rk356x.inc 8 | 9 | KERNEL_DEVICETREE = "rockchip/rk3566-evb2-lp4x-v10-linux.dtb" 10 | 11 | UBOOT_MACHINE = "rk3568_defconfig" 12 | 13 | RK_WIFIBT_RRECOMMENDS = " \ 14 | rkwifibt-firmware-ap6398s-wifi \ 15 | rkwifibt-firmware-ap6398s-bt \ 16 | brcm-tools \ 17 | " 18 | 19 | MACHINE_EXTRA_RRECOMMENDS:append = " \ 20 | drm-cursor \ 21 | " 22 | -------------------------------------------------------------------------------- /recipes-devtools/io/io.bb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Memory accesses tool" 5 | SECTION = "devel" 6 | LICENSE = "Apache-2.0" 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 8 | 9 | SRC_URI = "file://io.c" 10 | 11 | S = "${UNPACKDIR}" 12 | 13 | do_compile() { 14 | ${CC} ${CFLAGS} ${LDFLAGS} io.c -o io 15 | } 16 | 17 | do_install() { 18 | install -d ${D}${bindir} 19 | install -m 0755 io ${D}${bindir} 20 | } 21 | -------------------------------------------------------------------------------- /conf/machine/include/rk3288.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require conf/machine/include/arm/armv7a/tune-cortexa17.inc 5 | require conf/machine/include/rockchip-common.inc 6 | require conf/machine/include/mali.inc 7 | 8 | SERIAL_CONSOLES ?= "115200;ttyFIQ0" 9 | 10 | RK_SOC_FAMILY := "rk3288" 11 | 12 | MALI_GPU := "midgard-t76x" 13 | MALI_VERSION ?= "r18p0" 14 | MALI_SUBVERSION := "${@bb.utils.contains('MACHINE_FEATURES', 'rk3288w', 'r1p0', 'r0p0', d)}" 15 | 16 | RK_ISP_VERSION := "1" 17 | -------------------------------------------------------------------------------- /recipes-multimedia/alsa/rockchip-alsa-config.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Rockchip ALSA config files" 5 | SECTION = "multimedia" 6 | 7 | LICENSE = "Apache-2.0" 8 | LIC_FILES_CHKSUM = "file://NOTICE;md5=9645f39e9db895a4aa6e02cb57294595" 9 | 10 | inherit local-git 11 | 12 | SRC_URI = " \ 13 | git://github.com/JeffyCN/mirrors.git;protocol=https;branch=alsa-config; \ 14 | " 15 | SRCREV = "1e0c4b5382b84ed629b1ca9e40c814103b92ee93" 16 | 17 | inherit meson 18 | 19 | FILES:${PN} = "*" 20 | -------------------------------------------------------------------------------- /recipes-graphics/drm-cursor/drm-cursor.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2021, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "A hook of drm cursor APIs to fake cursor plane" 5 | SECTION = "libs" 6 | 7 | LICENSE = "LGPL-2.1-or-later" 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d749e86a105281d7a44c2328acebc4b0" 9 | 10 | DEPENDS = "libdrm virtual/libgles2 virtual/libgbm" 11 | 12 | SRC_URI = " \ 13 | git://github.com/JeffyCN/drm-cursor.git;protocol=https;branch=master \ 14 | " 15 | SRCREV = "733510b21da23a7d9bc6976624e5a0dea14dc667" 16 | 17 | inherit meson pkgconfig 18 | -------------------------------------------------------------------------------- /recipes-core/udev/udev-conf-rockchip.bb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2022, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Rockchip configuration files for udev." 5 | LICENSE = "MIT" 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 7 | 8 | SRC_URI = " \ 9 | file://99-rockchip-permissions.rules \ 10 | " 11 | 12 | do_install() { 13 | install -d ${D}${nonarch_base_libdir}/udev/rules.d 14 | install -m 0644 ${UNPACKDIR}/99-rockchip-permissions.rules ${D}${nonarch_base_libdir}/udev/rules.d/99-rockchip-permissions.rules 15 | } 16 | -------------------------------------------------------------------------------- /recipes-graphics/wayland/weston_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DEPENDS:append = " rockchip-librga" 5 | 6 | SRCREV = "${AUTOREV}" 7 | SRC_URI:append = " git://github.com/JeffyCN/weston;protocol=https;nobranch=1;branch=${@oe.utils.trim_version('${PV}', 2)}_2025_09_29;" 8 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz2" 9 | 10 | # The custom player demo depends on gstreamer. 11 | DEPENDS:append = " ${@bb.utils.contains('PACKAGECONFIG', 'clients', 'gstreamer1.0-plugins-base', '', d)}" 12 | -------------------------------------------------------------------------------- /recipes-kernel/linux-libc-headers/linux-libc-headers_4.19-custom.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require recipes-kernel/linux-libc-headers/linux-libc-headers.inc 5 | 6 | inherit auto-patch 7 | 8 | inherit local-git 9 | 10 | SRCREV = "82957dba3977fd50d4c013e0d359f3203072a0f2" 11 | SRC_URI = " \ 12 | git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=kernel-4.19-2022_01_10; \ 13 | " 14 | 15 | # Reset to the original value 16 | S = "${UNPACKDIR}/${BP}" 17 | 18 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" 19 | -------------------------------------------------------------------------------- /recipes-kernel/linux-libc-headers/linux-libc-headers_5.10-custom.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2021, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require recipes-kernel/linux-libc-headers/linux-libc-headers.inc 5 | 6 | inherit auto-patch 7 | 8 | inherit local-git 9 | 10 | SRCREV = "72de5a560a44fb81549f1da325a1b3e323a7aaf7" 11 | SRC_URI = " \ 12 | git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=kernel-5.10-2022_01_10; \ 13 | " 14 | 15 | # Reset to the original value 16 | S = "${UNPACKDIR}/${BP}" 17 | 18 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 19 | -------------------------------------------------------------------------------- /recipes-kernel/linux-libc-headers/linux-libc-headers_6.1-custom.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require recipes-kernel/linux-libc-headers/linux-libc-headers.inc 5 | 6 | inherit auto-patch 7 | 8 | inherit local-git 9 | 10 | SRCREV = "31ba856fa45c27046ebdc111a9b62f9c21103e85" 11 | SRC_URI = " \ 12 | git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=kernel-6.1-2024_01_02; \ 13 | " 14 | 15 | # Reset to the original value 16 | S = "${UNPACKDIR}/${BP}" 17 | 18 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 19 | -------------------------------------------------------------------------------- /conf/machine/include/mali.inc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl" 5 | PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl" 6 | 7 | PREFERRED_PROVIDER_virtual/egl ?= "rockchip-libmali" 8 | PREFERRED_PROVIDER_virtual/libgles1 ?= "rockchip-libmali" 9 | PREFERRED_PROVIDER_virtual/libgles2 ?= "rockchip-libmali" 10 | PREFERRED_PROVIDER_virtual/libgles3 ?= "rockchip-libmali" 11 | PREFERRED_PROVIDER_virtual/libopencl ?= "rockchip-libmali" 12 | PREFERRED_PROVIDER_virtual/libgbm ?= "rockchip-libmali" 13 | 14 | DEPENDS:append:pn-mesa-gl = " rockchip-libmali" 15 | -------------------------------------------------------------------------------- /recipes-bsp/rockchip-npu/files/rockchip-npu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: rockchip npu initial script 4 | # Required-Start: 5 | # Required-Stop: 6 | # Should-Start: mountvirtfs 7 | # Should-stop: 8 | # Default-Start: S 9 | # Default-Stop: 10 | # Short-Description: Custom initial script for chromium browser 11 | ### END INIT INFO 12 | 13 | { 14 | unset FW_TYPE 15 | [ -e "/sys/devices/platform/f8000000.pcie/pcie_reset_ep" ] && \ 16 | FW_TYPE="_pcie" 17 | 18 | cd /usr/share/npu_fw${FW_TYPE} 19 | 20 | npu_upgrade${FW_TYPE} MiniLoaderAll.bin uboot.img trust.img boot.img 21 | sleep 1 22 | npu_transfer_proxy 23 | } & 24 | 25 | exit 0 26 | -------------------------------------------------------------------------------- /recipes-multimedia/v4l2apps/v4l-rkmpp.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "A V4L2 plugin that wraps rockchip-mpp for the chromium's V4L2 VDA/VEA" 5 | 6 | SECTION = "libs" 7 | 8 | LICENSE = "LGPL-2.1-or-later" 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=d749e86a105281d7a44c2328acebc4b0" 10 | 11 | SRCREV = "131d22430dc1a058977c2e24e6f4709576de3e3e" 12 | SRC_URI = "git://github.com/JeffyCN/libv4l-rkmpp.git;protocol=https;branch=master" 13 | 14 | DEPENDS = "rockchip-mpp libv4l" 15 | 16 | inherit meson pkgconfig 17 | 18 | FILES:${PN} = "${libdir}/libv4l/plugins/*.so" 19 | -------------------------------------------------------------------------------- /classes/auto-patch.bbclass: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | CURDIR := "${THISDIR}/" 5 | PATCHPATH ?= "${@d.getVar('CURDIR') + d.getVar('BPN') + '_' + d.getVar('PV')}" 6 | 7 | python () { 8 | dir = d.getVar('PATCHPATH') or '' 9 | if not os.path.isdir(dir): 10 | return 11 | 12 | bb.parse.mark_dependency(d, dir) 13 | 14 | files = os.listdir(dir) 15 | files.sort() 16 | for file in files: 17 | if file.endswith('.patch'): 18 | d.appendVar('SRC_URI', ' file://' + dir + '/' + file) 19 | bb.debug(2, 'Adding patch: ' + file + ' for ' + dir) 20 | } 21 | -------------------------------------------------------------------------------- /recipes-graphics/rockchip-librga/rockchip-librga.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Rockchip RGA 2D graphics acceleration library" 5 | SECTION = "libs" 6 | 7 | LICENSE = "Apache-2.0" 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=89aea4e17d99a7cacdbeed46a0096b10" 9 | 10 | DEPENDS = "libdrm" 11 | 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" 13 | 14 | inherit local-git 15 | 16 | SRC_URI = " \ 17 | git://github.com/JeffyCN/mirrors.git;protocol=https;branch=linux-rga-multi; \ 18 | " 19 | SRCREV = "c6105b06ade0e5dc7f16924c7f0f5e9dcdb198bc" 20 | 21 | inherit meson pkgconfig 22 | 23 | EXTRA_OEMESON = "-Dlibdrm=true" 24 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-rockchip_4.4.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require recipes-kernel/linux/linux-yocto.inc 5 | require linux-rockchip.inc 6 | 7 | inherit local-git 8 | 9 | SRCREV = "e7a4fc70448ca2f66b3df50cabe527916b42bdad" 10 | SRC_URI = " \ 11 | git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=kernel-4.4-2022_11_23; \ 12 | file://${THISDIR}/files/cgroups.cfg \ 13 | " 14 | 15 | KERNEL_VERSION_SANITY_SKIP = "1" 16 | LINUX_VERSION ?= "4.4" 17 | 18 | SRC_URI:append = " ${@bb.utils.contains('IMAGE_FSTYPES', 'ext4', \ 19 | 'file://${THISDIR}/files/ext4.cfg', \ 20 | '', \ 21 | d)}" 22 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/files/chromium-init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ### BEGIN INIT INFO 3 | # Provides: chromium browser initial script 4 | # Required-Start: 5 | # Required-Stop: 6 | # Should-Start: mountvirtfs 7 | # Should-stop: 8 | # Default-Start: S 9 | # Default-Stop: 10 | # Short-Description: Custom initial script for chromium browser 11 | ### END INIT INFO 12 | 13 | # Create dummy video node for V4L2 VDA/VEA with rkmpp plugin 14 | for type in dec enc; do 15 | dev=/dev/video-${type}0 16 | echo $type > $dev 17 | chmod 660 $dev 18 | chown root:video $dev 19 | done 20 | 21 | # Link /usr/lib64 for dlopen libv4l2.so 22 | [ -e /lib/ld-linux-aarch64.so.1 -a ! -e /usr/lib64 ] && \ 23 | ln -s lib /usr/lib64 24 | 25 | exit 0 26 | -------------------------------------------------------------------------------- /recipes-kernel/linux-libc-headers/linux-libc-headers_4.4-custom.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require recipes-kernel/linux-libc-headers/linux-libc-headers.inc 5 | 6 | inherit auto-patch 7 | 8 | inherit local-git 9 | 10 | SRCREV = "f207a103477d8c601d89db381f07246d6942d9d0" 11 | SRC_URI = " \ 12 | git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=kernel-2022_06_27; \ 13 | " 14 | 15 | # Reset to the original value 16 | S = "${UNPACKDIR}/${BP}" 17 | 18 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 19 | 20 | do_install_armmultilib:prepend() { 21 | touch ${D}${includedir}/asm/bpf_perf_event.h 22 | } 23 | -------------------------------------------------------------------------------- /wic/generic-gptdisk.wks.in: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | # 4 | # long-description: Creates a GPT disk image for Rockchip boards 5 | 6 | # 0~32K: GPT 7 | bootloader --ptable gpt 8 | part --source rawcopy --sourceparams="file=idblock.img" --align 32 --no-table 9 | part --source rawcopy --sourceparams="file=uboot.img" --part-name uboot --offset 2M 10 | part --source rawcopy --sourceparams="file=trust.img" --part-name trust --align 4 11 | part --source rawcopy --sourceparams="file=boot.img" --part-name boot --align 4 12 | part / --source rootfs --fstype ${RK_ROOTFS_TYPE} --part-name rootfs --uuid ${RK_ROOTDEV_UUID} --mkfs-extraopts "${RK_ROOTFS_EXTRAOPTS}" --align 8192 13 | -------------------------------------------------------------------------------- /recipes-devtools/rtl-tools/rtl-tools.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Realtek develop tools" 5 | SECTION = "devel" 6 | LICENSE = "GPL-2.0-only" 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" 8 | 9 | SRC_URI = " \ 10 | file://hciattach.c \ 11 | file://hciattach.h \ 12 | file://hciattach_h4.c \ 13 | file://hciattach_h4.h \ 14 | file://hciattach_rtk.c \ 15 | file://Makefile \ 16 | file://rtb_fwc.c \ 17 | file://rtb_fwc.h \ 18 | " 19 | 20 | S = "${UNPACKDIR}" 21 | 22 | EXTRA_OEMAKE = 'CC="${CC} ${LDFLAGS}"' 23 | 24 | do_install() { 25 | install -d ${D}${bindir} 26 | install -m 0755 rtk_hciattach ${D}${bindir} 27 | } 28 | -------------------------------------------------------------------------------- /recipes-devtools/brcm-tools/brcm-tools.bb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DESCRIPTION = "Broadcom develop tools" 5 | SECTION = "devel" 6 | LICENSE = "Apache-2.0" 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 8 | 9 | SRC_URI = " \ 10 | file://dhd_priv.c \ 11 | file://brcm_patchram_plus1.c \ 12 | " 13 | 14 | S = "${UNPACKDIR}" 15 | 16 | do_compile() { 17 | ${CC} ${CFLAGS} ${LDFLAGS} dhd_priv.c -o dhd_priv 18 | ${CC} ${CFLAGS} ${LDFLAGS} brcm_patchram_plus1.c -o brcm_patchram_plus1 19 | } 20 | 21 | do_install() { 22 | install -d ${D}${bindir} 23 | install -m 0755 dhd_priv ${D}${bindir} 24 | install -m 0755 brcm_patchram_plus1 ${D}${bindir} 25 | } 26 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-rockchip_4.19.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2020, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require recipes-kernel/linux/linux-yocto.inc 5 | require linux-rockchip.inc 6 | 7 | inherit local-git 8 | 9 | SRCREV = "9789c7416f009b1c7a064241a5f185b368b24732" 10 | SRC_URI = " \ 11 | git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=kernel-4.19-2022_11_23; \ 12 | file://${THISDIR}/files/cgroups.cfg \ 13 | " 14 | 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" 16 | 17 | KERNEL_VERSION_SANITY_SKIP = "1" 18 | LINUX_VERSION ?= "4.19" 19 | 20 | SRC_URI:append = " ${@bb.utils.contains('IMAGE_FSTYPES', 'ext4', \ 21 | 'file://${THISDIR}/files/ext4.cfg', \ 22 | '', \ 23 | d)}" 24 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-rockchip_6.1.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2024, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require recipes-kernel/linux/linux-yocto.inc 5 | require linux-rockchip.inc 6 | 7 | inherit local-git 8 | 9 | SRCREV = "ea9e2a9344bfe7f1130dee8100173b6cb95445d2" 10 | SRC_URI = " \ 11 | git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=kernel-6.1-2024_04_14; \ 12 | file://${THISDIR}/files/cgroups.cfg \ 13 | " 14 | 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 16 | 17 | KERNEL_VERSION_SANITY_SKIP = "1" 18 | LINUX_VERSION ?= "6.1" 19 | 20 | SRC_URI:append = " ${@bb.utils.contains('IMAGE_FSTYPES', 'ext4', \ 21 | 'file://${THISDIR}/files/ext4.cfg', \ 22 | '', \ 23 | d)}" 24 | -------------------------------------------------------------------------------- /recipes-core/sysvinit/sysvinit/0001-Rebooting-with-arg-by-default.patch: -------------------------------------------------------------------------------- 1 | From a8aaa5c9a404f8a28646e8d1a2d1ab4e29295485 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 16 Jul 2018 09:53:40 +0800 4 | Subject: [PATCH] Rebooting with arg by default 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | src/halt.c | 6 +++++- 9 | 1 file changed, 5 insertions(+), 1 deletion(-) 10 | 11 | diff --git a/src/halt.c b/src/halt.c 12 | index a1d6cef..d230661 100644 13 | --- a/src/halt.c 14 | +++ b/src/halt.c 15 | @@ -263,7 +263,11 @@ int main(int argc, char **argv) 16 | usage(); 17 | } 18 | } 19 | - if (argc != optind) usage(); 20 | + 21 | + if (argc != optind) { 22 | + user_message = argv[optind]; 23 | + do_sync = do_hard = 1; 24 | + } 25 | 26 | if (geteuid() != 0) { 27 | fprintf(stderr, "%s: must be superuser.\n", progname); 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-devtools/android-tools/files/android-gadget-setup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | vendor=0x2207 6 | product=0x0006 7 | manufacturer=Rockchip 8 | model="RK3xxx" 9 | serial=0123456789ABCDEF 10 | 11 | [ -d /sys/kernel/config/usb_gadget ] || modprobe libcomposite 12 | 13 | cd /sys/kernel/config/usb_gadget 14 | 15 | [ -d adb ] && /usr/bin/android-gadget-cleanup || true 16 | 17 | mkdir adb 18 | cd adb 19 | 20 | mkdir configs/c.1 21 | mkdir functions/ffs.usb0 22 | mkdir strings/0x409 23 | mkdir configs/c.1/strings/0x409 24 | echo -n "$vendor" > idVendor 25 | echo -n "$product" > idProduct 26 | echo "$serial" > strings/0x409/serialnumber 27 | echo "$manufacturer" > strings/0x409/manufacturer 28 | echo "$model" > strings/0x409/product 29 | echo "adb" > configs/c.1/strings/0x409/configuration 30 | ln -s functions/ffs.usb0 configs/c.1 31 | 32 | mkdir -p /dev/usb-ffs/adb 33 | mount -t functionfs usb0 /dev/usb-ffs/adb 34 | -------------------------------------------------------------------------------- /recipes-kernel/linux/linux-rockchip_5.10.bb: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2021, Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | require recipes-kernel/linux/linux-yocto.inc 5 | require linux-rockchip.inc 6 | 7 | inherit local-git 8 | 9 | SRCREV = "72de5a560a44fb81549f1da325a1b3e323a7aaf7" 10 | SRC_URI = " \ 11 | git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=kernel-5.10-2022_01_10; \ 12 | file://${THISDIR}/files/cgroups.cfg \ 13 | " 14 | 15 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 16 | 17 | KERNEL_VERSION_SANITY_SKIP = "1" 18 | LINUX_VERSION ?= "5.10" 19 | 20 | SRC_URI:append = " ${@bb.utils.contains('IMAGE_FSTYPES', 'ext4', \ 21 | 'file://${THISDIR}/files/ext4.cfg', \ 22 | '', \ 23 | d)}" 24 | 25 | do_patch:append() { 26 | sed -i 's/-I\($(BCMDHD_ROOT)\)/-I$(srctree)\/\1/g' \ 27 | ${S}/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/Makefile 28 | } 29 | -------------------------------------------------------------------------------- /recipes-bsp/u-boot/u-boot-rockchip/0003-Revert-Makefile-enable-Werror-option.patch: -------------------------------------------------------------------------------- 1 | From a81cd0767361ab5d5297c212b8cf2b09543c7424 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 22 Oct 2019 10:12:55 +0800 4 | Subject: [PATCH 3/3] Revert "Makefile: enable -Werror option" 5 | 6 | This reverts commit 76ba1d8a713bc964fc8e0a639f90344c4c60f026. 7 | --- 8 | Makefile | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/Makefile b/Makefile 12 | index d19486fa20..390f137bf2 100644 13 | --- a/Makefile 14 | +++ b/Makefile 15 | @@ -367,7 +367,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__ 16 | KBUILD_CFLAGS := -Wall -Wstrict-prototypes \ 17 | -Wno-format-security \ 18 | -fno-builtin -ffreestanding 19 | -KBUILD_CFLAGS += -fshort-wchar -Werror 20 | +KBUILD_CFLAGS += -fshort-wchar 21 | KBUILD_AFLAGS := -D__ASSEMBLY__ 22 | 23 | # Read UBOOTRELEASE from include/config/uboot.release (if it exists) 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | DEPENDS:append = " automake-native autoconf-native util-macros-native font-util-native xtrans-native libxshmfence rockchip-librga" 5 | 6 | SRCREV = "${AUTOREV}" 7 | SRC_URI:append = " git://github.com/JeffyCN/xorg-xserver;protocol=https;nobranch=1;branch=${PV}_2025_03_13;" 8 | SRC_URI:remove = "https://www.x.org/releases//individual/xserver/xorg-server-${PV}.tar.bz2" 9 | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 11 | 12 | SRC_URI:append = " file://20-modesetting.conf" 13 | 14 | xserver_autogen() { 15 | NOCONFIGURE="yes" ${S}/autogen.sh 16 | } 17 | EXTRACONFFUNCS += "xserver_autogen" 18 | 19 | do_install:append() { 20 | install -d ${D}${datadir}/X11/xorg.conf.d 21 | install -m 0755 ${UNPACKDIR}/20-modesetting.conf \ 22 | ${D}${datadir}/X11/xorg.conf.d/20-modesetting.conf 23 | } 24 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_103.0.5060/0012-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From c23306c9d06971e7ae9606ec8c363e1158f753d5 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 12/14] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 1a6063b03..303f30271 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -136,7 +136,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_104.0.5112/0012-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 2f73bce0fa6d67c219cfcdebe9d140dcf4e27fe8 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 12/17] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 250c7712a..426330af9 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -134,7 +134,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_105.0.5195/0012-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 54a0607021f8292c956a2393a8e27bddc156fce2 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 12/17] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 250c7712a..426330af9 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -134,7 +134,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_109.0.5414/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 7dc48fb53270a9732990cf4d7fb7c2091343d4e2 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/17] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 9f5f303b2..524b257aa 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -138,7 +138,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_111.0.5563/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From c7dfab48947b0c3dac4560d796ff6d85abebc686 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/18] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 9f5f303b2..524b257aa 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -138,7 +138,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_114.0.5735/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 9cffcfe14c2bf88515da1e07afb14e9167110ac9 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/20] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 93559f609..a78bd64b0 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -140,7 +140,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_119.0.6045/0014-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From a25c0d859fe910c6533d29a4b0f15f4628c68ef8 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 14/17] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 93559f609..a78bd64b0 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -140,7 +140,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_120.0.6099/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From b5c0c0039d0b8a4ca012e708568207b2b3c833eb Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 93559f609..a78bd64b0 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -140,7 +140,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_121.0.6167/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 75cc28680c2856329469a7c9d9235ba74be49eff Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index d1cea0fb2..e51770f71 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -129,7 +129,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_122.0.6261/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 626bacf47b1a2bd427e2f0a0274dfc82cf1868d0 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 543ec73d4..7a47e84c4 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -129,7 +129,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_124.0.6367/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From cb78f628cc58aecb4e8989278cd9e3471af7f322 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 543ec73d4..7a47e84c4 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -129,7 +129,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_125.0.6422/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From b0d2d2507032e970bf68427384418027591fa1a7 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 098082510..2b53ff600 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -128,7 +128,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_126.0.6478/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 637061fd37e919f0692f12cc37d8648002b16a43 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 098082510..2b53ff600 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -128,7 +128,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_129.0.6668/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 7c1743ce53bc3865f6a1efc634f448e6738c399e Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 098082510..2b53ff600 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -128,7 +128,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_130.0.6723/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 890ad51b34542ce0b5e25b09ac989dab5897df8e Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 098082510..2b53ff600 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -128,7 +128,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_131.0.6778/0013-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 731a0ed8469a8ba598c2f8f761cb287f651c5419 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 13/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 098082510..2b53ff600 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -128,7 +128,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_132.0.6834/0012-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 640aca2a2773994e2d4f4209b010da47f3702b65 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 12/15] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 098082510..2b53ff600 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -128,7 +128,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_136.0.7103/0012-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From b7283b34e18b0ec0595aa67f6110e7e802f183fd Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 12/16] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index 5a5b7c3ed..59c9c1a32 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -124,7 +124,7 @@ target(link_target_type, "gpu_sources") { 16 | 17 | # Use DRI on desktop Linux builds. 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | configs += [ "//build/config/linux/dri" ] 22 | } 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7/0006-waylandsink-release-frame-callback-when-finalizing.patch: -------------------------------------------------------------------------------- 1 | From 7536d60de270a9aae76e69905ce6b6865545c2a2 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 26 Nov 2020 11:31:58 +0800 4 | Subject: [PATCH 06/46] waylandsink: release frame callback when finalizing 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | ext/wayland/gstwaylandsink.c | 2 ++ 9 | 1 file changed, 2 insertions(+) 10 | 11 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 12 | index 0761304c..ff8a7f5c 100644 13 | --- a/ext/wayland/gstwaylandsink.c 14 | +++ b/ext/wayland/gstwaylandsink.c 15 | @@ -287,6 +287,8 @@ gst_wayland_sink_finalize (GObject * object) 16 | 17 | GST_DEBUG_OBJECT (sink, "Finalizing the sink.."); 18 | 19 | + if (sink->callback) 20 | + wl_callback_destroy (sink->callback); 21 | if (sink->last_buffer) 22 | gst_buffer_unref (sink->last_buffer); 23 | if (sink->display) 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_103.0.5060/0015-libgav1-Enable-parser-on-arm32-as-well.patch: -------------------------------------------------------------------------------- 1 | From a14a9fb3f75ddc8df074b3773c7ed837cddf373c Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 6 Sep 2022 18:24:32 +0800 4 | Subject: [PATCH] libgav1: Enable parser on arm32 as well 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | third_party/libgav1/options.gni | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/third_party/libgav1/options.gni b/third_party/libgav1/options.gni 12 | index 5e0fe7ea3..bd6a4a572 100644 13 | --- a/third_party/libgav1/options.gni 14 | +++ b/third_party/libgav1/options.gni 15 | @@ -13,5 +13,5 @@ declare_args() { 16 | use_libgav1_parser = 17 | (is_chromeos || is_linux || is_win) && 18 | (target_cpu == "x86" || target_cpu == "x64" || 19 | - target_cpu == "arm64" || target_cpu == "ppc64") 20 | + target_cpu == "arm" || target_cpu == "arm64" || target_cpu == "ppc64") 21 | } 22 | -- 23 | 2.20.1 24 | 25 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_111.0.5563/0018-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 1fb6887173a03d8de321f429f35d1b2895f3e6bf Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 18/18] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_114.0.5735/0018-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From a81e4eee9883bab5815ce3bb68eb577c0f4f15fd Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 18/20] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_119.0.6045/0015-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From ef9d78c36ecc726f63fdb83c6269d3211b605673 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 15/17] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_120.0.6099/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 9fbd3d109f5ab5748969d429480dc591f666451c Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_121.0.6167/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 1489569e6e18d86b9769f9d45e096639802dde0e Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_122.0.6261/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 108876a145d365abe842501102a888b6859e8dad Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_124.0.6367/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From e7a1696964c29b2ed421ac66b0d152570eee6c88 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_125.0.6422/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 15853ffac5171df2b0f1ad2965518ec22ea63783 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_126.0.6478/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 5013bfce0bbac04ffe13ff35edc2f275fb3fc612 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_129.0.6668/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 5bb10745684367adedd04e09e156b65392c3e30f Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_130.0.6723/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From e401f1856c85bf7b6220a65258e561b43777963f Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_131.0.6778/0014-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 70ea1142c8ae113a85f998b33f0e5501feabf9c1 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 14/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_132.0.6834/0013-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 833fd4f4087f670a5092c43d0e59c2ddf75d7ec5 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 13/15] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index cfcb7fa80..8d8cd0455 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -31,7 +31,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_136.0.7103/0013-media-gpu-sandbox-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 7d4201e573866edad35ed20092546e347674adc9 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 20 Mar 2023 15:00:44 +0800 4 | Subject: [PATCH 13/16] media: gpu: sandbox: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/sandbox/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/media/gpu/sandbox/BUILD.gn b/media/gpu/sandbox/BUILD.gn 12 | index dd4408320..b21b12610 100644 13 | --- a/media/gpu/sandbox/BUILD.gn 14 | +++ b/media/gpu/sandbox/BUILD.gn 15 | @@ -26,7 +26,7 @@ source_set("sandbox") { 16 | deps += [ "//media/gpu/v4l2" ] 17 | } 18 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 19 | - !is_castos) { 20 | + !is_castos && ozone_platform_x11) { 21 | # For DRI_DRIVER_DIR. 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.38.5 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_104.0.5112/0015-libgav1-Enable-parser-on-arm32-as-well.patch: -------------------------------------------------------------------------------- 1 | From 0b84b4c2bb019a508ec2e917a43e72e61f24122a Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 6 Sep 2022 18:24:32 +0800 4 | Subject: [PATCH 15/17] libgav1: Enable parser on arm32 as well 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | third_party/libgav1/options.gni | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/third_party/libgav1/options.gni b/third_party/libgav1/options.gni 12 | index 5e0fe7ea3..bd6a4a572 100644 13 | --- a/third_party/libgav1/options.gni 14 | +++ b/third_party/libgav1/options.gni 15 | @@ -13,5 +13,5 @@ declare_args() { 16 | use_libgav1_parser = 17 | (is_chromeos || is_linux || is_win) && 18 | (target_cpu == "x86" || target_cpu == "x64" || 19 | - target_cpu == "arm64" || target_cpu == "ppc64") 20 | + target_cpu == "arm" || target_cpu == "arm64" || target_cpu == "ppc64") 21 | } 22 | -- 23 | 2.20.1 24 | 25 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_105.0.5195/0014-libgav1-Enable-parser-on-arm32-as-well.patch: -------------------------------------------------------------------------------- 1 | From 33a1bf159037a7ba9ff0d099641029f277ce1d9b Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 6 Sep 2022 18:24:32 +0800 4 | Subject: [PATCH 14/17] libgav1: Enable parser on arm32 as well 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | third_party/libgav1/options.gni | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/third_party/libgav1/options.gni b/third_party/libgav1/options.gni 12 | index 5e0fe7ea3..bd6a4a572 100644 13 | --- a/third_party/libgav1/options.gni 14 | +++ b/third_party/libgav1/options.gni 15 | @@ -13,5 +13,5 @@ declare_args() { 16 | use_libgav1_parser = 17 | (is_chromeos || is_linux || is_win) && 18 | (target_cpu == "x86" || target_cpu == "x64" || 19 | - target_cpu == "arm64" || target_cpu == "ppc64") 20 | + target_cpu == "arm" || target_cpu == "arm64" || target_cpu == "ppc64") 21 | } 22 | -- 23 | 2.20.1 24 | 25 | -------------------------------------------------------------------------------- /recipes-multimedia/rockchip-rkaiq/files/rkaiq_daemons.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | ### BEGIN INIT INFO 3 | # Provides: rockchip-rkaiq 4 | # Required-Start: mountvirtfs 5 | # Required-Stop: 6 | # Should-Start: 7 | # Should-Stop: 8 | # Default-Start: 2 3 4 5 9 | # Default-Stop: 0 1 6 10 | # Short-Description: Rockchip AIQ 3A daemon 11 | ### END INIT INFO 12 | 13 | PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" 14 | 15 | start_rkaiq_daemon() 16 | { 17 | start-stop-daemon --start --background --oknodo \ 18 | -m --pidfile "/var/run/rkaiq_3A_server.pid" \ 19 | --startas /usr/bin/rkaiq_3A_server 20 | } 21 | 22 | stop_rkaiq_daemon() 23 | { 24 | start-stop-daemon --stop --quiet --oknodo \ 25 | --pidfile "/var/run/rkaiq_3A_server.pid" 26 | } 27 | 28 | case "$1" in 29 | start) 30 | start_rkaiq_daemon 31 | ;; 32 | stop) 33 | stop_rkaiq_daemon 34 | ;; 35 | restart|reload) 36 | stop_rkaiq_daemon 37 | start_rkaiq_daemon 38 | ;; 39 | *) 40 | echo "Usage: $0 {start|stop|restart}" 41 | exit 1 42 | esac 43 | 44 | exit 0 45 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.7/0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch: -------------------------------------------------------------------------------- 1 | From fd42db88f909ff58ab82a1dbcfc108048d11b5d7 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 23 Jun 2022 16:01:56 +0800 4 | Subject: [PATCH 10/12] v4l2: Increase VIDEO_MAX_FRAME to 64 5 | 6 | This is done in the kernel side for android: 7 | e81694723af1 ANDROID: media: increase video max frame number 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/v4l2/ext/videodev2.h | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/sys/v4l2/ext/videodev2.h b/sys/v4l2/ext/videodev2.h 15 | index 24832ee..8dbe50f 100644 16 | --- a/sys/v4l2/ext/videodev2.h 17 | +++ b/sys/v4l2/ext/videodev2.h 18 | @@ -68,7 +68,7 @@ 19 | * Common stuff for both V4L1 and V4L2 20 | * Moved from videodev.h 21 | */ 22 | -#define VIDEO_MAX_FRAME 32 23 | +#define VIDEO_MAX_FRAME 64 24 | #define VIDEO_MAX_PLANES 8 25 | 26 | /* 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.7/0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch: -------------------------------------------------------------------------------- 1 | From 47039a828681a359b5e54aa9d84225ab753b1743 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 23 Jun 2022 16:01:56 +0800 4 | Subject: [PATCH 10/12] v4l2: Increase VIDEO_MAX_FRAME to 64 5 | 6 | This is done in the kernel side for android: 7 | e81694723af1 ANDROID: media: increase video max frame number 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/v4l2/ext/videodev2.h | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/sys/v4l2/ext/videodev2.h b/sys/v4l2/ext/videodev2.h 15 | index 16a9494..c3ccddc 100644 16 | --- a/sys/v4l2/ext/videodev2.h 17 | +++ b/sys/v4l2/ext/videodev2.h 18 | @@ -68,7 +68,7 @@ 19 | * Common stuff for both V4L1 and V4L2 20 | * Moved from videodev.h 21 | */ 22 | -#define VIDEO_MAX_FRAME 32 23 | +#define VIDEO_MAX_FRAME 64 24 | #define VIDEO_MAX_PLANES 8 25 | 26 | /* 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.9/0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch: -------------------------------------------------------------------------------- 1 | From 215801ceaacdb8c1a211de6c00a85ee6693de808 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 23 Jun 2022 16:01:56 +0800 4 | Subject: [PATCH 10/12] v4l2: Increase VIDEO_MAX_FRAME to 64 5 | 6 | This is done in the kernel side for android: 7 | e81694723af1 ANDROID: media: increase video max frame number 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/v4l2/ext/videodev2.h | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/sys/v4l2/ext/videodev2.h b/sys/v4l2/ext/videodev2.h 15 | index 16a9494..c3ccddc 100644 16 | --- a/sys/v4l2/ext/videodev2.h 17 | +++ b/sys/v4l2/ext/videodev2.h 18 | @@ -68,7 +68,7 @@ 19 | * Common stuff for both V4L1 and V4L2 20 | * Moved from videodev.h 21 | */ 22 | -#define VIDEO_MAX_FRAME 32 23 | +#define VIDEO_MAX_FRAME 64 24 | #define VIDEO_MAX_PLANES 8 25 | 26 | /* 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.11/0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch: -------------------------------------------------------------------------------- 1 | From 47cc7617fbe371e405daea30b017b4d20314f884 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 23 Jun 2022 16:01:56 +0800 4 | Subject: [PATCH 10/13] v4l2: Increase VIDEO_MAX_FRAME to 64 5 | 6 | This is done in the kernel side for android: 7 | e81694723af1 ANDROID: media: increase video max frame number 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/v4l2/ext/videodev2.h | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/sys/v4l2/ext/videodev2.h b/sys/v4l2/ext/videodev2.h 15 | index 2ceb1ca..0e71787 100644 16 | --- a/sys/v4l2/ext/videodev2.h 17 | +++ b/sys/v4l2/ext/videodev2.h 18 | @@ -68,7 +68,7 @@ 19 | * Common stuff for both V4L1 and V4L2 20 | * Moved from videodev.h 21 | */ 22 | -#define VIDEO_MAX_FRAME 32 23 | +#define VIDEO_MAX_FRAME 64 24 | #define VIDEO_MAX_PLANES 8 25 | 26 | /* 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.24.6/0010-v4l2-Increase-VIDEO_MAX_FRAME-to-64.patch: -------------------------------------------------------------------------------- 1 | From d91c1b4afc808a38c75ddcc8e097addd156c2b93 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 23 Jun 2022 16:01:56 +0800 4 | Subject: [PATCH 10/13] v4l2: Increase VIDEO_MAX_FRAME to 64 5 | 6 | This is done in the kernel side for android: 7 | e81694723af1 ANDROID: media: increase video max frame number 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/v4l2/ext/videodev2.h | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/sys/v4l2/ext/videodev2.h b/sys/v4l2/ext/videodev2.h 15 | index 2ceb1ca..0e71787 100644 16 | --- a/sys/v4l2/ext/videodev2.h 17 | +++ b/sys/v4l2/ext/videodev2.h 18 | @@ -68,7 +68,7 @@ 19 | * Common stuff for both V4L1 and V4L2 20 | * Moved from videodev.h 21 | */ 22 | -#define VIDEO_MAX_FRAME 32 23 | +#define VIDEO_MAX_FRAME 64 24 | #define VIDEO_MAX_PLANES 8 25 | 26 | /* 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-core/udev/files/99-rockchip-permissions.rules: -------------------------------------------------------------------------------- 1 | ACTION=="remove", GOTO="permissions_end" 2 | 3 | # VPU devices 4 | KERNEL=="avsd", MODE="0660", GROUP="video" 5 | KERNEL=="vepu", MODE="0660", GROUP="video" 6 | KERNEL=="h265e", MODE="0660", GROUP="video" 7 | KERNEL=="rkvdec", MODE="0660", GROUP="video" 8 | KERNEL=="rkvenc", MODE="0660", GROUP="video" 9 | KERNEL=="mpp_service", MODE="0660", GROUP="video" 10 | KERNEL=="vpu[_-]service", MODE="0660", GROUP="video" 11 | KERNEL=="hevc[_-]service", MODE="0660", GROUP="video" 12 | 13 | # RGA device 14 | KERNEL=="rga", MODE="0660", GROUP="video" 15 | 16 | # MALI devices (/dev/mali for mali400) 17 | KERNEL=="mali*", MODE="0660", GROUP="video" 18 | 19 | # DMA heap devices 20 | KERNEL=="cma", MODE="0660", GROUP="video" 21 | KERNEL=="cma-uncached", MODE="0660", GROUP="video" 22 | KERNEL=="system", MODE="0660", GROUP="video" 23 | KERNEL=="system-dma32", MODE="0660", GROUP="video" 24 | KERNEL=="system-uncached", MODE="0660", GROUP="video" 25 | KERNEL=="system-uncached-dma32", MODE="0660", GROUP="video" 26 | 27 | LABEL="permissions_end" 28 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_98.0.4758/0014-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From b6dfd73fbf021a36ecc7bc334588dfb88ce8db43 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 14/17] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index bdf9b9d9..3c1bd014 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -127,7 +127,7 @@ target(link_target_type, "gpu_sources") { 16 | } 17 | 18 | # Use DRI on desktop Linux builds. 19 | - if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 20 | + if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && ozone_platform_x11 && 21 | (!is_chromecast || is_cast_desktop_build)) { 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.17.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_100.0.4896/0012-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 90517408a8d712aa5fdcea8434a82e45effd234f Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 12/15] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index f0cc370d1..8b7ed3ec6 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -134,7 +134,7 @@ target(link_target_type, "gpu_sources") { 16 | } 17 | 18 | # Use DRI on desktop Linux builds. 19 | - if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 20 | + if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && ozone_platform_x11 && 21 | (!is_chromecast || is_cast_desktop_build)) { 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_101.0.4951/0012-content-gpu-Only-depend-dri-for-X11.patch: -------------------------------------------------------------------------------- 1 | From 58a82223ec1cc57b56673ca7a1f0caa02fadea60 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 22 Nov 2021 15:59:49 +0800 4 | Subject: [PATCH 12/15] content: gpu: Only depend dri for X11 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | content/gpu/BUILD.gn | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn 12 | index f0cc370d1..8b7ed3ec6 100644 13 | --- a/content/gpu/BUILD.gn 14 | +++ b/content/gpu/BUILD.gn 15 | @@ -134,7 +134,7 @@ target(link_target_type, "gpu_sources") { 16 | } 17 | 18 | # Use DRI on desktop Linux builds. 19 | - if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && 20 | + if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && ozone_platform_x11 && 21 | (!is_chromecast || is_cast_desktop_build)) { 22 | configs += [ "//build/config/linux/dri" ] 23 | } 24 | -- 25 | 2.20.1 26 | 27 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_119.0.6045/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From 523b171f8686b9b36da631543651c27875772fc7 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/17] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index 24700df35..0d93063c0 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -133,9 +133,12 @@ source_set("v4l2") { 17 | "//media/parsers", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_120.0.6099/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From 083a40a06ee55fad80aa4000cddd93c4c293a139 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index d4eb73339..fc16284aa 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -135,9 +135,12 @@ source_set("v4l2") { 17 | "//media/parsers", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_121.0.6167/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From 5549784a1d7a4a3f370fe9f08101fc03baa33179 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index a54480eb3..0fdbbd429 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -139,9 +139,12 @@ source_set("v4l2") { 17 | "//media/parsers", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.24.11/0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch: -------------------------------------------------------------------------------- 1 | From 33024512cca15e476ac5380719cf0b00ef5aa6b1 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 18 Mar 2020 10:12:31 +0800 4 | Subject: [PATCH 10/23] glupload: dmabuf: prefer DirectDmabufExternal uploader 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | gst-libs/gst/gl/gstglupload.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c 12 | index 3f4ee0c..0cec3f8 100644 13 | --- a/gst-libs/gst/gl/gstglupload.c 14 | +++ b/gst-libs/gst/gl/gstglupload.c 15 | @@ -3207,8 +3207,8 @@ static const UploadMethod *upload_methods[] = { 16 | &_passthrough_upload, 17 | &_gl_memory_upload, 18 | #if GST_GL_HAVE_DMABUF 19 | - &_direct_dma_buf_upload, 20 | &_direct_dma_buf_external_upload, 21 | + &_direct_dma_buf_upload, 22 | &_dma_buf_upload, 23 | #endif 24 | #if GST_GL_HAVE_VIV_DIRECTVIV 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.24.6/0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch: -------------------------------------------------------------------------------- 1 | From a8e61090dc36693fba3cd15c50778b8728def93c Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 18 Mar 2020 10:12:31 +0800 4 | Subject: [PATCH 10/22] glupload: dmabuf: prefer DirectDmabufExternal uploader 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | gst-libs/gst/gl/gstglupload.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c 12 | index d91898a..3788bb9 100644 13 | --- a/gst-libs/gst/gl/gstglupload.c 14 | +++ b/gst-libs/gst/gl/gstglupload.c 15 | @@ -3204,8 +3204,8 @@ static const UploadMethod *upload_methods[] = { 16 | &_passthrough_upload, 17 | &_gl_memory_upload, 18 | #if GST_GL_HAVE_DMABUF 19 | - &_direct_dma_buf_upload, 20 | &_direct_dma_buf_external_upload, 21 | + &_direct_dma_buf_upload, 22 | &_dma_buf_upload, 23 | #endif 24 | #if GST_GL_HAVE_VIV_DIRECTVIV 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /COPYING.MIT: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a copy 2 | of this software and associated documentation files (the "Software"), to deal 3 | in the Software without restriction, including without limitation the rights 4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 5 | copies of the Software, and to permit persons to whom the Software is 6 | furnished to do so, subject to the following conditions: 7 | 8 | The above copyright notice and this permission notice shall be included in 9 | all copies or substantial portions of the Software. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 17 | THE SOFTWARE. 18 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.7/0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch: -------------------------------------------------------------------------------- 1 | From 8721c3a1c1ec0340b016b1963f3c94627718a8da Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 18 Mar 2020 10:12:31 +0800 4 | Subject: [PATCH 10/22] glupload: dmabuf: prefer DirectDmabufExternal uploader 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | gst-libs/gst/gl/gstglupload.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c 12 | index 4e55ebc..998a5ef 100644 13 | --- a/gst-libs/gst/gl/gstglupload.c 14 | +++ b/gst-libs/gst/gl/gstglupload.c 15 | @@ -2233,8 +2233,8 @@ static const UploadMethod _nvmm_upload = { 16 | 17 | static const UploadMethod *upload_methods[] = { &_gl_memory_upload, 18 | #if GST_GL_HAVE_DMABUF 19 | - &_direct_dma_buf_upload, 20 | &_direct_dma_buf_external_upload, 21 | + &_direct_dma_buf_upload, 22 | &_dma_buf_upload, 23 | #endif 24 | #if GST_GL_HAVE_VIV_DIRECTVIV 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.7/0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch: -------------------------------------------------------------------------------- 1 | From 8a5f9c115a531852b753a8eb067e8312ca97ff00 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 18 Mar 2020 10:12:31 +0800 4 | Subject: [PATCH 10/22] glupload: dmabuf: prefer DirectDmabufExternal uploader 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | gst-libs/gst/gl/gstglupload.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c 12 | index 2227240..39be33a 100644 13 | --- a/gst-libs/gst/gl/gstglupload.c 14 | +++ b/gst-libs/gst/gl/gstglupload.c 15 | @@ -2234,8 +2234,8 @@ static const UploadMethod _nvmm_upload = { 16 | 17 | static const UploadMethod *upload_methods[] = { &_gl_memory_upload, 18 | #if GST_GL_HAVE_DMABUF 19 | - &_direct_dma_buf_upload, 20 | &_direct_dma_buf_external_upload, 21 | + &_direct_dma_buf_upload, 22 | &_dma_buf_upload, 23 | #endif 24 | #if GST_GL_HAVE_VIV_DIRECTVIV 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.9/0010-glupload-dmabuf-prefer-DirectDmabufExternal-uploader.patch: -------------------------------------------------------------------------------- 1 | From f134abad21479d8e6ee0ba604e8a08317b62f609 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 18 Mar 2020 10:12:31 +0800 4 | Subject: [PATCH 10/22] glupload: dmabuf: prefer DirectDmabufExternal uploader 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | gst-libs/gst/gl/gstglupload.c | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c 12 | index 2227240..39be33a 100644 13 | --- a/gst-libs/gst/gl/gstglupload.c 14 | +++ b/gst-libs/gst/gl/gstglupload.c 15 | @@ -2234,8 +2234,8 @@ static const UploadMethod _nvmm_upload = { 16 | 17 | static const UploadMethod *upload_methods[] = { &_gl_memory_upload, 18 | #if GST_GL_HAVE_DMABUF 19 | - &_direct_dma_buf_upload, 20 | &_direct_dma_buf_external_upload, 21 | + &_direct_dma_buf_upload, 22 | &_dma_buf_upload, 23 | #endif 24 | #if GST_GL_HAVE_VIV_DIRECTVIV 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_122.0.6261/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From 9b13a6f88d31bc2717e20263ac468224926cfa7f Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index 75c9de554..6f2018c79 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -142,9 +142,12 @@ source_set("v4l2") { 17 | "//third_party/libgav1:libgav1_parser", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_124.0.6367/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From 5aff91387f1ced3cab6b689513a66c93fc071910 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index 5f6eb8d25..a78620c5a 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -144,9 +144,12 @@ source_set("v4l2") { 17 | "//third_party/libgav1:libgav1_parser", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_125.0.6422/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From 15f1c32d3e9e48043795682f63e4bd59dc4d45b2 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index 5f6eb8d25..a78620c5a 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -144,9 +144,12 @@ source_set("v4l2") { 17 | "//third_party/libgav1:libgav1_parser", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_126.0.6478/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From 4318b7d55486389ecc8abef9edd058ba2b34153c Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index 5f6eb8d25..a78620c5a 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -144,9 +144,12 @@ source_set("v4l2") { 17 | "//third_party/libgav1:libgav1_parser", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_129.0.6668/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From fca53786a0eb2c4028bed3f9764a682e0eb7f9ce Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index f8ee0fd91..95b058bde 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -123,9 +123,12 @@ source_set("v4l2") { 17 | "//third_party/libgav1:libgav1_parser", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_130.0.6723/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From ec25b377c9a9027f8c175c31322ee3347e0ec2de Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index f8ee0fd91..95b058bde 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -123,9 +123,12 @@ source_set("v4l2") { 17 | "//third_party/libgav1:libgav1_parser", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_131.0.6778/0009-media-gpu-v4l2-Fix-compile-error-when-ozone-not-enab.patch: -------------------------------------------------------------------------------- 1 | From ce3e5294d7a2d975016139d68f528775491fdec7 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 28 Sep 2020 20:02:00 +0800 4 | Subject: [PATCH 09/16] media: gpu: v4l2: Fix compile error when ozone not 5 | enabled 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | media/gpu/v4l2/BUILD.gn | 5 ++++- 10 | 1 file changed, 4 insertions(+), 1 deletion(-) 11 | 12 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 13 | index 7fc1ea38d..0c97bbe28 100644 14 | --- a/media/gpu/v4l2/BUILD.gn 15 | +++ b/media/gpu/v4l2/BUILD.gn 16 | @@ -123,9 +123,12 @@ source_set("v4l2") { 17 | "//third_party/libgav1:libgav1_parser", 18 | "//third_party/libyuv", 19 | "//ui/gfx/geometry", 20 | - "//ui/ozone", 21 | ] 22 | 23 | + if (use_ozone) { 24 | + deps += [ "//ui/ozone" ] 25 | + } 26 | + 27 | if (is_chromeos_ash) { 28 | sources += [ 29 | "v4l2_jpeg_encode_accelerator.cc", 30 | -- 31 | 2.38.5 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7/0041-kmssink-Avoid-choosing-disconnected-connector.patch: -------------------------------------------------------------------------------- 1 | From 963171f5f5bbe1377a4c84d202eeabddaab5aacc Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 29 Feb 2024 15:18:46 +0800 4 | Subject: [PATCH 41/46] kmssink: Avoid choosing disconnected connector 5 | 6 | The connectors might share CRTC, so CRTC's buffer doesn't mean connector 7 | is used. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/kms/gstkmssink.c | 3 +++ 12 | 1 file changed, 3 insertions(+) 13 | 14 | diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c 15 | index e7c62c11..9ccfd32e 100644 16 | --- a/sys/kms/gstkmssink.c 17 | +++ b/sys/kms/gstkmssink.c 18 | @@ -357,6 +357,9 @@ connector_is_used (int fd, drmModeRes * res, drmModeConnector * conn) 19 | gboolean result; 20 | drmModeCrtc *crtc; 21 | 22 | + if (conn->connection != DRM_MODE_CONNECTED) 23 | + return FALSE; 24 | + 25 | result = FALSE; 26 | crtc = find_crtc_for_connector (fd, res, conn, NULL); 27 | if (crtc) { 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.7/0042-kmssink-Avoid-choosing-disconnected-connector.patch: -------------------------------------------------------------------------------- 1 | From 394ba5af990540130964dae34d7dffedfbcfdea0 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 29 Feb 2024 15:18:46 +0800 4 | Subject: [PATCH 42/49] kmssink: Avoid choosing disconnected connector 5 | 6 | The connectors might share CRTC, so CRTC's buffer doesn't mean connector 7 | is used. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/kms/gstkmssink.c | 3 +++ 12 | 1 file changed, 3 insertions(+) 13 | 14 | diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c 15 | index 1f06975b..7554e0d1 100644 16 | --- a/sys/kms/gstkmssink.c 17 | +++ b/sys/kms/gstkmssink.c 18 | @@ -799,6 +799,9 @@ connector_is_used (int fd, drmModeRes * res, drmModeConnector * conn) 19 | gboolean result; 20 | drmModeCrtc *crtc; 21 | 22 | + if (conn->connection != DRM_MODE_CONNECTED) 23 | + return FALSE; 24 | + 25 | result = FALSE; 26 | crtc = find_crtc_for_connector (fd, res, conn, NULL); 27 | if (crtc) { 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.9/0042-kmssink-Avoid-choosing-disconnected-connector.patch: -------------------------------------------------------------------------------- 1 | From 9218d1c3a4bed2ad6c49a1bbcf1a68fcc20c5a05 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 29 Feb 2024 15:18:46 +0800 4 | Subject: [PATCH 42/49] kmssink: Avoid choosing disconnected connector 5 | 6 | The connectors might share CRTC, so CRTC's buffer doesn't mean connector 7 | is used. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/kms/gstkmssink.c | 3 +++ 12 | 1 file changed, 3 insertions(+) 13 | 14 | diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c 15 | index 4883c3e5..9c626294 100644 16 | --- a/sys/kms/gstkmssink.c 17 | +++ b/sys/kms/gstkmssink.c 18 | @@ -799,6 +799,9 @@ connector_is_used (int fd, drmModeRes * res, drmModeConnector * conn) 19 | gboolean result; 20 | drmModeCrtc *crtc; 21 | 22 | + if (conn->connection != DRM_MODE_CONNECTED) 23 | + return FALSE; 24 | + 25 | result = FALSE; 26 | crtc = find_crtc_for_connector (fd, res, conn, NULL); 27 | if (crtc) { 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.11/0034-kmssink-Avoid-choosing-disconnected-connector.patch: -------------------------------------------------------------------------------- 1 | From 780fec0168c12787b78b76e0a2021c462a1f57e1 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 29 Feb 2024 15:18:46 +0800 4 | Subject: [PATCH 34/42] kmssink: Avoid choosing disconnected connector 5 | 6 | The connectors might share CRTC, so CRTC's buffer doesn't mean connector 7 | is used. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/kms/gstkmssink.c | 3 +++ 12 | 1 file changed, 3 insertions(+) 13 | 14 | diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c 15 | index 9e7ab4c..9a215af 100644 16 | --- a/sys/kms/gstkmssink.c 17 | +++ b/sys/kms/gstkmssink.c 18 | @@ -789,6 +789,9 @@ connector_is_used (int fd, drmModeRes * res, drmModeConnector * conn) 19 | gboolean result; 20 | drmModeCrtc *crtc; 21 | 22 | + if (conn->connection != DRM_MODE_CONNECTED) 23 | + return FALSE; 24 | + 25 | result = FALSE; 26 | crtc = find_crtc_for_connector (fd, res, conn, NULL); 27 | if (crtc) { 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.6/0034-kmssink-Avoid-choosing-disconnected-connector.patch: -------------------------------------------------------------------------------- 1 | From f64ccd1225e36380165dfb66193ae8dd1e378036 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 29 Feb 2024 15:18:46 +0800 4 | Subject: [PATCH 34/40] kmssink: Avoid choosing disconnected connector 5 | 6 | The connectors might share CRTC, so CRTC's buffer doesn't mean connector 7 | is used. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/kms/gstkmssink.c | 3 +++ 12 | 1 file changed, 3 insertions(+) 13 | 14 | diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c 15 | index e49a13d..1e75766 100644 16 | --- a/sys/kms/gstkmssink.c 17 | +++ b/sys/kms/gstkmssink.c 18 | @@ -788,6 +788,9 @@ connector_is_used (int fd, drmModeRes * res, drmModeConnector * conn) 19 | gboolean result; 20 | drmModeCrtc *crtc; 21 | 22 | + if (conn->connection != DRM_MODE_CONNECTED) 23 | + return FALSE; 24 | + 25 | result = FALSE; 26 | crtc = find_crtc_for_connector (fd, res, conn, NULL); 27 | if (crtc) { 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.11/0010-waylandsink-Fix-random-crash.patch: -------------------------------------------------------------------------------- 1 | From 50fe2c04057d7b6cab4e0bab53a02e263b0c3429 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 26 Nov 2020 12:19:54 +0800 4 | Subject: [PATCH 10/42] waylandsink: Fix random crash 5 | 6 | By adding a sanity check for wl window when exposing. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ext/wayland/gstwaylandsink.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 14 | index d68b795..6bac5d5 100644 15 | --- a/ext/wayland/gstwaylandsink.c 16 | +++ b/ext/wayland/gstwaylandsink.c 17 | @@ -1205,7 +1205,7 @@ gst_wayland_sink_expose (GstVideoOverlay * overlay) 18 | GST_DEBUG_OBJECT (self, "expose"); 19 | 20 | g_mutex_lock (&self->render_lock); 21 | - if (self->last_buffer) { 22 | + if (self->window && self->last_buffer) { 23 | GST_DEBUG_OBJECT (self, "redrawing last buffer"); 24 | render_last_buffer (self, TRUE); 25 | } 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.6/0010-waylandsink-Fix-random-crash.patch: -------------------------------------------------------------------------------- 1 | From 3401425c76e8e5b971a06fdc2a555fbcbffe541b Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 26 Nov 2020 12:19:54 +0800 4 | Subject: [PATCH 10/40] waylandsink: Fix random crash 5 | 6 | By adding a sanity check for wl window when exposing. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ext/wayland/gstwaylandsink.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 14 | index 9eaccbe..b65277a 100644 15 | --- a/ext/wayland/gstwaylandsink.c 16 | +++ b/ext/wayland/gstwaylandsink.c 17 | @@ -1176,7 +1176,7 @@ gst_wayland_sink_expose (GstVideoOverlay * overlay) 18 | GST_DEBUG_OBJECT (self, "expose"); 19 | 20 | g_mutex_lock (&self->render_lock); 21 | - if (self->last_buffer) { 22 | + if (self->window && self->last_buffer) { 23 | GST_DEBUG_OBJECT (self, "redrawing last buffer"); 24 | render_last_buffer (self, TRUE); 25 | } 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_120.0.6099/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 433edd1c81906773c581d35852c428e0a4c7d04f Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 14918c19c..bcfb08711 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -306,7 +306,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_121.0.6167/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From fb45ab19105992aaffcf0ac095543a30899d5a21 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 14918c19c..bcfb08711 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -306,7 +306,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_122.0.6261/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 83e445fefd49e45f37e9d1860da6a4f87725c8b7 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index e70f75799..d7647fc8b 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -307,7 +307,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_124.0.6367/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 79c65e7c40078584138fd4b4f8a055bc0e63bc04 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 58c3c0b2c..f8938d941 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -303,7 +303,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_125.0.6422/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From f7abb62a29b813de6055403932c71da194141e6b Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 8d60e2c72..29430a410 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -304,7 +304,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_126.0.6478/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 81c1989c377978fe2789664b179fd76d49220cf3 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 8d60e2c72..29430a410 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -304,7 +304,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_129.0.6668/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 2c924678b29b8ed2b3e30be529e3834e840a406b Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 7a1ae2644..3f118922a 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -309,7 +309,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_130.0.6723/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From cf2485ccfb2a569c5e67a00e09887991ce79c3a4 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 7a1ae2644..3f118922a 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -309,7 +309,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_131.0.6778/0015-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 64d00862c2ab3f6742045eb2d334ed11073b2c20 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 15/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index c12f85f08..a09db6a54 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -309,7 +309,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_132.0.6834/0014-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 57744cecd5cddfb957cd496c55e63616eb9548f0 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 14/15] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index c12f85f08..a09db6a54 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -309,7 +309,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_136.0.7103/0014-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 6c6ce5d0f35238c5151f38ac24471b1d7bae3aa7 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 14/16] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 1b5d52cbb..b60eeccc2 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -308,7 +308,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& requested_size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) { 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) { 24 | return CreateBuffer(format, requested_size, flags); 25 | } 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_105.0.5195/0018-swiftshader-Don-t-check-system-wayland-for-non-wayla.patch: -------------------------------------------------------------------------------- 1 | From 8e61ec315214833b71f75e463919626fd519af48 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 10 Oct 2022 18:03:13 +0800 4 | Subject: [PATCH] swiftshader: Don't check system wayland for non-wayland 5 | platform 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | third_party/swiftshader/src/WSI/BUILD.gn | 2 +- 10 | 1 file changed, 1 insertion(+), 1 deletion(-) 11 | 12 | diff --git a/third_party/swiftshader/src/WSI/BUILD.gn b/third_party/swiftshader/src/WSI/BUILD.gn 13 | index 4709332e2..dbe29a2a3 100644 14 | --- a/third_party/swiftshader/src/WSI/BUILD.gn 15 | +++ b/third_party/swiftshader/src/WSI/BUILD.gn 16 | @@ -87,7 +87,7 @@ swiftshader_source_set("WSI") { 17 | "../Vulkan:swiftshader_libvulkan_headers", 18 | ] 19 | 20 | - if (is_linux && !use_system_libwayland) { 21 | + if (is_linux && !use_system_libwayland && ozone_platform_wayland) { 22 | # Use third-party targets 23 | deps += [ "$wayland_gn_dir:wayland_client" ] 24 | } 25 | -- 26 | 2.20.1 27 | 28 | -------------------------------------------------------------------------------- /conf/layer.conf: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019, Fuzhou Rockchip Electronics Co., Ltd 2 | # Released under the MIT license (see COPYING.MIT for the terms) 3 | 4 | # We have a conf and classes directory, add to BBPATH 5 | BBPATH .= ":${LAYERDIR}" 6 | 7 | # We have recipes-* directories, add to BBFILES 8 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ 9 | ${LAYERDIR}/recipes-*/*/*.bbappend" 10 | 11 | BBFILES_DYNAMIC += " \ 12 | browser-layer:${LAYERDIR}/dynamic-layers/recipes-browser/*/*.bbappend \ 13 | chromium-browser-layer:${LAYERDIR}/dynamic-layers/recipes-browser/*/*.bbappend \ 14 | " 15 | 16 | BBFILE_COLLECTIONS += "rockchip" 17 | BBFILE_PATTERN_rockchip := "^${LAYERDIR}/" 18 | BBFILE_PRIORITY_rockchip = "9" 19 | 20 | RKBASE = '${@os.path.normpath("${LAYERDIR}")}' 21 | BB_BASEHASH_IGNORE_VARS:append = " RKBASE" 22 | 23 | # Additional license directories. 24 | LICENSE_PATH += "${LAYERDIR}/licenses" 25 | 26 | LAYERDEPENDS_rockchip = "core openembedded-layer" 27 | 28 | # This should only be incremented on significant changes that will 29 | # cause compatibility issues with other layers 30 | LAYERVERSION_rockchip = "1" 31 | LAYERSERIES_COMPAT_rockchip = "whinlatter" 32 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_114.0.5735/0020-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From 9eda9355f72a403eff3c09280d09c81e3d1fae2b Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 20/20] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index 15b5316e6..3b5c873d7 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -306,7 +306,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) 24 | return CreateBuffer(format, size, flags); 25 | 26 | std::vector filtered_modifiers = 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_119.0.6045/0016-ui-gfx-linux-Force-disabling-modifiers.patch: -------------------------------------------------------------------------------- 1 | From e0cedab12c878b2e9fa20b18fed686e09266552a Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 7 Aug 2023 18:05:41 +0800 4 | Subject: [PATCH 16/17] ui: gfx: linux: Force disabling modifiers 5 | 6 | It crashes somehow. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ui/gfx/linux/gbm_wrapper.cc | 3 ++- 11 | 1 file changed, 2 insertions(+), 1 deletion(-) 12 | 13 | diff --git a/ui/gfx/linux/gbm_wrapper.cc b/ui/gfx/linux/gbm_wrapper.cc 14 | index c1bf39fc5..420b1a202 100644 15 | --- a/ui/gfx/linux/gbm_wrapper.cc 16 | +++ b/ui/gfx/linux/gbm_wrapper.cc 17 | @@ -301,7 +301,8 @@ class Device final : public ui::GbmDevice { 18 | const gfx::Size& size, 19 | uint32_t flags, 20 | const std::vector& modifiers) override { 21 | - if (modifiers.empty()) 22 | + // HACK: Force disabling modifiers 23 | + if (true || modifiers.empty()) 24 | return CreateBuffer(format, size, flags); 25 | 26 | std::vector filtered_modifiers = 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7/0015-waylandsink-Fix-random-crash.patch: -------------------------------------------------------------------------------- 1 | From 5d5ae5f21a5fa03bf98e7c45cfedb40386394736 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 26 Nov 2020 12:19:54 +0800 4 | Subject: [PATCH 15/46] waylandsink: Fix random crash 5 | 6 | By adding a sanity check for wl window when exposing. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ext/wayland/gstwaylandsink.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 14 | index 25694cff..56140c49 100644 15 | --- a/ext/wayland/gstwaylandsink.c 16 | +++ b/ext/wayland/gstwaylandsink.c 17 | @@ -1031,7 +1031,7 @@ gst_wayland_sink_expose (GstVideoOverlay * overlay) 18 | GST_DEBUG_OBJECT (sink, "expose"); 19 | 20 | g_mutex_lock (&sink->render_lock); 21 | - if (sink->last_buffer && !sink->redraw_pending) { 22 | + if (sink->window && sink->last_buffer && !sink->redraw_pending) { 23 | GST_DEBUG_OBJECT (sink, "redrawing last buffer"); 24 | render_last_buffer (sink, TRUE); 25 | } 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.7/0014-waylandsink-Fix-random-crash.patch: -------------------------------------------------------------------------------- 1 | From 56340a8572144b6f2139318348480b24bd0c6ba3 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 26 Nov 2020 12:19:54 +0800 4 | Subject: [PATCH 14/49] waylandsink: Fix random crash 5 | 6 | By adding a sanity check for wl window when exposing. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ext/wayland/gstwaylandsink.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 14 | index a4de9ab2..4fe3cc94 100644 15 | --- a/ext/wayland/gstwaylandsink.c 16 | +++ b/ext/wayland/gstwaylandsink.c 17 | @@ -1079,7 +1079,7 @@ gst_wayland_sink_expose (GstVideoOverlay * overlay) 18 | GST_DEBUG_OBJECT (self, "expose"); 19 | 20 | g_mutex_lock (&self->render_lock); 21 | - if (self->last_buffer && !self->redraw_pending) { 22 | + if (self->window && self->last_buffer && !self->redraw_pending) { 23 | GST_DEBUG_OBJECT (self, "redrawing last buffer"); 24 | render_last_buffer (self, TRUE); 25 | } 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.9/0014-waylandsink-Fix-random-crash.patch: -------------------------------------------------------------------------------- 1 | From 95a6a54758979df352f991d8224015cae5f4edc5 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 26 Nov 2020 12:19:54 +0800 4 | Subject: [PATCH 14/49] waylandsink: Fix random crash 5 | 6 | By adding a sanity check for wl window when exposing. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | ext/wayland/gstwaylandsink.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 14 | index a4de9ab2..4fe3cc94 100644 15 | --- a/ext/wayland/gstwaylandsink.c 16 | +++ b/ext/wayland/gstwaylandsink.c 17 | @@ -1079,7 +1079,7 @@ gst_wayland_sink_expose (GstVideoOverlay * overlay) 18 | GST_DEBUG_OBJECT (self, "expose"); 19 | 20 | g_mutex_lock (&self->render_lock); 21 | - if (self->last_buffer && !self->redraw_pending) { 22 | + if (self->window && self->last_buffer && !self->redraw_pending) { 23 | GST_DEBUG_OBJECT (self, "redrawing last buffer"); 24 | render_last_buffer (self, TRUE); 25 | } 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.7/0018-waylandsink-Fix-crash-when-setting-fullscreen-proper.patch: -------------------------------------------------------------------------------- 1 | From 608e7154d844bd44c9c6f263868edc2034b9f884 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 11 Apr 2023 12:02:50 +0800 4 | Subject: [PATCH 18/49] waylandsink: Fix crash when setting fullscreen property 5 | 6 | Tested on RK3588 EVB with: 7 | gst-launch-1.0 videotestsrc ! waylandsink fullscreen=1 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | gst-libs/gst/wayland/gstwlwindow.c | 3 ++- 12 | 1 file changed, 2 insertions(+), 1 deletion(-) 13 | 14 | diff --git a/gst-libs/gst/wayland/gstwlwindow.c b/gst-libs/gst/wayland/gstwlwindow.c 15 | index e60391b7..3d4e562a 100644 16 | --- a/gst-libs/gst/wayland/gstwlwindow.c 17 | +++ b/gst-libs/gst/wayland/gstwlwindow.c 18 | @@ -264,7 +264,8 @@ gst_wl_window_ensure_fullscreen (GstWlWindow * self, gboolean fullscreen) 19 | { 20 | GstWlWindowPrivate *priv; 21 | 22 | - g_return_if_fail (self); 23 | + if (!self) 24 | + return; 25 | 26 | priv = gst_wl_window_get_instance_private (self); 27 | if (fullscreen) 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.9/0018-waylandsink-Fix-crash-when-setting-fullscreen-proper.patch: -------------------------------------------------------------------------------- 1 | From 8bd3fb950276c82603cee6ef5ac11c6ea6ccf069 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 11 Apr 2023 12:02:50 +0800 4 | Subject: [PATCH 18/49] waylandsink: Fix crash when setting fullscreen property 5 | 6 | Tested on RK3588 EVB with: 7 | gst-launch-1.0 videotestsrc ! waylandsink fullscreen=1 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | gst-libs/gst/wayland/gstwlwindow.c | 3 ++- 12 | 1 file changed, 2 insertions(+), 1 deletion(-) 13 | 14 | diff --git a/gst-libs/gst/wayland/gstwlwindow.c b/gst-libs/gst/wayland/gstwlwindow.c 15 | index e60391b7..3d4e562a 100644 16 | --- a/gst-libs/gst/wayland/gstwlwindow.c 17 | +++ b/gst-libs/gst/wayland/gstwlwindow.c 18 | @@ -264,7 +264,8 @@ gst_wl_window_ensure_fullscreen (GstWlWindow * self, gboolean fullscreen) 19 | { 20 | GstWlWindowPrivate *priv; 21 | 22 | - g_return_if_fail (self); 23 | + if (!self) 24 | + return; 25 | 26 | priv = gst_wl_window_get_instance_private (self); 27 | if (fullscreen) 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.11/0013-waylandsink-Fix-crash-when-setting-fullscreen-proper.patch: -------------------------------------------------------------------------------- 1 | From 8eb187308f20112c4e98cea59f8ae4e1b8264a0a Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 11 Apr 2023 12:02:50 +0800 4 | Subject: [PATCH 13/42] waylandsink: Fix crash when setting fullscreen property 5 | 6 | Tested on RK3588 EVB with: 7 | gst-launch-1.0 videotestsrc ! waylandsink fullscreen=1 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | gst-libs/gst/wayland/gstwlwindow.c | 3 ++- 12 | 1 file changed, 2 insertions(+), 1 deletion(-) 13 | 14 | diff --git a/gst-libs/gst/wayland/gstwlwindow.c b/gst-libs/gst/wayland/gstwlwindow.c 15 | index 0008ed6..efe0474 100644 16 | --- a/gst-libs/gst/wayland/gstwlwindow.c 17 | +++ b/gst-libs/gst/wayland/gstwlwindow.c 18 | @@ -287,7 +287,8 @@ gst_wl_window_ensure_fullscreen (GstWlWindow * self, gboolean fullscreen) 19 | { 20 | GstWlWindowPrivate *priv; 21 | 22 | - g_return_if_fail (self); 23 | + if (!self) 24 | + return; 25 | 26 | priv = gst_wl_window_get_instance_private (self); 27 | if (fullscreen) 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.6/0013-waylandsink-Fix-crash-when-setting-fullscreen-proper.patch: -------------------------------------------------------------------------------- 1 | From abc63bfb2d77b1cc1bee37fcd36b0545fe16e607 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 11 Apr 2023 12:02:50 +0800 4 | Subject: [PATCH 13/40] waylandsink: Fix crash when setting fullscreen property 5 | 6 | Tested on RK3588 EVB with: 7 | gst-launch-1.0 videotestsrc ! waylandsink fullscreen=1 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | gst-libs/gst/wayland/gstwlwindow.c | 3 ++- 12 | 1 file changed, 2 insertions(+), 1 deletion(-) 13 | 14 | diff --git a/gst-libs/gst/wayland/gstwlwindow.c b/gst-libs/gst/wayland/gstwlwindow.c 15 | index 0008ed6..efe0474 100644 16 | --- a/gst-libs/gst/wayland/gstwlwindow.c 17 | +++ b/gst-libs/gst/wayland/gstwlwindow.c 18 | @@ -287,7 +287,8 @@ gst_wl_window_ensure_fullscreen (GstWlWindow * self, gboolean fullscreen) 19 | { 20 | GstWlWindowPrivate *priv; 21 | 22 | - g_return_if_fail (self); 23 | + if (!self) 24 | + return; 25 | 26 | priv = gst_wl_window_get_instance_private (self); 27 | if (fullscreen) 28 | -- 29 | 2.20.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/v4l2apps/v4l-utils/0003-libv4l-Disallow-conversion-by-default.patch: -------------------------------------------------------------------------------- 1 | From bf1b82deb438e386808e1cde3ee6f3da0a304402 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 12 May 2022 15:54:25 +0800 4 | Subject: [PATCH 6/6] libv4l: Disallow conversion by default 5 | 6 | The conversion is slow, let's disable it by default. 7 | 8 | Set env "V4L2_DISABLE_CONVERSION" to enable it. 9 | 10 | Signed-off-by: Jeffy Chen 11 | --- 12 | lib/libv4l2/libv4l2.c | 3 +++ 13 | 1 file changed, 3 insertions(+) 14 | 15 | diff --git a/lib/libv4l2/libv4l2.c b/lib/libv4l2/libv4l2.c 16 | index 11d2ae1..d9edec1 100644 17 | --- a/lib/libv4l2/libv4l2.c 18 | +++ b/lib/libv4l2/libv4l2.c 19 | @@ -789,6 +789,9 @@ int v4l2_fd_open(int fd, int v4l2_flags) 20 | if (dev_ops->ioctl(dev_ops_priv, fd, VIDIOC_G_PARM, &parm)) 21 | parm.type = 0; 22 | 23 | + if (!getenv("LIBV4L2_ALLOW_CONVERSION")) 24 | + v4l2_flags |= V4L2_DISABLE_CONVERSION; 25 | + 26 | /* init libv4lconvert */ 27 | if (!(v4l2_flags & V4L2_DISABLE_CONVERSION)) { 28 | convert = v4lconvert_create_with_dev_ops(fd, dev_ops_priv, dev_ops); 29 | -- 30 | 2.20.1 31 | 32 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.7/0014-waylandsink-Drop-frame-when-window-not-ready.patch: -------------------------------------------------------------------------------- 1 | From 2ff83d042c48631a92dd50ce9715a0244175789b Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 25 Nov 2020 10:51:12 +0800 4 | Subject: [PATCH 14/46] waylandsink: Drop frame when window not ready 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | ext/wayland/gstwaylandsink.c | 5 +++++ 9 | 1 file changed, 5 insertions(+) 10 | 11 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 12 | index 6647123f..25694cff 100644 13 | --- a/ext/wayland/gstwaylandsink.c 14 | +++ b/ext/wayland/gstwaylandsink.c 15 | @@ -881,10 +881,15 @@ render: 16 | 17 | no_window_size: 18 | { 19 | + /* HACK: Drop frame when window not ready */ 20 | +#if 0 21 | GST_ELEMENT_ERROR (sink, RESOURCE, WRITE, 22 | ("Window has no size set"), 23 | ("Make sure you set the size after calling set_window_handle")); 24 | ret = GST_FLOW_ERROR; 25 | +#else 26 | + GST_WARNING_OBJECT (sink, "Window has no size set"); 27 | +#endif 28 | goto done; 29 | } 30 | no_buffer: 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.7/0013-waylandsink-Drop-frame-when-window-not-ready.patch: -------------------------------------------------------------------------------- 1 | From e87c430bb24078e127b628c3735cb855af1a5a2a Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 25 Nov 2020 10:51:12 +0800 4 | Subject: [PATCH 13/49] waylandsink: Drop frame when window not ready 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | ext/wayland/gstwaylandsink.c | 5 +++++ 9 | 1 file changed, 5 insertions(+) 10 | 11 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 12 | index 7e146fe8..a4de9ab2 100644 13 | --- a/ext/wayland/gstwaylandsink.c 14 | +++ b/ext/wayland/gstwaylandsink.c 15 | @@ -926,10 +926,15 @@ render: 16 | 17 | no_window_size: 18 | { 19 | + /* HACK: Drop frame when window not ready */ 20 | +#if 0 21 | GST_ELEMENT_ERROR (self, RESOURCE, WRITE, 22 | ("Window has no size set"), 23 | ("Make sure you set the size after calling set_window_handle")); 24 | ret = GST_FLOW_ERROR; 25 | +#else 26 | + GST_WARNING_OBJECT (self, "Window has no size set"); 27 | +#endif 28 | goto done; 29 | } 30 | no_buffer: 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.9/0013-waylandsink-Drop-frame-when-window-not-ready.patch: -------------------------------------------------------------------------------- 1 | From 874656cb55e933468a1a9ac675b00bf70752addd Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 25 Nov 2020 10:51:12 +0800 4 | Subject: [PATCH 13/49] waylandsink: Drop frame when window not ready 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | ext/wayland/gstwaylandsink.c | 5 +++++ 9 | 1 file changed, 5 insertions(+) 10 | 11 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 12 | index 7e146fe8..a4de9ab2 100644 13 | --- a/ext/wayland/gstwaylandsink.c 14 | +++ b/ext/wayland/gstwaylandsink.c 15 | @@ -926,10 +926,15 @@ render: 16 | 17 | no_window_size: 18 | { 19 | + /* HACK: Drop frame when window not ready */ 20 | +#if 0 21 | GST_ELEMENT_ERROR (self, RESOURCE, WRITE, 22 | ("Window has no size set"), 23 | ("Make sure you set the size after calling set_window_handle")); 24 | ret = GST_FLOW_ERROR; 25 | +#else 26 | + GST_WARNING_OBJECT (self, "Window has no size set"); 27 | +#endif 28 | goto done; 29 | } 30 | no_buffer: 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.11/0009-waylandsink-Drop-frame-when-window-not-ready.patch: -------------------------------------------------------------------------------- 1 | From 8d5a88ed2bb5aee6fed2c7558c80a79706df6b53 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 25 Nov 2020 10:51:12 +0800 4 | Subject: [PATCH 09/42] waylandsink: Drop frame when window not ready 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | ext/wayland/gstwaylandsink.c | 5 +++++ 9 | 1 file changed, 5 insertions(+) 10 | 11 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 12 | index e45bd93..d68b795 100644 13 | --- a/ext/wayland/gstwaylandsink.c 14 | +++ b/ext/wayland/gstwaylandsink.c 15 | @@ -1061,10 +1061,15 @@ render: 16 | 17 | no_window_size: 18 | { 19 | + /* HACK: Drop frame when window not ready */ 20 | +#if 0 21 | GST_ELEMENT_ERROR (self, RESOURCE, WRITE, 22 | ("Window has no size set"), 23 | ("Make sure you set the size after calling set_window_handle")); 24 | ret = GST_FLOW_ERROR; 25 | +#else 26 | + GST_WARNING_OBJECT (self, "Window has no size set"); 27 | +#endif 28 | goto done; 29 | } 30 | no_buffer: 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.6/0009-waylandsink-Drop-frame-when-window-not-ready.patch: -------------------------------------------------------------------------------- 1 | From 896197e4a78bbeef5bf5c328d57c6d156ad53470 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Wed, 25 Nov 2020 10:51:12 +0800 4 | Subject: [PATCH 09/40] waylandsink: Drop frame when window not ready 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | ext/wayland/gstwaylandsink.c | 5 +++++ 9 | 1 file changed, 5 insertions(+) 10 | 11 | diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c 12 | index a19c664..9eaccbe 100644 13 | --- a/ext/wayland/gstwaylandsink.c 14 | +++ b/ext/wayland/gstwaylandsink.c 15 | @@ -1032,10 +1032,15 @@ render: 16 | 17 | no_window_size: 18 | { 19 | + /* HACK: Drop frame when window not ready */ 20 | +#if 0 21 | GST_ELEMENT_ERROR (self, RESOURCE, WRITE, 22 | ("Window has no size set"), 23 | ("Make sure you set the size after calling set_window_handle")); 24 | ret = GST_FLOW_ERROR; 25 | +#else 26 | + GST_WARNING_OBJECT (self, "Window has no size set"); 27 | +#endif 28 | goto done; 29 | } 30 | no_buffer: 31 | -- 32 | 2.20.1 33 | 34 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.7/0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch: -------------------------------------------------------------------------------- 1 | From b0742273f01b5ba092cc548f8e42f38baa418f9d Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 4 May 2023 09:12:49 +0800 4 | Subject: [PATCH 17/22] xvimagesink: Ignore expose-redraw when video not ready 5 | 6 | See: 7 | https://github.com/JeffyCN/rockchip_mirrors/issues/26 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/xvimage/xvimagesink.c | 5 +++++ 12 | 1 file changed, 5 insertions(+) 13 | 14 | diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c 15 | index ef49a5f..791ae06 100644 16 | --- a/sys/xvimage/xvimagesink.c 17 | +++ b/sys/xvimage/xvimagesink.c 18 | @@ -1552,6 +1552,11 @@ gst_xv_image_sink_expose (GstVideoOverlay * overlay) 19 | 20 | GST_DEBUG ("doing expose"); 21 | gst_xv_image_sink_xwindow_update_geometry (xvimagesink); 22 | + 23 | + if (GST_VIDEO_SINK_WIDTH (xvimagesink) <= 0 || 24 | + GST_VIDEO_SINK_HEIGHT (xvimagesink) <= 0) 25 | + return; 26 | + 27 | gst_xv_image_sink_xvimage_put (xvimagesink, NULL); 28 | } 29 | 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.7/0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch: -------------------------------------------------------------------------------- 1 | From f0fa472d7cb89187e008f2404443ace2c6e72c5e Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 4 May 2023 09:12:49 +0800 4 | Subject: [PATCH 17/22] xvimagesink: Ignore expose-redraw when video not ready 5 | 6 | See: 7 | https://github.com/JeffyCN/rockchip_mirrors/issues/26 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/xvimage/xvimagesink.c | 5 +++++ 12 | 1 file changed, 5 insertions(+) 13 | 14 | diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c 15 | index 9f8b594..784a251 100644 16 | --- a/sys/xvimage/xvimagesink.c 17 | +++ b/sys/xvimage/xvimagesink.c 18 | @@ -1690,6 +1690,11 @@ gst_xv_image_sink_expose (GstVideoOverlay * overlay) 19 | 20 | GST_DEBUG ("doing expose"); 21 | gst_xv_image_sink_xwindow_update_geometry (xvimagesink); 22 | + 23 | + if (GST_VIDEO_SINK_WIDTH (xvimagesink) <= 0 || 24 | + GST_VIDEO_SINK_HEIGHT (xvimagesink) <= 0) 25 | + return; 26 | + 27 | gst_xv_image_sink_xvimage_put (xvimagesink, NULL); 28 | } 29 | 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.9/0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch: -------------------------------------------------------------------------------- 1 | From 8fef488baa16ba1cafd192fe522979846ebd4e7a Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 4 May 2023 09:12:49 +0800 4 | Subject: [PATCH 17/22] xvimagesink: Ignore expose-redraw when video not ready 5 | 6 | See: 7 | https://github.com/JeffyCN/rockchip_mirrors/issues/26 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/xvimage/xvimagesink.c | 5 +++++ 12 | 1 file changed, 5 insertions(+) 13 | 14 | diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c 15 | index 9f8b594..784a251 100644 16 | --- a/sys/xvimage/xvimagesink.c 17 | +++ b/sys/xvimage/xvimagesink.c 18 | @@ -1690,6 +1690,11 @@ gst_xv_image_sink_expose (GstVideoOverlay * overlay) 19 | 20 | GST_DEBUG ("doing expose"); 21 | gst_xv_image_sink_xwindow_update_geometry (xvimagesink); 22 | + 23 | + if (GST_VIDEO_SINK_WIDTH (xvimagesink) <= 0 || 24 | + GST_VIDEO_SINK_HEIGHT (xvimagesink) <= 0) 25 | + return; 26 | + 27 | gst_xv_image_sink_xvimage_put (xvimagesink, NULL); 28 | } 29 | 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.24.11/0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch: -------------------------------------------------------------------------------- 1 | From 9c8bfe3986e2315c16d4b6463137da7d96c24bb6 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 4 May 2023 09:12:49 +0800 4 | Subject: [PATCH 17/23] xvimagesink: Ignore expose-redraw when video not ready 5 | 6 | See: 7 | https://github.com/JeffyCN/rockchip_mirrors/issues/26 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/xvimage/xvimagesink.c | 5 +++++ 12 | 1 file changed, 5 insertions(+) 13 | 14 | diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c 15 | index 6c50112..88a6554 100644 16 | --- a/sys/xvimage/xvimagesink.c 17 | +++ b/sys/xvimage/xvimagesink.c 18 | @@ -1690,6 +1690,11 @@ gst_xv_image_sink_expose (GstVideoOverlay * overlay) 19 | 20 | GST_DEBUG ("doing expose"); 21 | gst_xv_image_sink_xwindow_update_geometry (xvimagesink); 22 | + 23 | + if (GST_VIDEO_SINK_WIDTH (xvimagesink) <= 0 || 24 | + GST_VIDEO_SINK_HEIGHT (xvimagesink) <= 0) 25 | + return; 26 | + 27 | gst_xv_image_sink_xvimage_put (xvimagesink, NULL); 28 | } 29 | 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.24.6/0017-xvimagesink-Ignore-expose-redraw-when-video-not-read.patch: -------------------------------------------------------------------------------- 1 | From c00222072c427316a00486ea53200d1e6fb10434 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 4 May 2023 09:12:49 +0800 4 | Subject: [PATCH 17/22] xvimagesink: Ignore expose-redraw when video not ready 5 | 6 | See: 7 | https://github.com/JeffyCN/rockchip_mirrors/issues/26 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | sys/xvimage/xvimagesink.c | 5 +++++ 12 | 1 file changed, 5 insertions(+) 13 | 14 | diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c 15 | index 9f8b594..784a251 100644 16 | --- a/sys/xvimage/xvimagesink.c 17 | +++ b/sys/xvimage/xvimagesink.c 18 | @@ -1690,6 +1690,11 @@ gst_xv_image_sink_expose (GstVideoOverlay * overlay) 19 | 20 | GST_DEBUG ("doing expose"); 21 | gst_xv_image_sink_xwindow_update_geometry (xvimagesink); 22 | + 23 | + if (GST_VIDEO_SINK_WIDTH (xvimagesink) <= 0 || 24 | + GST_VIDEO_SINK_HEIGHT (xvimagesink) <= 0) 25 | + return; 26 | + 27 | gst_xv_image_sink_xvimage_put (xvimagesink, NULL); 28 | } 29 | 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_100.0.4896/0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From 387296b7ef10e87a64175f0275d4eeae588d072d Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 08/15] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index c2df35976..2660882a0 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_101.0.4951/0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From 642171700f3f50e3d38a627339a44381fa933eaa Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 08/15] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index c2df35976..2660882a0 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_103.0.5060/0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From 4d73a2a5bb0c8013f0bec4b7d044f86ae09f9be9 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 08/14] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index 4ad96a19d..f22ee1536 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_104.0.5112/0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From 9e82e1ad8be9cb9f0838c0e657ab1a8f04278882 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 08/17] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index 60835c6af..9ee4719f6 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_105.0.5195/0008-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From 20e3b7d094e2bb1b62081cd529ea0e124071f994 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 08/17] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index 60835c6af..9ee4719f6 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_109.0.5414/0009-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From aa837dc37a6d7d2a943d7ac2b64cf63512f573de Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 09/17] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index 9319022c8..a1a82d51d 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_111.0.5563/0009-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From b9d7819e223d0239d983a1da4386351268ad8572 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 09/18] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index 9319022c8..a1a82d51d 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_114.0.5735/0009-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From 201ae339f30bdee71527f1e25175faec8110183a Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 09/20] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index 9319022c8..a1a82d51d 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_119.0.6045/0002-HACK-media-gpu-v4l2-Enable-V4L2-VEA.patch: -------------------------------------------------------------------------------- 1 | From bc9ce5407d5d7b4de0c7dd7a9a98f3aa86847420 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Mon, 13 Feb 2023 15:30:55 +0800 4 | Subject: [PATCH 02/17] HACK: media: gpu: v4l2: Enable V4L2 VEA 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/v4l2/BUILD.gn | 5 +++++ 9 | 1 file changed, 5 insertions(+) 10 | 11 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 12 | index 5aa6d8c76..6c754a3d8 100644 13 | --- a/media/gpu/v4l2/BUILD.gn 14 | +++ b/media/gpu/v4l2/BUILD.gn 15 | @@ -89,7 +89,12 @@ source_set("v4l2") { 16 | # AV1 delegate depends on header files only in ChromeOS SDK 17 | "v4l2_video_decoder_delegate_av1.cc", 18 | "v4l2_video_decoder_delegate_av1.h", 19 | + ] 20 | + } 21 | 22 | + # HACK: Enable V4L2 VEA for v4l-rkmpp. 23 | + if (true) { 24 | + sources += [ 25 | # TODO(crbug.com/901264): Encoders use hack for passing offset 26 | # within a DMA-buf, which is not supported upstream. 27 | "v4l2_video_encode_accelerator.cc", 28 | -- 29 | 2.38.5 30 | 31 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_119.0.6045/0010-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From 2aa18e849863910608db9f431997e10ef6b15e7a Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 10/17] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index a1e403fdf..4e5a3bec6 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.38.5 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_98.0.4758/0010-ui-events-ozone-Define-SW_PEN_INSERTED-for-old-kerne.patch: -------------------------------------------------------------------------------- 1 | From 41ddd053ea55a15bcb3857fe0a02993c7acb1698 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 20 May 2021 01:05:29 +0800 4 | Subject: [PATCH 10/17] ui: events: ozone: Define SW_PEN_INSERTED for old 5 | kernel headers 6 | 7 | Signed-off-by: Jeffy Chen 8 | --- 9 | ui/events/ozone/evdev/event_converter_evdev_impl.cc | 4 ++++ 10 | 1 file changed, 4 insertions(+) 11 | 12 | diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 13 | index c2df3597..2660882a 100644 14 | --- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc 15 | +++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc 16 | @@ -31,6 +31,10 @@ namespace { 17 | const int kKeyReleaseValue = 0; 18 | const int kKeyRepeatValue = 2; 19 | 20 | +#ifndef SW_PEN_INSERTED 21 | +#define SW_PEN_INSERTED 0x0f /* set = pen inserted */ 22 | +#endif 23 | + 24 | // Values for the EV_SW code. 25 | const int kSwitchStylusInserted = SW_PEN_INSERTED; 26 | 27 | -- 28 | 2.17.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-kernel/linux-libc-headers/linux-libc-headers_4.4-custom/0005-uapi-ioctls.h-Add-TIOCGPTPEER-from-upstream.patch: -------------------------------------------------------------------------------- 1 | From deb6bd966f6b26a0892e4b35069aafb1abe38dd2 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 17 Sep 2020 17:51:12 +0800 4 | Subject: [PATCH 5/5] uapi: ioctls.h: Add TIOCGPTPEER from upstream 5 | 6 | No functional changes. 7 | 8 | Change-Id: Ie31d5e668347c2ee1125c5741d30bbda6ef1ed4c 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | include/uapi/asm-generic/ioctls.h | 1 + 12 | 1 file changed, 1 insertion(+) 13 | 14 | diff --git a/include/uapi/asm-generic/ioctls.h b/include/uapi/asm-generic/ioctls.h 15 | index 143dacbb7d9a..14baf9f23a14 100644 16 | --- a/include/uapi/asm-generic/ioctls.h 17 | +++ b/include/uapi/asm-generic/ioctls.h 18 | @@ -77,6 +77,7 @@ 19 | #define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */ 20 | #define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */ 21 | #define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */ 22 | +#define TIOCGPTPEER _IO('T', 0x41) /* Safely open the slave */ 23 | 24 | #define FIONCLEX 0x5450 25 | #define FIOCLEX 0x5451 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.7/0012-gstjpegparse-Allow-parsebin-to-use-it-for-autopluggi.patch: -------------------------------------------------------------------------------- 1 | From 1ae263cdb327a4a3e4d53a374c9d24add07e1461 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 17 Nov 2020 11:51:40 +0800 4 | Subject: [PATCH 12/49] gstjpegparse: Allow parsebin to use it for autoplugging 5 | 6 | Increase rank. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | gst/jpegformat/gstjpegparse.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c 14 | index 6be24a28..3c549030 100644 15 | --- a/gst/jpegformat/gstjpegparse.c 16 | +++ b/gst/jpegformat/gstjpegparse.c 17 | @@ -107,7 +107,7 @@ static gboolean gst_jpeg_parse_stop (GstBaseParse * parse); 18 | 19 | #define gst_jpeg_parse_parent_class parent_class 20 | G_DEFINE_TYPE (GstJpegParse, gst_jpeg_parse, GST_TYPE_BASE_PARSE); 21 | -GST_ELEMENT_REGISTER_DEFINE (jpegparse, "jpegparse", GST_RANK_NONE, 22 | +GST_ELEMENT_REGISTER_DEFINE (jpegparse, "jpegparse", GST_RANK_SECONDARY, 23 | GST_TYPE_JPEG_PARSE); 24 | 25 | enum GstJPEGColorspace 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.9/0012-gstjpegparse-Allow-parsebin-to-use-it-for-autopluggi.patch: -------------------------------------------------------------------------------- 1 | From 66fad78ab7f1237848ab3dc1484f8bf5e63791a5 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Tue, 17 Nov 2020 11:51:40 +0800 4 | Subject: [PATCH 12/49] gstjpegparse: Allow parsebin to use it for autoplugging 5 | 6 | Increase rank. 7 | 8 | Signed-off-by: Jeffy Chen 9 | --- 10 | gst/jpegformat/gstjpegparse.c | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c 14 | index 6be24a28..3c549030 100644 15 | --- a/gst/jpegformat/gstjpegparse.c 16 | +++ b/gst/jpegformat/gstjpegparse.c 17 | @@ -107,7 +107,7 @@ static gboolean gst_jpeg_parse_stop (GstBaseParse * parse); 18 | 19 | #define gst_jpeg_parse_parent_class parent_class 20 | G_DEFINE_TYPE (GstJpegParse, gst_jpeg_parse, GST_TYPE_BASE_PARSE); 21 | -GST_ELEMENT_REGISTER_DEFINE (jpegparse, "jpegparse", GST_RANK_NONE, 22 | +GST_ELEMENT_REGISTER_DEFINE (jpegparse, "jpegparse", GST_RANK_SECONDARY, 23 | GST_TYPE_JPEG_PARSE); 24 | 25 | enum GstJPEGColorspace 26 | -- 27 | 2.20.1 28 | 29 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_98.0.4758/0007-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From 8a48561c514b3ba7db6177722c79b06d39182ab1 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 07/17] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index b9da0b3c..64aa8c6d 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -115,7 +115,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.17.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_100.0.4896/0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From ef62e0316c2af86285e4c77f74ac4927ad2ebed3 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 05/15] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index b9da0b3cd..64aa8c6de 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -115,7 +115,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_101.0.4951/0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From 18cce79077f74306f70db39e5b2675287669b50c Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 05/15] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index a3fe307c8..eb756a914 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -114,7 +114,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_103.0.5060/0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From bb98abf98e94848fa352df5edff3d5461f004196 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 05/14] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index a3fe307c8..eb756a914 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -114,7 +114,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_104.0.5112/0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From 8c9eb38c01929daf2fb460ab49b18bedd86500da Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 05/17] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index a3fe307c8..eb756a914 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -114,7 +114,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_105.0.5195/0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From 12313d81393f2dc0d1b1f46343e729786decb450 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 05/17] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index ee637c196..61c003ba6 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -114,7 +114,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_109.0.5414/0006-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From 2b451f5e52bf476bebe5c3e47ba94370108d7d4e Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 06/17] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index 559e273d7..6485fc4fe 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -110,7 +110,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_111.0.5563/0006-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From 345092ade3606cf709dff8fdbc0a58b3355cf20e Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 06/18] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index 606db8e73..abbf2e574 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -110,7 +110,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_114.0.5735/0006-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch: -------------------------------------------------------------------------------- 1 | From dbc8604d5c05812f02fe7a163619dffd5ac04767 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Fri, 10 Apr 2020 16:16:08 +0800 4 | Subject: [PATCH 06/20] media: gpu: v4l2: Use POLLIN for pending event 5 | 6 | The v4l-rkmpp is using eventfd to fake poll events which not supporting 7 | POLLPRI. 8 | 9 | Signed-off-by: Jeffy Chen 10 | --- 11 | media/gpu/v4l2/generic_v4l2_device.cc | 2 +- 12 | 1 file changed, 1 insertion(+), 1 deletion(-) 13 | 14 | diff --git a/media/gpu/v4l2/generic_v4l2_device.cc b/media/gpu/v4l2/generic_v4l2_device.cc 15 | index 7a6734c9f..29a4523ad 100644 16 | --- a/media/gpu/v4l2/generic_v4l2_device.cc 17 | +++ b/media/gpu/v4l2/generic_v4l2_device.cc 18 | @@ -108,7 +108,7 @@ bool GenericV4L2Device::Poll(bool poll_device, bool* event_pending) { 19 | VPLOGF(1) << "poll() failed"; 20 | return false; 21 | } 22 | - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI); 23 | + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN); 24 | return true; 25 | } 26 | 27 | -- 28 | 2.20.1 29 | 30 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.7/0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch: -------------------------------------------------------------------------------- 1 | From 8691ae5d5d5aca550d8174713bd5f21ee136fada Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 28 Apr 2022 17:31:28 +0800 4 | Subject: [PATCH 01/22] Revert "decodebin: only emit 'drained' signal when top 5 | chain is drained" 6 | 7 | This reverts commit e945b3706c86aa13d05d195a1170e6277a247548. 8 | 9 | See: 10 | https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/976 11 | 12 | Signed-off-by: Jeffy Chen 13 | --- 14 | gst/playback/gstdecodebin2.c | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c 18 | index 41f8cdf..4b5f89c 100644 19 | --- a/gst/playback/gstdecodebin2.c 20 | +++ b/gst/playback/gstdecodebin2.c 21 | @@ -4239,7 +4239,7 @@ beach: 22 | 23 | *drained = chain->drained; 24 | 25 | - if (*drained && !chain->parent) /* only emit signal from top chain */ 26 | + if (*drained) 27 | g_signal_emit (dbin, gst_decode_bin_signals[SIGNAL_DRAINED], 0, NULL); 28 | 29 | return handled; 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.7/0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch: -------------------------------------------------------------------------------- 1 | From b88a553011deef12223ee8a8561983c4441891a7 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 28 Apr 2022 17:31:28 +0800 4 | Subject: [PATCH 01/22] Revert "decodebin: only emit 'drained' signal when top 5 | chain is drained" 6 | 7 | This reverts commit e945b3706c86aa13d05d195a1170e6277a247548. 8 | 9 | See: 10 | https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/976 11 | 12 | Signed-off-by: Jeffy Chen 13 | --- 14 | gst/playback/gstdecodebin2.c | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c 18 | index 7dcad54..1849714 100644 19 | --- a/gst/playback/gstdecodebin2.c 20 | +++ b/gst/playback/gstdecodebin2.c 21 | @@ -4242,7 +4242,7 @@ beach: 22 | 23 | *drained = chain->drained; 24 | 25 | - if (*drained && !chain->parent) /* only emit signal from top chain */ 26 | + if (*drained) 27 | g_signal_emit (dbin, gst_decode_bin_signals[SIGNAL_DRAINED], 0, NULL); 28 | 29 | return handled; 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.9/0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch: -------------------------------------------------------------------------------- 1 | From 3caf4839070b3a9cd7fb8e69f29cef70ed76c5da Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 28 Apr 2022 17:31:28 +0800 4 | Subject: [PATCH 01/22] Revert "decodebin: only emit 'drained' signal when top 5 | chain is drained" 6 | 7 | This reverts commit e945b3706c86aa13d05d195a1170e6277a247548. 8 | 9 | See: 10 | https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/976 11 | 12 | Signed-off-by: Jeffy Chen 13 | --- 14 | gst/playback/gstdecodebin2.c | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c 18 | index 1500795..c03db3e 100644 19 | --- a/gst/playback/gstdecodebin2.c 20 | +++ b/gst/playback/gstdecodebin2.c 21 | @@ -4242,7 +4242,7 @@ beach: 22 | 23 | *drained = chain->drained; 24 | 25 | - if (*drained && !chain->parent) /* only emit signal from top chain */ 26 | + if (*drained) 27 | g_signal_emit (dbin, gst_decode_bin_signals[SIGNAL_DRAINED], 0, NULL); 28 | 29 | return handled; 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.24.6/0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch: -------------------------------------------------------------------------------- 1 | From cbe245f876ac4eadc1d86cd00db314f994489c28 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 28 Apr 2022 17:31:28 +0800 4 | Subject: [PATCH 01/22] Revert "decodebin: only emit 'drained' signal when top 5 | chain is drained" 6 | 7 | This reverts commit e945b3706c86aa13d05d195a1170e6277a247548. 8 | 9 | See: 10 | https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/976 11 | 12 | Signed-off-by: Jeffy Chen 13 | --- 14 | gst/playback/gstdecodebin2.c | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c 18 | index 9247625..dbeaf9e 100644 19 | --- a/gst/playback/gstdecodebin2.c 20 | +++ b/gst/playback/gstdecodebin2.c 21 | @@ -4273,7 +4273,7 @@ beach: 22 | 23 | *drained = chain->drained; 24 | 25 | - if (*drained && !chain->parent) /* only emit signal from top chain */ 26 | + if (*drained) 27 | g_signal_emit (dbin, gst_decode_bin_signals[SIGNAL_DRAINED], 0, NULL); 28 | 29 | return handled; 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.24.11/0001-Revert-decodebin-only-emit-drained-signal-when-top-c.patch: -------------------------------------------------------------------------------- 1 | From b802bffdbe2622e4b6017737bd4e16d9790fa9b8 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 28 Apr 2022 17:31:28 +0800 4 | Subject: [PATCH 01/23] Revert "decodebin: only emit 'drained' signal when top 5 | chain is drained" 6 | 7 | This reverts commit e945b3706c86aa13d05d195a1170e6277a247548. 8 | 9 | See: 10 | https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/976 11 | 12 | Signed-off-by: Jeffy Chen 13 | --- 14 | gst/playback/gstdecodebin2.c | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c 18 | index 9247625..dbeaf9e 100644 19 | --- a/gst/playback/gstdecodebin2.c 20 | +++ b/gst/playback/gstdecodebin2.c 21 | @@ -4273,7 +4273,7 @@ beach: 22 | 23 | *drained = chain->drained; 24 | 25 | - if (*drained && !chain->parent) /* only emit signal from top chain */ 26 | + if (*drained) 27 | g_signal_emit (dbin, gst_decode_bin_signals[SIGNAL_DRAINED], 0, NULL); 28 | 29 | return handled; 30 | -- 31 | 2.20.1 32 | 33 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_98.0.4758/0005-media-Enable-mojo-media-when-using-v4l2-codec-on-des.patch: -------------------------------------------------------------------------------- 1 | From aa4b0ec4529a95e434543da16838b73e69992dec Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 19 Dec 2019 14:22:32 +0800 4 | Subject: [PATCH 05/17] media: Enable mojo media when using v4l2 codec on 5 | desktop linux 6 | 7 | The newest chromium turns to use mojo video decoder instead of gpu video 8 | decoder. 9 | 10 | Signed-off-by: Jeffy Chen 11 | --- 12 | media/media_options.gni | 2 +- 13 | 1 file changed, 1 insertion(+), 1 deletion(-) 14 | 15 | diff --git a/media/media_options.gni b/media/media_options.gni 16 | index 2f3ad542..90dcfafa 100644 17 | --- a/media/media_options.gni 18 | +++ b/media/media_options.gni 19 | @@ -208,7 +208,7 @@ if (is_chromecast) { 20 | ] 21 | _default_mojo_media_host = "gpu" 22 | } else if (is_chromeos_ash || is_mac || is_win || 23 | - ((is_linux || is_chromeos_lacros) && use_vaapi)) { 24 | + ((is_linux || is_chromeos_lacros) && (use_vaapi || use_v4l2_codec))) { 25 | _default_mojo_media_services = [ "video_decoder" ] 26 | _default_mojo_media_host = "gpu" 27 | } 28 | -- 29 | 2.17.1 30 | 31 | -------------------------------------------------------------------------------- /recipes-multimedia/rockchip-rkisp/files/rkisp_daemons.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | ### BEGIN INIT INFO 3 | # Provides: rockchip-rkisp 4 | # Required-Start: mountvirtfs 5 | # Required-Stop: 6 | # Should-Start: 7 | # Should-Stop: 8 | # Default-Start: 2 3 4 5 9 | # Default-Stop: 0 1 6 10 | # Short-Description: 3A daemons for rkisp media devices 11 | ### END INIT INFO 12 | 13 | PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" 14 | 15 | start_rkisp_daemons() 16 | { 17 | for dev in /dev/media[0-9];do 18 | echo "Creating rkisp daemon for ${dev}..." 19 | start-stop-daemon --start --background --oknodo \ 20 | -m --pidfile "/var/run/rkisp_${dev##*/}.pid" \ 21 | --startas /usr/bin/rkisp_3A_server -- --mmedia=${dev} 22 | done 23 | } 24 | 25 | stop_rkisp_daemons() 26 | { 27 | for dev in /dev/media[0-9];do 28 | start-stop-daemon --stop --quiet --oknodo \ 29 | --pidfile "/var/run/rkisp_${dev##*/}.pid" 30 | done 31 | } 32 | 33 | case "$1" in 34 | start) 35 | start_rkisp_daemons 36 | ;; 37 | stop) 38 | stop_rkisp_daemons 39 | ;; 40 | restart|reload) 41 | stop_rkisp_daemons 42 | start_rkisp_daemons 43 | ;; 44 | *) 45 | echo "Usage: $0 {start|stop|restart}" 46 | exit 1 47 | esac 48 | 49 | exit 0 50 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_122.0.6261/0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch: -------------------------------------------------------------------------------- 1 | From 24f2eeb12ab84e11070fa01cb8028efb1404f9c8 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 2 Nov 2023 16:08:22 +0800 4 | Subject: [PATCH 03/16] media: gpu: v4l2: Gen libv4l2_stubs 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/v4l2/BUILD.gn | 8 ++++++++ 9 | 1 file changed, 8 insertions(+) 10 | 11 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 12 | index 956cc8410..75c9de554 100644 13 | --- a/media/gpu/v4l2/BUILD.gn 14 | +++ b/media/gpu/v4l2/BUILD.gn 15 | @@ -8,10 +8,18 @@ import("//build/config/ui.gni") 16 | import("//media/gpu/args.gni") 17 | import("//media/media_options.gni") 18 | import("//testing/test.gni") 19 | +import("//tools/generate_stubs/rules.gni") 20 | import("//ui/gl/features.gni") 21 | 22 | assert(use_v4l2_codec) 23 | 24 | +generate_stubs("libv4l2_stubs") { 25 | + extra_header = "v4l2_stub_header.fragment" 26 | + sigs = [ "v4l2.sig" ] 27 | + output_name = "v4l2_stubs" 28 | + deps = [ "//base" ] 29 | +} 30 | + 31 | source_set("v4l2") { 32 | defines = [ "MEDIA_GPU_IMPLEMENTATION" ] 33 | sources = [ 34 | -- 35 | 2.38.5 36 | 37 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_124.0.6367/0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch: -------------------------------------------------------------------------------- 1 | From 76d63ec54cd106132ba96b6d76b51e0e80fbc07e Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 2 Nov 2023 16:08:22 +0800 4 | Subject: [PATCH 03/16] media: gpu: v4l2: Gen libv4l2_stubs 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/v4l2/BUILD.gn | 8 ++++++++ 9 | 1 file changed, 8 insertions(+) 10 | 11 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 12 | index 99a378f19..5f6eb8d25 100644 13 | --- a/media/gpu/v4l2/BUILD.gn 14 | +++ b/media/gpu/v4l2/BUILD.gn 15 | @@ -8,10 +8,18 @@ import("//build/config/ui.gni") 16 | import("//media/gpu/args.gni") 17 | import("//media/media_options.gni") 18 | import("//testing/test.gni") 19 | +import("//tools/generate_stubs/rules.gni") 20 | import("//ui/gl/features.gni") 21 | 22 | assert(use_v4l2_codec) 23 | 24 | +generate_stubs("libv4l2_stubs") { 25 | + extra_header = "v4l2_stub_header.fragment" 26 | + sigs = [ "v4l2.sig" ] 27 | + output_name = "v4l2_stubs" 28 | + deps = [ "//base" ] 29 | +} 30 | + 31 | source_set("v4l2") { 32 | defines = [ "MEDIA_GPU_IMPLEMENTATION" ] 33 | sources = [ 34 | -- 35 | 2.38.5 36 | 37 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_125.0.6422/0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch: -------------------------------------------------------------------------------- 1 | From 4eb540e0b74097dadf22ab365397e5f186a5abb0 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 2 Nov 2023 16:08:22 +0800 4 | Subject: [PATCH 03/16] media: gpu: v4l2: Gen libv4l2_stubs 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/v4l2/BUILD.gn | 8 ++++++++ 9 | 1 file changed, 8 insertions(+) 10 | 11 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 12 | index 99a378f19..5f6eb8d25 100644 13 | --- a/media/gpu/v4l2/BUILD.gn 14 | +++ b/media/gpu/v4l2/BUILD.gn 15 | @@ -8,10 +8,18 @@ import("//build/config/ui.gni") 16 | import("//media/gpu/args.gni") 17 | import("//media/media_options.gni") 18 | import("//testing/test.gni") 19 | +import("//tools/generate_stubs/rules.gni") 20 | import("//ui/gl/features.gni") 21 | 22 | assert(use_v4l2_codec) 23 | 24 | +generate_stubs("libv4l2_stubs") { 25 | + extra_header = "v4l2_stub_header.fragment" 26 | + sigs = [ "v4l2.sig" ] 27 | + output_name = "v4l2_stubs" 28 | + deps = [ "//base" ] 29 | +} 30 | + 31 | source_set("v4l2") { 32 | defines = [ "MEDIA_GPU_IMPLEMENTATION" ] 33 | sources = [ 34 | -- 35 | 2.38.5 36 | 37 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_126.0.6478/0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch: -------------------------------------------------------------------------------- 1 | From 186c112f1fa7c4ffaeea7e02cab2fe9b97a63cb0 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 2 Nov 2023 16:08:22 +0800 4 | Subject: [PATCH 03/16] media: gpu: v4l2: Gen libv4l2_stubs 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/v4l2/BUILD.gn | 8 ++++++++ 9 | 1 file changed, 8 insertions(+) 10 | 11 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 12 | index 99a378f19..5f6eb8d25 100644 13 | --- a/media/gpu/v4l2/BUILD.gn 14 | +++ b/media/gpu/v4l2/BUILD.gn 15 | @@ -8,10 +8,18 @@ import("//build/config/ui.gni") 16 | import("//media/gpu/args.gni") 17 | import("//media/media_options.gni") 18 | import("//testing/test.gni") 19 | +import("//tools/generate_stubs/rules.gni") 20 | import("//ui/gl/features.gni") 21 | 22 | assert(use_v4l2_codec) 23 | 24 | +generate_stubs("libv4l2_stubs") { 25 | + extra_header = "v4l2_stub_header.fragment" 26 | + sigs = [ "v4l2.sig" ] 27 | + output_name = "v4l2_stubs" 28 | + deps = [ "//base" ] 29 | +} 30 | + 31 | source_set("v4l2") { 32 | defines = [ "MEDIA_GPU_IMPLEMENTATION" ] 33 | sources = [ 34 | -- 35 | 2.38.5 36 | 37 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_129.0.6668/0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch: -------------------------------------------------------------------------------- 1 | From 434074445b59a4d3f0648d33aaa138a8adc51278 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 2 Nov 2023 16:08:22 +0800 4 | Subject: [PATCH 03/16] media: gpu: v4l2: Gen libv4l2_stubs 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/v4l2/BUILD.gn | 8 ++++++++ 9 | 1 file changed, 8 insertions(+) 10 | 11 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 12 | index 3a67c02cf..f8ee0fd91 100644 13 | --- a/media/gpu/v4l2/BUILD.gn 14 | +++ b/media/gpu/v4l2/BUILD.gn 15 | @@ -8,10 +8,18 @@ import("//build/config/ui.gni") 16 | import("//media/gpu/args.gni") 17 | import("//media/media_options.gni") 18 | import("//testing/test.gni") 19 | +import("//tools/generate_stubs/rules.gni") 20 | import("//ui/gl/features.gni") 21 | 22 | assert(use_v4l2_codec) 23 | 24 | +generate_stubs("libv4l2_stubs") { 25 | + extra_header = "v4l2_stub_header.fragment" 26 | + sigs = [ "v4l2.sig" ] 27 | + output_name = "v4l2_stubs" 28 | + deps = [ "//base" ] 29 | +} 30 | + 31 | source_set("v4l2") { 32 | defines = [ "MEDIA_GPU_IMPLEMENTATION" ] 33 | sources = [ 34 | -- 35 | 2.38.5 36 | 37 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_130.0.6723/0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch: -------------------------------------------------------------------------------- 1 | From e02cc552e4d2720ad909a9bb2be8da06ed744f7a Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 2 Nov 2023 16:08:22 +0800 4 | Subject: [PATCH 03/16] media: gpu: v4l2: Gen libv4l2_stubs 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/v4l2/BUILD.gn | 8 ++++++++ 9 | 1 file changed, 8 insertions(+) 10 | 11 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 12 | index 3a67c02cf..f8ee0fd91 100644 13 | --- a/media/gpu/v4l2/BUILD.gn 14 | +++ b/media/gpu/v4l2/BUILD.gn 15 | @@ -8,10 +8,18 @@ import("//build/config/ui.gni") 16 | import("//media/gpu/args.gni") 17 | import("//media/media_options.gni") 18 | import("//testing/test.gni") 19 | +import("//tools/generate_stubs/rules.gni") 20 | import("//ui/gl/features.gni") 21 | 22 | assert(use_v4l2_codec) 23 | 24 | +generate_stubs("libv4l2_stubs") { 25 | + extra_header = "v4l2_stub_header.fragment" 26 | + sigs = [ "v4l2.sig" ] 27 | + output_name = "v4l2_stubs" 28 | + deps = [ "//base" ] 29 | +} 30 | + 31 | source_set("v4l2") { 32 | defines = [ "MEDIA_GPU_IMPLEMENTATION" ] 33 | sources = [ 34 | -- 35 | 2.38.5 36 | 37 | -------------------------------------------------------------------------------- /dynamic-layers/recipes-browser/chromium/chromium_131.0.6778/0003-media-gpu-v4l2-Gen-libv4l2_stubs.patch: -------------------------------------------------------------------------------- 1 | From 544b5cf655dd3a4777f93a0e523bc96484220e86 Mon Sep 17 00:00:00 2001 2 | From: Jeffy Chen 3 | Date: Thu, 2 Nov 2023 16:08:22 +0800 4 | Subject: [PATCH 03/16] media: gpu: v4l2: Gen libv4l2_stubs 5 | 6 | Signed-off-by: Jeffy Chen 7 | --- 8 | media/gpu/v4l2/BUILD.gn | 8 ++++++++ 9 | 1 file changed, 8 insertions(+) 10 | 11 | diff --git a/media/gpu/v4l2/BUILD.gn b/media/gpu/v4l2/BUILD.gn 12 | index f72ffded6..7fc1ea38d 100644 13 | --- a/media/gpu/v4l2/BUILD.gn 14 | +++ b/media/gpu/v4l2/BUILD.gn 15 | @@ -8,10 +8,18 @@ import("//build/config/ui.gni") 16 | import("//media/gpu/args.gni") 17 | import("//media/media_options.gni") 18 | import("//testing/test.gni") 19 | +import("//tools/generate_stubs/rules.gni") 20 | import("//ui/gl/features.gni") 21 | 22 | assert(use_v4l2_codec) 23 | 24 | +generate_stubs("libv4l2_stubs") { 25 | + extra_header = "v4l2_stub_header.fragment" 26 | + sigs = [ "v4l2.sig" ] 27 | + output_name = "v4l2_stubs" 28 | + deps = [ "//base" ] 29 | +} 30 | + 31 | source_set("v4l2") { 32 | defines = [ "MEDIA_GPU_IMPLEMENTATION" ] 33 | sources = [ 34 | -- 35 | 2.38.5 36 | 37 | --------------------------------------------------------------------------------