added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,66 @@
From beb3456d5c78db39ffa0b5530ab25d901a8f70da Mon Sep 17 00:00:00 2001
From: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
Date: Thu, 28 Apr 2022 09:34:30 +0200
Subject: [PATCH] remove gpu_vivante test
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
---
config.tests/gpu_vivante/gpu_vivante.pro | 1 -
config.tests/gpu_vivante/main.cpp | 37 ------------------------
2 files changed, 38 deletions(-)
delete mode 100644 config.tests/gpu_vivante/gpu_vivante.pro
delete mode 100644 config.tests/gpu_vivante/main.cpp
diff --git a/config.tests/gpu_vivante/gpu_vivante.pro b/config.tests/gpu_vivante/gpu_vivante.pro
deleted file mode 100644
index 28dcadcbf..000000000
--- a/config.tests/gpu_vivante/gpu_vivante.pro
+++ /dev/null
@@ -1 +0,0 @@
-SOURCES += main.cpp
diff --git a/config.tests/gpu_vivante/main.cpp b/config.tests/gpu_vivante/main.cpp
deleted file mode 100644
index 589fca084..000000000
--- a/config.tests/gpu_vivante/main.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Toolkit
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <GLES2/gl2.h>
-#include <GLES2/gl2ext.h>
-
-const int format = GL_VIV_YV12;
-
-int main(int argc, char** argv)
-{
- return 0;
-}
--
2.25.1

View File

@@ -0,0 +1,8 @@
{
"device": "/dev/dri/card0",
"outputs": [
{ "name": "HDMI1", "mode": "1280x720", "size": "1280x720" }
],
"hwcursor": false
}

View File

@@ -0,0 +1,29 @@
#!/bin/sh -
export QT_QPA_PLATFORM=eglfs
if [ -e /usr/share/qt5/cursor.json ];
then
export QT_QPA_EGLFS_KMS_CONFIG=/usr/share/qt5/cursor.json
fi
# force to keep the MODE SETTING set
export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
#force to use KMS ATOMIC
export QT_QPA_EGLFS_KMS_ATOMIC=1
# EGLFS environment variables accessible for qt 5.12
# Documentation: https://doc.qt.io/qt-5/embedded-linux.html
##
# * QT_QPA_EGLFS_ROTATION
# Specifies the rotation applied to software-rendered content in QWidget-based applications
#
# * QT_QPA_EGLFS_KMS_ATOMIC
# enable the DRM atomic
#
# * QT_QPA_EGLFS_HIDECURSOR
# The mouse cursor shows up whenever this variable is not set
#
# * QT_QPA_EGLFS_ALWAYS_SET_MODE
# Due to the fact that modesetting is done only when the desired mode is actually
# different from the active one (unless forced via the QT_QPA_EGLFS_ALWAYS_SET_MODE
# environment variable), this value is useful to keep the current mode and any content
# in the planes not touched by Qt.

View File

@@ -0,0 +1,3 @@
#!/bin/sh -
export QT_QPA_PLATFORM=wayland

View File

@@ -0,0 +1,25 @@
# Copyright (C) 2018, STMicroelectronics - All Rights Reserved
SUMMARY = "add script and material to help with eglfs qt configuration"
HOMEPAGE = "www.st.com"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = ""
SRC_URI = " \
file://qt-eglfs.sh \
file://cursor.json \
"
S = "${WORKDIR}"
inherit allarch
do_install() {
install -d ${D}/${sysconfdir}/profile.d
install -d ${D}${datadir}/qt5
install -m 0755 ${WORKDIR}/qt-eglfs.sh ${D}/${sysconfdir}/profile.d/
install -m 0664 ${WORKDIR}/cursor.json ${D}${datadir}/qt5/
}
RDEPENDS:${PN} = "qtbase"
FILES:${PN} += "${datadir}/qt5"

View File

@@ -0,0 +1,22 @@
# Copyright (C) 2020, STMicroelectronics - All Rights Reserved
SUMMARY = "add script and material to help with qt-wayland configuration"
HOMEPAGE = "www.st.com"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = ""
SRC_URI = " \
file://qt-wayland.sh \
"
S = "${WORKDIR}"
inherit allarch
do_install() {
install -d ${D}/${sysconfdir}/profile.d
install -m 0755 ${WORKDIR}/qt-wayland.sh ${D}/${sysconfdir}/profile.d/
}
RDEPENDS:${PN} = "qtwayland"
FILES:${PN} += "${datadir}/qt5"

View File

@@ -0,0 +1,3 @@
# we may encouter some undefined references with the linux kernel statx function
# depending on the ACI machines / Yocto cache / zoostrap versions
QT_CONFIG_FLAGS += "-no-feature-statx -linuxfb"

View File

@@ -0,0 +1,33 @@
From eb5e4896ff01d44c12c8f3ffe1954a2709cb862e Mon Sep 17 00:00:00 2001
From: Jean-Philippe ROMAIN <jean-philippe.romain@st.com>
Date: Thu, 12 Jan 2017 09:20:10 +0100
Subject: [PATCH] qtbase: Cast EGL type for build issue
Change-Id: I8872f9dd4459b60967f00c0a6ad9660155240a39
---
config.tests/qpa/egl-x11/egl-x11.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/config.tests/qpa/egl-x11/egl-x11.cpp b/config.tests/qpa/egl-x11/egl-x11.cpp
index 8753b69..1a1bbd5 100644
--- a/config.tests/qpa/egl-x11/egl-x11.cpp
+++ b/config.tests/qpa/egl-x11/egl-x11.cpp
@@ -44,11 +44,11 @@
int main(int, char **)
{
- Display *dpy = EGL_DEFAULT_DISPLAY;
+ EGLNativeDisplayType dpy = EGL_DEFAULT_DISPLAY;
EGLNativeDisplayType egldpy = XOpenDisplay("");
dpy = egldpy;
- EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
- XDestroyWindow(dpy, w);
- XCloseDisplay(dpy);
+ EGLNativeWindowType w = (EGLNativeWindowType)XCreateWindow((Display*)dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+ XDestroyWindow((Display*)dpy, (Window)w);
+ XCloseDisplay((Display*)dpy);
return 0;
}
--
1.9.1

View File

@@ -0,0 +1,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
PACKAGECONFIG_GL = " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} "
PACKAGECONFIG:append = " eglfs examples accessibility "
QT_CONFIG_FLAGS += " -no-sse2 -no-opengles3"

View File

@@ -0,0 +1,8 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
gstreamer \
"
SRC_URI += "file://0001-remove-gpu_vivante-test.patch"

View File

@@ -0,0 +1,6 @@
PACKAGECONFIG = " \
wayland-client \
wayland-server \
wayland-egl \
"