Ensure the layers do pass again and that the scripts are up-to-date.
Bug-AGL: SPEC-4680
Bug-AGL: SPEC-4686
Change-Id: Id1279d4a43b89d50731dd85e9347d35d524e14b7
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
This layer has been tested on the Renesas R-Car Gen3 platform. Other platforms
supporting the Linux DRM API may work as well.
+
+maintainer: agl-dev-community@lists.automotivelinux.org
+patch: agl-dev-community@lists.automotivelinux.org
qt6-layer:${LAYERDIR}/dynamic-layers/meta-qt6/*/*/*.bbappend \
raspberrypi:${LAYERDIR}/dynamic-layers/meta-raspberrypi/*/*/*.bb \
raspberrypi:${LAYERDIR}/dynamic-layers/meta-raspberrypi/*/*/*.bbappend \
+ aglcore:${LAYERDIR}/dynamic-layers/meta-agl-core/*/*/*.bb \
+ aglcore:${LAYERDIR}/dynamic-layers/meta-agl-core/*/*/*.bbappend \
"
# This should only be incremented on significant changes that will
--- /dev/null
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+
+# drm-backend backport from:
+# https://patchwork.yoctoproject.org/project/yocto/cover/20220425075954.10427-1-vasyl.vavrychuk@opensynergy.com/
+SRC_URI += " \
+ file://0001-Fix-duplicated-definition-of-bool.patch \
+ file://0002-Trim-trailing-spaces.patch \
+ file://0003-Fix-unused-result-warnings.patch \
+ file://0004-Remove-unused-save_termios.patch \
+ file://0005-Remove-psplash-fb.h-from-psplash.h.patch \
+ file://0006-Extract-plot-pixel-from-psplash-fb.patch \
+ file://0007-Extract-draw-rect-image-from-psplash-fb.patch \
+ file://0008-Extract-draw-font-from-psplash-fb.patch \
+ file://0009-psplash.c-Make-psplash_draw_-msg-progress-independen.patch \
+ file://0010-Rework-flip-as-function-pointer.patch \
+ file://0011-Import-drm-howto-modeset.c-as-psplash-drm.c.patch \
+ file://0012-Implement-drm-backend.patch \
+ file://0013-Reverse-modeset_list.patch \
+ file://0014-psplash-drm.c-Allocate-resources-only-for-the-first-.patch \
+ file://0015-psplash-drm.c-Implement-double-buffering.patch \
+ "
+
+# drm-lease support from:
+# https://github.com/agl-ic-eg/meta-agl-demo/tree/main/recipes-core/psplash
+SRC_URI += " \
+ file://0016-Imprement-drm-lease-support.patch \
+ file://0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch \
+ file://psplash-drmlease.conf \
+ "
+
+# Licesnse checksum was changed by above patches
+LIC_FILES_CHKSUM = "file://psplash.h;beginline=1;endline=8;md5=db1ed16abf4be6de3d79201093ac4f07"
+
+PACKAGECONFIG:append = " drm drm-lease"
+
+PACKAGECONFIG[drm] = "--enable-drm,,libdrm"
+PACKAGECONFIG[drm-lease] = "--enable-drm-lease,,drm-lease-manager"
+
+do_install:append () {
+ # Install override
+ install -d ${D}${systemd_system_unitdir}/psplash-start.service.d
+ install -m 0644 ${WORKDIR}/psplash-drmlease.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/
+}
-FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
-
-# drm-backend backport from:
-# https://patchwork.yoctoproject.org/project/yocto/cover/20220425075954.10427-1-vasyl.vavrychuk@opensynergy.com/
-SRC_URI += " \
- file://0001-Fix-duplicated-definition-of-bool.patch \
- file://0002-Trim-trailing-spaces.patch \
- file://0003-Fix-unused-result-warnings.patch \
- file://0004-Remove-unused-save_termios.patch \
- file://0005-Remove-psplash-fb.h-from-psplash.h.patch \
- file://0006-Extract-plot-pixel-from-psplash-fb.patch \
- file://0007-Extract-draw-rect-image-from-psplash-fb.patch \
- file://0008-Extract-draw-font-from-psplash-fb.patch \
- file://0009-psplash.c-Make-psplash_draw_-msg-progress-independen.patch \
- file://0010-Rework-flip-as-function-pointer.patch \
- file://0011-Import-drm-howto-modeset.c-as-psplash-drm.c.patch \
- file://0012-Implement-drm-backend.patch \
- file://0013-Reverse-modeset_list.patch \
- file://0014-psplash-drm.c-Allocate-resources-only-for-the-first-.patch \
- file://0015-psplash-drm.c-Implement-double-buffering.patch \
- "
-
-# drm-lease support from:
-# https://github.com/agl-ic-eg/meta-agl-demo/tree/main/recipes-core/psplash
-SRC_URI += " \
- file://0016-Imprement-drm-lease-support.patch \
- file://0017-drm-lease-Fix-incorrect-drawing-with-portrait-orient.patch \
- file://psplash-drmlease.conf \
- "
-
-# Licesnse checksum was changed by above patches
-LIC_FILES_CHKSUM = "file://psplash.h;beginline=1;endline=8;md5=db1ed16abf4be6de3d79201093ac4f07"
-
-PACKAGECONFIG:append = " drm drm-lease"
-
-PACKAGECONFIG[drm] = "--enable-drm,,libdrm"
-PACKAGECONFIG[drm-lease] = "--enable-drm-lease,,drm-lease-manager"
-
-do_install:append () {
- # Install override
- install -d ${D}${systemd_system_unitdir}/psplash-start.service.d
- install -m 0644 ${WORKDIR}/psplash-drmlease.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/
-}
+require ${@bb.utils.contains('AGL_FEATURES', 'agl-drm-lease', 'psplash_agl-drm-lease.inc', '', d)}
--- /dev/null
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+
+SRC_URI += "file://0001-texturator-Use-correct-GL-extension-header.patch \
+ file://0002-Add-DRM-lease-support.patch"
+
+PACKAGECONFIG += "drm-lease"
+PACKAGECONFIG[drm-lease] = "-Ddrm_lease=enabled,-Ddrm_lease=disabled,drm-lease-manager"
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-
-
-SRC_URI += "file://0001-texturator-Use-correct-GL-extension-header.patch \
- file://0002-Add-DRM-lease-support.patch"
-
-PACKAGECONFIG += "drm-lease"
-PACKAGECONFIG[drm-lease] = "-Ddrm_lease=enabled,-Ddrm_lease=disabled,drm-lease-manager"
+require ${@bb.utils.contains('AGL_FEATURES', 'agl-drm-lease', 'kmscube_agl-drm-lease.inc', '', d)}
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-
-SRC_URI:append = " \
- file://0001-backend-drm-Add-method-to-import-DRM-fd.patch \
- file://0002-Add-DRM-lease-support.patch \
- file://0001-compositor-do-not-request-repaint-in-output_enable.patch \
- "
-
-PACKAGECONFIG[drm-lease] = "-Ddrm-lease=true,-Ddrm-lease=false,drm-lease-manager"
-PACKAGECONFIG:append = " drm-lease"
+require ${@bb.utils.contains('AGL_FEATURES', 'agl-drm-lease', 'weston_agl-drm-lease.inc', '', d)}
--- /dev/null
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI:append = " \
+ file://0001-backend-drm-Add-method-to-import-DRM-fd.patch \
+ file://0002-Add-DRM-lease-support.patch \
+ file://0001-compositor-do-not-request-repaint-in-output_enable.patch \
+ "
+
+PACKAGECONFIG[drm-lease] = "-Ddrm-lease=true,-Ddrm-lease=false,drm-lease-manager"
+PACKAGECONFIG:append = " drm-lease"
--- /dev/null
+#!/bin/bash
+#set -x
+
+SCRIPTPATH="$( cd $(dirname $0) >/dev/null 2>&1 ; pwd -P )"
+echo $SCRIPTPATH
+AGLROOT="$SCRIPTPATH/../../.."
+POKYDIR="$AGLROOT/external/poky"
+TMPROOT=`mktemp -d`
+
+rm -rf ${TMPROOT}/testbuild-ycl || true
+mkdir -p ${TMPROOT}/testbuild-ycl
+cd ${TMPROOT}/testbuild-ycl
+
+source $POKYDIR/oe-init-build-env .
+
+cat << EOF >> conf/local.conf
+# just define defaults
+AGL_FEATURES ?= ""
+AGL_EXTRA_IMAGE_FSTYPES ?= ""
+
+# important settings imported from poky-agl.conf
+# we cannot import the distro config right away
+# as the initial values are poky only till the layer
+# is added in
+
+AGL_DEFAULT_DISTRO_FEATURES = "usrmerge largefile opengl wayland pam bluetooth bluez5 3g"
+DISTRO_FEATURES:append = " systemd wayland pam \${AGL_DEFAULT_DISTRO_FEATURES}"
+DISTRO_FEATURES_BACKFILL_CONSIDERED:append = " sysvinit"
+VIRTUAL-RUNTIME_init_manager = "systemd"
+
+EOF
+
+yocto-check-layer --no-auto-dependency \
+ -- \
+ $AGLROOT/meta-agl-devel/meta-agl-drm-lease
+# --dependency \
+# $AGLROOT/meta-agl/meta-agl-core \
+#
+
+[ $? = 0 ] && rm -rf ${TMPROOT}/testbuild-ycl
+
+exit 0