diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2018-11-01 09:02:07 -0500 |
---|---|---|
committer | Tom Hochstein <tom.hochstein@nxp.com> | 2018-11-01 10:14:42 -0500 |
commit | eff6dd1f5c683d11c1f6bbc35975e524a6401c15 (patch) | |
tree | 152e03e5664124cfdc47a9f44e994d15c90facf2 /recipes-graphics/wayland/weston | |
parent | 5684872b435eacf0616c4375ba386fa13fa3103a (diff) | |
download | meta-freescale-eff6dd1f5c683d11c1f6bbc35975e524a6401c15.tar.gz |
weston: Update open function patch
The g2d renderer open function patch was only needed for the
case of a file open. Remove the other un-needed change.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-graphics/wayland/weston')
-rw-r--r-- | recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch b/recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch index 38e78aa2..6f676048 100644 --- a/recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch +++ b/recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch | |||
@@ -18,11 +18,11 @@ Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> | |||
18 | libweston/g2d-renderer.c | 4 ++-- | 18 | libweston/g2d-renderer.c | 4 ++-- |
19 | 1 file changed, 2 insertions(+), 2 deletions(-) | 19 | 1 file changed, 2 insertions(+), 2 deletions(-) |
20 | 20 | ||
21 | diff --git a/libweston/g2d-renderer.c b/libweston/g2d-renderer.c | 21 | Index: git/libweston/g2d-renderer.c |
22 | index cc82711..0675350 100644 | 22 | =================================================================== |
23 | --- a/libweston/g2d-renderer.c | 23 | --- git.orig/libweston/g2d-renderer.c |
24 | +++ b/libweston/g2d-renderer.c | 24 | +++ git/libweston/g2d-renderer.c |
25 | @@ -1626,7 +1626,7 @@ g2d_renderer_create(struct weston_compositor *ec) | 25 | @@ -1626,7 +1626,7 @@ g2d_renderer_create(struct weston_compos |
26 | path = malloc(strlen(dir) + 40); | 26 | path = malloc(strlen(dir) + 40); |
27 | strcpy(path, dir); | 27 | strcpy(path, dir); |
28 | strcat(path, "/use-g2d-renderer"); | 28 | strcat(path, "/use-g2d-renderer"); |
@@ -31,15 +31,3 @@ index cc82711..0675350 100644 | |||
31 | free(path); | 31 | free(path); |
32 | 32 | ||
33 | return 0; | 33 | return 0; |
34 | @@ -1804,7 +1804,7 @@ fb_frame_buffer_open(struct g2d_output_state *output, const char *fb_dev, | ||
35 | struct fb_screeninfo *screen_info) | ||
36 | { | ||
37 | /* Open the frame buffer device. */ | ||
38 | - screen_info->fb_fd = open(fb_dev, O_RDWR | O_CLOEXEC); | ||
39 | + screen_info->fb_fd = open(fb_dev, O_RDWR | O_CLOEXEC, 0600); | ||
40 | if (screen_info->fb_fd < 0) { | ||
41 | weston_log("Failed to open frame buffer device%s \n", fb_dev); | ||
42 | return -1; | ||
43 | -- | ||
44 | 2.7.4 | ||
45 | |||