diff options
author | Andrew F. Davis | 2018-09-04 12:06:17 -0500 |
---|---|---|
committer | Andrew F. Davis | 2018-09-04 12:06:17 -0500 |
commit | 8cf51d34e36a427895be520510ed49de4a7e3277 (patch) | |
tree | 6554c1187e548570f1f9ad8db59c6048975d941f | |
parent | c5ddc6a37bb78ac753b317b17d890d1f7338dea6 (diff) | |
download | external-libgbm-8cf51d34e36a427895be520510ed49de4a7e3277.tar.gz external-libgbm-8cf51d34e36a427895be520510ed49de4a7e3277.tar.xz external-libgbm-8cf51d34e36a427895be520510ed49de4a7e3277.zip |
Remove files and source not needed for Android version
Signed-off-by: Andrew F. Davis <afd@ti.com>
-rw-r--r-- | Makefile.am | 25 | ||||
-rwxr-xr-x | autogen.sh | 12 | ||||
-rw-r--r-- | backend_example.c | 135 | ||||
-rw-r--r-- | common.c | 88 | ||||
-rw-r--r-- | common.h | 42 | ||||
-rw-r--r-- | common_drm.h | 49 | ||||
-rw-r--r-- | configure.ac | 42 | ||||
-rw-r--r-- | debian/changelog | 57 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 41 | ||||
-rw-r--r-- | debian/copyright | 49 | ||||
-rw-r--r-- | debian/libgbm-dev.install | 2 | ||||
-rw-r--r-- | debian/libgbm1.install | 1 | ||||
-rwxr-xr-x | debian/rules | 11 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | gbm.c | 27 | ||||
-rw-r--r-- | gbm.pc.in | 12 |
17 files changed, 0 insertions, 595 deletions
diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index d065e4cd..00000000 --- a/Makefile.am +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | lib_LTLIBRARIES = libgbm.la | ||
2 | |||
3 | libgbm_la_SOURCES = \ | ||
4 | gbm.c \ | ||
5 | backend.c \ | ||
6 | common.c | ||
7 | |||
8 | libgbm_la_LIBADD = \ | ||
9 | @LIBUDEV_LIBS@ | ||
10 | |||
11 | libgbm_la_CFLAGS = \ | ||
12 | @LIBUDEV_CFLAGS@ \ | ||
13 | -D_OS_UNIX=1 \ | ||
14 | -DMODULEDIR='"$(exec_prefix)/lib/gbm"' | ||
15 | |||
16 | libgbm_la_LDFLAGS = -version-info 2:0:0 | ||
17 | |||
18 | extdir = $(includedir)/gbm | ||
19 | ext_HEADERS = \ | ||
20 | gbm.h \ | ||
21 | gbmint.h \ | ||
22 | common_drm.h | ||
23 | |||
24 | pkgconfigdir = $(libdir)/pkgconfig | ||
25 | pkgconfig_DATA = gbm.pc | ||
diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 904cd674..00000000 --- a/autogen.sh +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | srcdir=`dirname $0` | ||
4 | test -z "$srcdir" && srcdir=. | ||
5 | |||
6 | ORIGDIR=`pwd` | ||
7 | cd $srcdir | ||
8 | |||
9 | autoreconf -v --install || exit 1 | ||
10 | cd $ORIGDIR || exit $? | ||
11 | |||
12 | $srcdir/configure --enable-maintainer-mode "$@" | ||
diff --git a/backend_example.c b/backend_example.c deleted file mode 100644 index 3854d6eb..00000000 --- a/backend_example.c +++ /dev/null | |||
@@ -1,135 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 Texas Instruments | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice (including the next | ||
12 | * paragraph) shall be included in all copies or substantial portions of the | ||
13 | * Software. | ||
14 | * | ||
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
18 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
19 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
20 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
22 | * DEALINGS IN THE SOFTWARE. | ||
23 | * | ||
24 | * Authors: | ||
25 | * Rob Clark <rob.clark@linaro.org> | ||
26 | */ | ||
27 | |||
28 | /* This is an example/skeletal backend implementation.. this file isn't | ||
29 | * actually built as part of libgbm, but just intended to be a template | ||
30 | * to help in creating a new gbm backend | ||
31 | */ | ||
32 | |||
33 | #include <stdio.h> | ||
34 | #include <stdlib.h> | ||
35 | #include <stddef.h> | ||
36 | #include <stdint.h> | ||
37 | #include <string.h> | ||
38 | #include <limits.h> | ||
39 | |||
40 | #include <sys/types.h> | ||
41 | #include <unistd.h> | ||
42 | #include <dlfcn.h> | ||
43 | |||
44 | #include "gbmint.h" | ||
45 | #include "common_drm.h" | ||
46 | |||
47 | struct gbm_example_device { | ||
48 | struct gbm_drm_device base; | ||
49 | /* add whatever you need here */ | ||
50 | }; | ||
51 | |||
52 | struct gbm_example_bo { | ||
53 | struct gbm_drm_bo base; | ||
54 | /* add whatever you need here */ | ||
55 | }; | ||
56 | |||
57 | |||
58 | static int | ||
59 | gles_init(struct gbm_example_device *dev) | ||
60 | { | ||
61 | /* this should open/initialize the GLES stack.. for a DRM driver | ||
62 | * at least, dev->base.base.fd will have the already opened device | ||
63 | */ | ||
64 | return 0; | ||
65 | } | ||
66 | |||
67 | static int | ||
68 | gbm_example_is_format_supported(struct gbm_device *gbm, | ||
69 | enum gbm_bo_format format, uint32_t usage) | ||
70 | { | ||
71 | return 0; | ||
72 | } | ||
73 | |||
74 | static void | ||
75 | gbm_example_bo_destroy(struct gbm_bo *_bo) | ||
76 | { | ||
77 | } | ||
78 | |||
79 | static struct gbm_bo * | ||
80 | gbm_example_bo_create_from_egl_image(struct gbm_device *gbm, void *egl_dpy, | ||
81 | void *egl_img, uint32_t width, uint32_t height, uint32_t usage) | ||
82 | { | ||
83 | /* eglimg is created w/ (see weston_buffer_attach()): | ||
84 | * | ||
85 | * struct wl_buffer *buffer = ...; | ||
86 | * eglCreateImageKHR(display, NULL, EGL_WAYLAND_BUFFER_WL, buffer, NULL); | ||
87 | */ | ||
88 | |||
89 | return NULL; | ||
90 | } | ||
91 | |||
92 | static struct gbm_bo * | ||
93 | gbm_example_bo_create(struct gbm_device *gbm, uint32_t width, uint32_t height, | ||
94 | enum gbm_bo_format format, uint32_t usage) | ||
95 | { | ||
96 | return NULL; | ||
97 | } | ||
98 | |||
99 | static void | ||
100 | gbm_example_destroy(struct gbm_device *gbm) | ||
101 | { | ||
102 | } | ||
103 | |||
104 | static struct gbm_device * | ||
105 | example_device_create(int fd) | ||
106 | { | ||
107 | struct gbm_example_device *dev; | ||
108 | int ret; | ||
109 | |||
110 | dev = calloc(1, sizeof *dev); | ||
111 | |||
112 | dev->base.base.fd = fd; | ||
113 | dev->base.base.bo_create = gbm_example_bo_create; | ||
114 | dev->base.base.bo_create_from_egl_image = gbm_example_bo_create_from_egl_image; | ||
115 | dev->base.base.is_format_supported = gbm_example_is_format_supported; | ||
116 | dev->base.base.bo_destroy = gbm_example_bo_destroy; | ||
117 | dev->base.base.destroy = gbm_example_destroy; | ||
118 | |||
119 | dev->base.type = GBM_DRM_DRIVER_TYPE_CUSTOM; | ||
120 | dev->base.base.name = "example"; | ||
121 | |||
122 | ret = gles_init(dev); | ||
123 | if (ret) { | ||
124 | free(dev); | ||
125 | return NULL; | ||
126 | } | ||
127 | |||
128 | return &dev->base.base; | ||
129 | } | ||
130 | |||
131 | /* backend loader looks for symbol "gbm_backend" */ | ||
132 | struct gbm_backend gbm_backend = { | ||
133 | .backend_name = "example", | ||
134 | .create_device = example_device_create, | ||
135 | }; | ||
diff --git a/common.c b/common.c deleted file mode 100644 index f02162df..00000000 --- a/common.c +++ /dev/null | |||
@@ -1,88 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright © 2011 Intel Corporation | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice (including the next | ||
12 | * paragraph) shall be included in all copies or substantial portions of the | ||
13 | * Software. | ||
14 | * | ||
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
18 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
19 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
20 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
22 | * DEALINGS IN THE SOFTWARE. | ||
23 | * | ||
24 | * Authors: | ||
25 | * Benjamin Franzke <benjaminfranzke@googlemail.com> | ||
26 | */ | ||
27 | |||
28 | #include <stdio.h> | ||
29 | #include <string.h> | ||
30 | |||
31 | #include <libudev.h> | ||
32 | #include <sys/types.h> | ||
33 | #include <sys/stat.h> | ||
34 | #include <unistd.h> | ||
35 | |||
36 | #include "common.h" | ||
37 | #include "gbmint.h" | ||
38 | |||
39 | GBM_EXPORT struct udev_device * | ||
40 | _gbm_udev_device_new_from_fd(struct udev *udev, int fd) | ||
41 | { | ||
42 | struct udev_device *device; | ||
43 | struct stat buf; | ||
44 | |||
45 | if (fstat(fd, &buf) < 0) { | ||
46 | fprintf(stderr, "gbm: failed to stat fd %d", fd); | ||
47 | return NULL; | ||
48 | } | ||
49 | |||
50 | device = udev_device_new_from_devnum(udev, 'c', buf.st_rdev); | ||
51 | if (device == NULL) { | ||
52 | fprintf(stderr, | ||
53 | "gbm: could not create udev device for fd %d", fd); | ||
54 | return NULL; | ||
55 | } | ||
56 | |||
57 | return device; | ||
58 | } | ||
59 | |||
60 | GBM_EXPORT char * | ||
61 | _gbm_fd_get_device_name(int fd) | ||
62 | { | ||
63 | struct udev *udev; | ||
64 | struct udev_device *device; | ||
65 | const char *const_device_name; | ||
66 | char *device_name = NULL; | ||
67 | |||
68 | udev = udev_new(); | ||
69 | device = _gbm_udev_device_new_from_fd(udev, fd); | ||
70 | if (device == NULL) | ||
71 | return NULL; | ||
72 | |||
73 | const_device_name = udev_device_get_devnode(device); | ||
74 | if (!const_device_name) | ||
75 | goto out; | ||
76 | device_name = strdup(const_device_name); | ||
77 | |||
78 | out: | ||
79 | udev_device_unref(device); | ||
80 | udev_unref(udev); | ||
81 | |||
82 | return device_name; | ||
83 | } | ||
84 | |||
85 | GBM_EXPORT void | ||
86 | _gbm_log(const char *fmt_str, ...) | ||
87 | { | ||
88 | } | ||
diff --git a/common.h b/common.h deleted file mode 100644 index 1fcdfcac..00000000 --- a/common.h +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright © 2011 Intel Corporation | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice (including the next | ||
12 | * paragraph) shall be included in all copies or substantial portions of the | ||
13 | * Software. | ||
14 | * | ||
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
18 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
19 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
20 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
22 | * DEALINGS IN THE SOFTWARE. | ||
23 | * | ||
24 | * Authors: | ||
25 | * Benjamin Franzke <benjaminfranzke@googlemail.com> | ||
26 | */ | ||
27 | |||
28 | #ifndef _COMMON_H_ | ||
29 | #define _COMMON_H_ | ||
30 | |||
31 | #include <libudev.h> | ||
32 | |||
33 | struct udev_device * | ||
34 | _gbm_udev_device_new_from_fd(struct udev *udev, int fd); | ||
35 | |||
36 | char * | ||
37 | _gbm_fd_get_device_name(int fd); | ||
38 | |||
39 | void | ||
40 | _gbm_log(const char *fmt_str, ...); | ||
41 | |||
42 | #endif | ||
diff --git a/common_drm.h b/common_drm.h deleted file mode 100644 index 6b2f74d0..00000000 --- a/common_drm.h +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright © 2011 Intel Corporation | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice (including the next | ||
12 | * paragraph) shall be included in all copies or substantial portions of the | ||
13 | * Software. | ||
14 | * | ||
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
18 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
19 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
20 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
22 | * DEALINGS IN THE SOFTWARE. | ||
23 | * | ||
24 | * Authors: | ||
25 | * Benjamin Franzke <benjaminfranzke@googlemail.com> | ||
26 | */ | ||
27 | |||
28 | #ifndef _COMMON_DRM_H_ | ||
29 | #define _COMMON_DRM_H_ | ||
30 | |||
31 | #include "gbmint.h" | ||
32 | |||
33 | enum gbm_drm_driver_type { | ||
34 | GBM_DRM_DRIVER_TYPE_DRI, | ||
35 | GBM_DRM_DRIVER_TYPE_GALLIUM, | ||
36 | GBM_DRM_DRIVER_TYPE_CUSTOM, /* catch-all for non-mesa drivers */ | ||
37 | }; | ||
38 | |||
39 | struct gbm_drm_device { | ||
40 | struct gbm_device base; | ||
41 | enum gbm_drm_driver_type type; | ||
42 | char *driver_name; | ||
43 | }; | ||
44 | |||
45 | struct gbm_drm_bo { | ||
46 | struct gbm_bo base; | ||
47 | }; | ||
48 | |||
49 | #endif | ||
diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 5cfb210c..00000000 --- a/configure.ac +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | # | ||
2 | # Copyright 2005 Red Hat, Inc. | ||
3 | # | ||
4 | # Permission to use, copy, modify, distribute, and sell this software and its | ||
5 | # documentation for any purpose is hereby granted without fee, provided that | ||
6 | # the above copyright notice appear in all copies and that both that | ||
7 | # copyright notice and this permission notice appear in supporting | ||
8 | # documentation, and that the name of Red Hat not be used in | ||
9 | # advertising or publicity pertaining to distribution of the software without | ||
10 | # specific, written prior permission. Red Hat makes no | ||
11 | # representations about the suitability of this software for any purpose. It | ||
12 | # is provided "as is" without express or implied warranty. | ||
13 | # | ||
14 | # RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
15 | # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | ||
16 | # EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
17 | # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
18 | # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
19 | # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
20 | # PERFORMANCE OF THIS SOFTWARE. | ||
21 | # | ||
22 | |||
23 | # Initialize Autoconf | ||
24 | AC_PREREQ([2.60]) | ||
25 | AC_INIT([libgbm], [2.0.0], | ||
26 | [https://bugs.freedesktop.org/enter_bug.cgi?product=wayland], [libgbm]) | ||
27 | AC_CONFIG_SRCDIR([Makefile.am]) | ||
28 | AC_CONFIG_HEADERS([config.h]) | ||
29 | |||
30 | # Initialize Automake | ||
31 | AM_INIT_AUTOMAKE([foreign dist-bzip2]) | ||
32 | AM_MAINTAINER_MODE | ||
33 | |||
34 | # Initialize libtool | ||
35 | AC_PROG_LIBTOOL | ||
36 | |||
37 | # Obtain compiler/linker options for dependencies | ||
38 | PKG_CHECK_MODULES([LIBUDEV], [libudev]) | ||
39 | PKG_CHECK_MODULES([DRM], [libdrm]) | ||
40 | |||
41 | AC_CONFIG_FILES([Makefile gbm.pc]) | ||
42 | AC_OUTPUT | ||
diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index f7149a23..00000000 --- a/debian/changelog +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | libgbm (9.0.0-8glsdk1) precise; urgency=low | ||
2 | |||
3 | * Updated control (removed blank lines) | ||
4 | * Fixed mk-build-deps error | ||
5 | |||
6 | -- Nikhil Devshatwar <nikhil.nd@ti.com> Tue, 05 Mar 2013 05:50:42 +0000 | ||
7 | |||
8 | libgbm (9.0.0-8) precise; urgency=low | ||
9 | |||
10 | * Remove untracked files | ||
11 | * gitignore | ||
12 | * Allow build for any architecture | ||
13 | * Add patch to produce libgbm.so.1.0.0 | ||
14 | |||
15 | -- Vincent Stehlé <v-stehle@ti.com> Fri, 26 Oct 2012 14:27:32 +0200 | ||
16 | |||
17 | libgbm (9.0.0-7) precise; urgency=low | ||
18 | |||
19 | * Update control | ||
20 | |||
21 | -- Xavier Boudet <x-boudet@ti.com> Wed, 19 Sep 2012 12:34:48 +0200 | ||
22 | |||
23 | libgbm (9.0.0-6) precise; urgency=low | ||
24 | |||
25 | * Update Vcs-Git | ||
26 | |||
27 | -- Xavier Boudet <x-boudet@ti.com> Mon, 17 Sep 2012 19:17:52 +0200 | ||
28 | |||
29 | libgbm (9.0.0-5) precise; urgency=low | ||
30 | |||
31 | * Update control | ||
32 | |||
33 | -- Xavier Boudet <x-boudet@ti.com> Fri, 14 Sep 2012 17:05:24 +0200 | ||
34 | |||
35 | libgbm (9.0.0-4) precise; urgency=low | ||
36 | |||
37 | * Update configure.ac check modules | ||
38 | |||
39 | -- Xavier Boudet <x-boudet@ti.com> Fri, 14 Sep 2012 16:36:48 +0200 | ||
40 | |||
41 | libgbm (9.0.0-3) precise; urgency=low | ||
42 | |||
43 | * Update to libudev.pc name | ||
44 | |||
45 | -- Xavier Boudet <x-boudet@ti.com> Fri, 14 Sep 2012 15:55:14 +0200 | ||
46 | |||
47 | libgbm (9.0.0-2) precise; urgency=low | ||
48 | |||
49 | * Add udev patch | ||
50 | |||
51 | -- Xavier Boudet <x-boudet@ti.com> Thu, 13 Sep 2012 14:44:43 +0200 | ||
52 | |||
53 | libgbm (9.0.0-1) precise; urgency=low | ||
54 | |||
55 | * libgbm: gbm frontend used by weston compositor | ||
56 | |||
57 | -- Xavier Boudet <x-boudet@ti.com> Thu, 13 Sep 2012 10:39:15 +0200 | ||
diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7f8f011e..00000000 --- a/debian/compat +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | 7 | ||
diff --git a/debian/control b/debian/control deleted file mode 100644 index 12df6fa1..00000000 --- a/debian/control +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | Source: libgbm | ||
2 | Section: graphics | ||
3 | Priority: optional | ||
4 | Maintainer: TI OMAP Developers <tiomap-dev@lists.launchpad.net> | ||
5 | Build-Depends: cdbs, | ||
6 | debhelper (>= 7), | ||
7 | libtool, | ||
8 | dh-autoreconf, | ||
9 | quilt, | ||
10 | libdrm-dev (>= 2.4.32-1ubuntu1+ti1.1), | ||
11 | libdri2-dev (>= 1.0.2-0ubuntu3), | ||
12 | libudev-dev, | ||
13 | pkg-config | ||
14 | Standards-Version: 3.9.2 | ||
15 | Homepage: git://github.com/robclark/libgbm.git | ||
16 | Vcs-Git: git://gitorious.org/ubuntu-omap/libgbm.git | ||
17 | |||
18 | Package: libgbm1 | ||
19 | Section: libs | ||
20 | Architecture: any | ||
21 | Priority: optional | ||
22 | Depends: | ||
23 | ${shlibs:Depends}, | ||
24 | ${misc:Depends}, | ||
25 | Pre-Depends: ${misc:Pre-Depends} | ||
26 | Description: generic buffer management API -- runtime | ||
27 | This is the gbm frontend used by (for example) weston compositor to | ||
28 | load the GLES stack, and retrieve the backing buffer objects behind | ||
29 | an eglImage (created with EGL_WAYLAND_BUFFER_WL), etc. | ||
30 | |||
31 | Package: libgbm-dev | ||
32 | Section: libdevel | ||
33 | Architecture: any | ||
34 | Priority: optional | ||
35 | Depends: ${misc:Depends}, | ||
36 | libgbm1 (= ${binary:Version}), | ||
37 | libudev-dev | ||
38 | Description: generic buffer management API -- runtime | ||
39 | This is the gbm frontend used by (for example) weston compositor to | ||
40 | load the GLES stack, and retrieve the backing buffer objects behind | ||
41 | an eglImage (created with EGL_WAYLAND_BUFFER_WL), etc. | ||
diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index 3280fa25..00000000 --- a/debian/copyright +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | This package was debianized by Xavier Boudet <x-boudet@ti.com> on | ||
2 | Thu, 13 Sep 2012 10:50:24 +0200. | ||
3 | |||
4 | |||
5 | Upstream Author(s): | ||
6 | |||
7 | Benjamin Franzke <benjaminfranzke@googlemail.com> | ||
8 | |||
9 | Rob Clark <rob at ti dot com> | ||
10 | |||
11 | Copyright: | ||
12 | |||
13 | Texas Instruments Inc. 2012 | ||
14 | |||
15 | License: | ||
16 | |||
17 | License: | ||
18 | |||
19 | * Copyright © 2011 Intel Corporation | ||
20 | * | ||
21 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
22 | * copy of this software and associated documentation files (the "Software"), | ||
23 | * to deal in the Software without restriction, including without limitation | ||
24 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
25 | * and/or sell copies of the Software, and to permit persons to whom the | ||
26 | * Software is furnished to do so, subject to the following conditions: | ||
27 | * | ||
28 | * The above copyright notice and this permission notice (including the next | ||
29 | * paragraph) shall be included in all copies or substantial portions of the | ||
30 | * Software. | ||
31 | * | ||
32 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
33 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
34 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
35 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
36 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
37 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
38 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
39 | * DEALINGS IN THE SOFTWARE. | ||
40 | |||
41 | On Debian systems, the complete text of the GNU General | ||
42 | Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. | ||
43 | |||
44 | The Debian packaging is: | ||
45 | |||
46 | Copyright (C) 2012 Xavier Boudet <x-boudet@ti.com> | ||
47 | |||
48 | and is licensed under the GPL version 2, | ||
49 | see `/usr/share/common-licenses/GPL-2'. | ||
diff --git a/debian/libgbm-dev.install b/debian/libgbm-dev.install deleted file mode 100644 index 1026b5c9..00000000 --- a/debian/libgbm-dev.install +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | usr/lib/pkgconfig/gbm.pc usr/lib/pkgconfig | ||
2 | usr/include/gbm usr/include | ||
diff --git a/debian/libgbm1.install b/debian/libgbm1.install deleted file mode 100644 index e6f8dfbc..00000000 --- a/debian/libgbm1.install +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | usr/lib/libgbm.so* usr/lib | ||
diff --git a/debian/rules b/debian/rules deleted file mode 100755 index 1b25e391..00000000 --- a/debian/rules +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | #!/usr/bin/make -f | ||
2 | |||
3 | include /usr/share/cdbs/1/rules/debhelper.mk | ||
4 | include /usr/share/cdbs/1/class/autotools.mk | ||
5 | include /usr/share/cdbs/1/rules/autoreconf.mk | ||
6 | include /usr/share/cdbs/1/rules/patchsys-quilt.mk | ||
7 | |||
8 | ifneq (,$(LDFLAGS)) | ||
9 | LDFLAGS := $(filter-out %-Bsymbolic-functions,$(LDFLAGS)) | ||
10 | endif | ||
11 | |||
diff --git a/debian/source/format b/debian/source/format deleted file mode 100644 index 163aaf8d..00000000 --- a/debian/source/format +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | 3.0 (quilt) | ||
@@ -59,7 +59,6 @@ gbm_device_get_fd(struct gbm_device *gbm) | |||
59 | return gbm->fd; | 59 | return gbm->fd; |
60 | } | 60 | } |
61 | 61 | ||
62 | /* FIXME: maybe superfluous, use udev subclass from the fd? */ | ||
63 | /** Get the backend name for the given gbm device | 62 | /** Get the backend name for the given gbm device |
64 | * | 63 | * |
65 | * \return The backend name string - this belongs to the device and must not | 64 | * \return The backend name string - this belongs to the device and must not |
@@ -102,32 +101,6 @@ gbm_device_destroy(struct gbm_device *gbm) | |||
102 | gbm->destroy(gbm); | 101 | gbm->destroy(gbm); |
103 | } | 102 | } |
104 | 103 | ||
105 | struct gbm_device * | ||
106 | _gbm_mesa_get_device(int fd) | ||
107 | { | ||
108 | struct gbm_device *gbm = NULL; | ||
109 | struct stat buf; | ||
110 | dev_t dev; | ||
111 | int i; | ||
112 | |||
113 | if (fd < 0 || fstat(fd, &buf) < 0 || !S_ISCHR(buf.st_mode)) { | ||
114 | errno = EINVAL; | ||
115 | return NULL; | ||
116 | } | ||
117 | |||
118 | for (i = 0; i < device_num; ++i) { | ||
119 | dev = devices[i]->stat.st_rdev; | ||
120 | if (major(dev) == major(buf.st_rdev) && | ||
121 | minor(dev) == minor(buf.st_rdev)) { | ||
122 | gbm = devices[i]; | ||
123 | gbm->refcount++; | ||
124 | break; | ||
125 | } | ||
126 | } | ||
127 | |||
128 | return gbm; | ||
129 | } | ||
130 | |||
131 | /** Create a gbm device for allocating buffers | 104 | /** Create a gbm device for allocating buffers |
132 | * | 105 | * |
133 | * The file descriptor passed in is used by the backend to communicate with | 106 | * The file descriptor passed in is used by the backend to communicate with |
diff --git a/gbm.pc.in b/gbm.pc.in deleted file mode 100644 index d7708c71..00000000 --- a/gbm.pc.in +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | prefix=@prefix@ | ||
2 | exec_prefix=@exec_prefix@ | ||
3 | libdir=@libdir@ | ||
4 | includedir=@includedir@ | ||
5 | |||
6 | Name: gbm | ||
7 | Description: gbm library | ||
8 | Requires.private: libudev | ||
9 | Version: @PACKAGE_VERSION@ | ||
10 | Libs: -L${libdir} -lgbm | ||
11 | Libs.private: -ldl | ||
12 | Cflags: -I${includedir}/gbm | ||