diff options
author | 2023-04-23 20:25:45 +0900 | |
---|---|---|
committer | 2023-05-09 08:13:10 +0900 | |
commit | b3e49987c5706612ee342c685dea799be596df6a (patch) | |
tree | 7c4e724755638a387fa7bf555e050f59be81fbbe /meta-agl-drm-lease/recipes-core/psplash/files/0005-Remove-psplash-fb.h-from-psplash.h.patch | |
parent | a070ad4db8e4a35fc34b0610b56dcfc1e2caaad3 (diff) |
Enable drm-lease support at psplash
The upstream version of psplash is supporting fb based splash screen.
On the other hand, drm lease infrastructure is not support fb.
This patch enable drm-lease support at psplash.
This work contributed by Hiroyuki Ishii at CES2023 demo development.
Bug-AGL: SPEC-4766
Change-Id: I50b382c7f8ca4b46a8fb06fd649d0cfa49800c6d
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'meta-agl-drm-lease/recipes-core/psplash/files/0005-Remove-psplash-fb.h-from-psplash.h.patch')
-rw-r--r-- | meta-agl-drm-lease/recipes-core/psplash/files/0005-Remove-psplash-fb.h-from-psplash.h.patch | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/meta-agl-drm-lease/recipes-core/psplash/files/0005-Remove-psplash-fb.h-from-psplash.h.patch b/meta-agl-drm-lease/recipes-core/psplash/files/0005-Remove-psplash-fb.h-from-psplash.h.patch new file mode 100644 index 00000000..602d703e --- /dev/null +++ b/meta-agl-drm-lease/recipes-core/psplash/files/0005-Remove-psplash-fb.h-from-psplash.h.patch @@ -0,0 +1,81 @@ +From 2f1fe1b5233d69cf354ffb5ab182810ef74c7e3d Mon Sep 17 00:00:00 2001 +From: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com> +Date: Mon, 25 Apr 2022 10:59:44 +0300 +Subject: [PATCH 05/17] Remove 'psplash-fb.h' from 'psplash.h' + +psplash might not be necessary based on framebuffer, it could use DRM +in future too. + +drm-backend backport from: +https://patchwork.yoctoproject.org/project/yocto/cover/20220425075954.10427-1-vasyl.vavrychuk@opensynergy.com/ + +Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com> +--- + psplash-fb.c | 2 +- + psplash-fb.h | 3 +++ + psplash.c | 1 + + psplash.h | 2 -- + 4 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/psplash-fb.c b/psplash-fb.c +index 1d2d7db..5dea82a 100644 +--- a/psplash-fb.c ++++ b/psplash-fb.c +@@ -8,7 +8,7 @@ + */ + + #include <endian.h> +-#include "psplash.h" ++#include "psplash-fb.h" + + static void + psplash_wait_for_vsync(PSplashFB *fb) +diff --git a/psplash-fb.h b/psplash-fb.h +index 6c4599c..4d5c460 100644 +--- a/psplash-fb.h ++++ b/psplash-fb.h +@@ -10,6 +10,9 @@ + #ifndef _HAVE_PSPLASH_FB_H + #define _HAVE_PSPLASH_FB_H + ++#include <linux/fb.h> ++#include "psplash.h" ++ + enum RGBMode { + RGB565, + BGR565, +diff --git a/psplash.c b/psplash.c +index 62244ba..18c012b 100644 +--- a/psplash.c ++++ b/psplash.c +@@ -11,6 +11,7 @@ + */ + + #include "psplash.h" ++#include "psplash-fb.h" + #include "psplash-config.h" + #include "psplash-colors.h" + #include "psplash-poky-img.h" +diff --git a/psplash.h b/psplash.h +index 02d6f32..ab8e53f 100644 +--- a/psplash.h ++++ b/psplash.h +@@ -15,7 +15,6 @@ + #include <errno.h> + #include <fcntl.h> + #include <limits.h> +-#include <linux/fb.h> + #include <linux/kd.h> + #include <linux/vt.h> + #include <signal.h> +@@ -78,7 +77,6 @@ typedef struct PSplashFont + PSplashFont; + + +-#include "psplash-fb.h" + #include "psplash-console.h" + + #endif +-- +2.25.1 + |