diff options
author | Fabio Estevam <festevam@denx.de> | 2024-01-08 22:09:49 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-10 17:01:28 +0000 |
commit | 17404d96e73b8e50339cb3b2fd1153a3e9072f0b (patch) | |
tree | 00cb3ea403bf602aa36768f36ab9bd8c66d32e03 /meta/recipes-graphics | |
parent | a3299e18a72b8cc1b85f5383bde1d7de8b36a4e0 (diff) | |
download | poky-17404d96e73b8e50339cb3b2fd1153a3e9072f0b.tar.gz |
kmscube: Change header file to <GLES3/gl3.h>
Since kmscube commit 96d63eb59e34 ("kmscube: Add gears mode"), kmscube
fails to build on platforms without <GL/gl.h>.
Fix it by changing the header file to <GLES3/gl3.h>.
Reported-by: Martin Jansa <martin.jansa@gmail.com>
(From OE-Core rev: f44f79298fc909aea9fcc8ebc848a96e9ff5a647)
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch | 33 | ||||
-rw-r--r-- | meta/recipes-graphics/kmscube/kmscube_git.bb | 4 |
2 files changed, 36 insertions, 1 deletions
diff --git a/meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch b/meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch new file mode 100644 index 0000000000..6843a662f4 --- /dev/null +++ b/meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 0651c4edc9909832ff2acbbf170268f34e36616d Mon Sep 17 00:00:00 2001 | ||
2 | From: Fabio Estevam <festevam@gmail.com> | ||
3 | Date: Mon, 8 Jan 2024 15:00:01 -0300 | ||
4 | Subject: [PATCH] cube-gears: Change header file to <GLES3/gl3.h> | ||
5 | |||
6 | Since commit 96d63eb59e34 ("kmscube: Add gears mode"), kmscube fails | ||
7 | to build on platforms without <GL/gl.h>. | ||
8 | |||
9 | Fix it by changing the header file to <GLES3/gl3.h>. | ||
10 | |||
11 | Reported-by: Martin Jansa <martin.jansa@gmail.com> | ||
12 | Suggested-by: Martin Jansa <martin.jansa@gmail.com> | ||
13 | Signed-off-by: Fabio Estevam <festevam@gmail.com> | ||
14 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/kmscube/-/merge_requests/51] | ||
15 | --- | ||
16 | cube-gears.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/cube-gears.c b/cube-gears.c | ||
20 | index d5b7a5f9cbef..cb538ecc4aee 100644 | ||
21 | --- a/cube-gears.c | ||
22 | +++ b/cube-gears.c | ||
23 | @@ -31,7 +31,7 @@ | ||
24 | #include <sys/time.h> | ||
25 | #include <math.h> | ||
26 | |||
27 | -#include <GL/gl.h> | ||
28 | +#include <GLES3/gl3.h> | ||
29 | |||
30 | #include "common.h" | ||
31 | #include "esUtil.h" | ||
32 | -- | ||
33 | 2.34.1 | ||
diff --git a/meta/recipes-graphics/kmscube/kmscube_git.bb b/meta/recipes-graphics/kmscube/kmscube_git.bb index aab582281a..63f29fd169 100644 --- a/meta/recipes-graphics/kmscube/kmscube_git.bb +++ b/meta/recipes-graphics/kmscube/kmscube_git.bb | |||
@@ -11,7 +11,9 @@ DEPENDS = "virtual/libgles3 virtual/libgles2 virtual/egl libdrm virtual/libgbm" | |||
11 | LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=8b309d4ee67b7315ff7381270dd631fb" | 11 | LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=8b309d4ee67b7315ff7381270dd631fb" |
12 | 12 | ||
13 | SRCREV = "96d63eb59e34c647cda1cbb489265f8c536ae055" | 13 | SRCREV = "96d63eb59e34c647cda1cbb489265f8c536ae055" |
14 | SRC_URI = "git://gitlab.freedesktop.org/mesa/kmscube;branch=master;protocol=https" | 14 | SRC_URI = "git://gitlab.freedesktop.org/mesa/kmscube;branch=master;protocol=https \ |
15 | file://0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch \ | ||
16 | " | ||
15 | 17 | ||
16 | UPSTREAM_CHECK_COMMITS = "1" | 18 | UPSTREAM_CHECK_COMMITS = "1" |
17 | 19 | ||