diff options
author | Alistair Strachan | 2018-12-27 14:56:02 -0600 |
---|---|---|
committer | Alistair Strachan | 2018-12-28 09:08:46 -0600 |
commit | 2580354eb8b478f93e34e15e6b318c5de55cdac2 (patch) | |
tree | 16ac09f8f1f18589604ea5a3be34509fd4d87452 | |
parent | 68e49d0ebdf332e7a1f506d097f7781da9548105 (diff) | |
download | device-ti-beagle-x15-2580354eb8b478f93e34e15e6b318c5de55cdac2.tar.gz device-ti-beagle-x15-2580354eb8b478f93e34e15e6b318c5de55cdac2.tar.xz device-ti-beagle-x15-2580354eb8b478f93e34e15e6b318c5de55cdac2.zip |
Add the GPU blobs and enable in the build.
The pvrsrvkm service was already present in the init script.
Bug: 110964307
Change-Id: I5258f6d30521138e15b5fc0bfeaeee844730932f
Signed-off-by: Alistair Strachan <astrachan@google.com>
-rw-r--r-- | Android.bp | 17 | ||||
-rw-r--r-- | BoardConfig.mk | 4 | ||||
-rw-r--r-- | device.mk | 7 | ||||
-rw-r--r-- | gpu/Android.bp | 132 | ||||
-rw-r--r-- | gpu/NOTICE | 137 | ||||
-rw-r--r-- | gpu/gralloc.am57x.so | bin | 0 -> 44012 bytes | |||
-rw-r--r-- | gpu/libEGL_POWERVR_SGX544_116.so | bin | 0 -> 9620 bytes | |||
-rw-r--r-- | gpu/libGLESv1_CM_POWERVR_SGX544_116.so | bin | 0 -> 448112 bytes | |||
-rw-r--r-- | gpu/libGLESv2_POWERVR_SGX544_116.so | bin | 0 -> 476784 bytes | |||
-rw-r--r-- | gpu/libIMGegl.so | bin | 0 -> 79628 bytes | |||
-rw-r--r-- | gpu/libPVRScopeServices.so | bin | 0 -> 9660 bytes | |||
-rw-r--r-- | gpu/libglslcompiler.so | bin | 0 -> 234996 bytes | |||
-rw-r--r-- | gpu/libpvr2d.so | bin | 0 -> 17844 bytes | |||
-rw-r--r-- | gpu/libpvrANDROID_WSEGL.so | bin | 0 -> 13856 bytes | |||
-rw-r--r-- | gpu/libsrv_init.so | bin | 0 -> 112652 bytes | |||
-rw-r--r-- | gpu/libsrv_um.so | bin | 0 -> 230900 bytes | |||
-rw-r--r-- | gpu/libusc.so | bin | 0 -> 1049360 bytes | |||
-rw-r--r-- | gpu/memtrack.am57x.so | bin | 0 -> 5764 bytes | |||
-rwxr-xr-x | gpu/pvrsrvctl | bin | 0 -> 9680 bytes |
19 files changed, 297 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..8e64492 --- /dev/null +++ b/Android.bp | |||
@@ -0,0 +1,17 @@ | |||
1 | // Copyright 2018 The Android Open Source Project | ||
2 | // | ||
3 | // Licensed under the Apache License, Version 2.0 (the "License"); | ||
4 | // you may not use this file except in compliance with the License. | ||
5 | // You may obtain a copy of the License at | ||
6 | // | ||
7 | // http://www.apache.org/licenses/LICENSE-2.0 | ||
8 | // | ||
9 | // Unless required by applicable law or agreed to in writing, software | ||
10 | // distributed under the License is distributed on an "AS IS" BASIS, | ||
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
12 | // See the License for the specific language governing permissions and | ||
13 | // limitations under the License. | ||
14 | |||
15 | subdirs = [ | ||
16 | "gpu", | ||
17 | ] | ||
diff --git a/BoardConfig.mk b/BoardConfig.mk index ba063e1..5a2698f 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk | |||
@@ -67,3 +67,7 @@ TARGET_UBOOT_DEFCONFIG := am57xx_evm_defconfig | |||
67 | TARGET_UBOOT_CONFIGS += device/ti/beagle_x15/beagle_x15_uboot.conf | 67 | TARGET_UBOOT_CONFIGS += device/ti/beagle_x15/beagle_x15_uboot.conf |
68 | TARGET_UBOOT_MAKE_TARGET := u-boot-img.bin | 68 | TARGET_UBOOT_MAKE_TARGET := u-boot-img.bin |
69 | TARGET_UBOOT_COPY_TARGETS := u-boot.img MLO | 69 | TARGET_UBOOT_COPY_TARGETS := u-boot.img MLO |
70 | |||
71 | # Graphics | ||
72 | BOARD_VENDOR_KERNEL_MODULES += \ | ||
73 | device/ti/beagle_x15-kernel/$(TARGET_KERNEL_USE)/pvrsrvkm.ko | ||
@@ -36,6 +36,13 @@ PRODUCT_PACKAGES += \ | |||
36 | libdrm \ | 36 | libdrm \ |
37 | libdrm_omap \ | 37 | libdrm_omap \ |
38 | hwcomposer.am57x \ | 38 | hwcomposer.am57x \ |
39 | gralloc.am57x \ | ||
40 | libEGL_POWERVR_SGX544_116 \ | ||
41 | libGLESv1_CM_POWERVR_SGX544_116 \ | ||
42 | libGLESv2_POWERVR_SGX544_116 \ | ||
43 | libPVRScopeServices \ | ||
44 | memtrack.am57x \ | ||
45 | pvrsrvctl \ | ||
39 | 46 | ||
40 | #Security | 47 | #Security |
41 | PRODUCT_PACKAGES += \ | 48 | PRODUCT_PACKAGES += \ |
diff --git a/gpu/Android.bp b/gpu/Android.bp new file mode 100644 index 0000000..c812249 --- /dev/null +++ b/gpu/Android.bp | |||
@@ -0,0 +1,132 @@ | |||
1 | // Copyright 2018 The Android Open Source Project | ||
2 | // | ||
3 | // Licensed under the Apache License, Version 2.0 (the "License"); | ||
4 | // you may not use this file except in compliance with the License. | ||
5 | // You may obtain a copy of the License at | ||
6 | // | ||
7 | // http://www.apache.org/licenses/LICENSE-2.0 | ||
8 | // | ||
9 | // Unless required by applicable law or agreed to in writing, software | ||
10 | // distributed under the License is distributed on an "AS IS" BASIS, | ||
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
12 | // See the License for the specific language governing permissions and | ||
13 | // limitations under the License. | ||
14 | |||
15 | |||
16 | // Core dependencies | ||
17 | |||
18 | cc_prebuilt_library_shared { | ||
19 | name: "libIMGegl", | ||
20 | srcs: ["libIMGegl.so"], | ||
21 | required: ["libpvrANDROID_WSEGL", "libsrv_um"], | ||
22 | strip: { none: true, }, | ||
23 | vendor: true, | ||
24 | } | ||
25 | |||
26 | cc_prebuilt_library_shared { | ||
27 | name: "libglslcompiler", | ||
28 | srcs: ["libglslcompiler.so"], | ||
29 | required: ["libsrv_um", "libusc"], | ||
30 | strip: { none: true, }, | ||
31 | vendor: true, | ||
32 | } | ||
33 | |||
34 | cc_prebuilt_library_shared { | ||
35 | name: "libpvr2d", | ||
36 | srcs: ["libpvr2d.so"], | ||
37 | required: ["libsrv_um"], | ||
38 | strip: { none: true, }, | ||
39 | vendor: true, | ||
40 | } | ||
41 | |||
42 | cc_prebuilt_library_shared { | ||
43 | name: "libpvrANDROID_WSEGL", | ||
44 | srcs: ["libpvrANDROID_WSEGL.so"], | ||
45 | required: ["libsrv_um"], | ||
46 | strip: { none: true, }, | ||
47 | vendor: true, | ||
48 | } | ||
49 | |||
50 | cc_prebuilt_library_shared { | ||
51 | name: "libsrv_init", | ||
52 | srcs: ["libsrv_init.so"], | ||
53 | strip: { none: true, }, | ||
54 | vendor: true, | ||
55 | } | ||
56 | |||
57 | cc_prebuilt_library_shared { | ||
58 | name: "libsrv_um", | ||
59 | srcs: ["libsrv_um.so"], | ||
60 | strip: { none: true, }, | ||
61 | vendor: true, | ||
62 | } | ||
63 | |||
64 | cc_prebuilt_library_shared { | ||
65 | name: "libusc", | ||
66 | srcs: ["libusc.so"], | ||
67 | strip: { none: true, }, | ||
68 | vendor: true, | ||
69 | } | ||
70 | |||
71 | // Pulled in as-needed | ||
72 | |||
73 | cc_prebuilt_library_shared { | ||
74 | name: "gralloc.am57x", | ||
75 | srcs: ["gralloc.am57x.so"], | ||
76 | required: ["libpvr2d", "libsrv_um"], | ||
77 | relative_install_path: "hw", | ||
78 | strip: { none: true, }, | ||
79 | vendor: true, | ||
80 | } | ||
81 | |||
82 | cc_prebuilt_library_shared { | ||
83 | name: "libEGL_POWERVR_SGX544_116", | ||
84 | srcs: ["libEGL_POWERVR_SGX544_116.so"], | ||
85 | required: ["libIMGegl"], | ||
86 | relative_install_path: "egl", | ||
87 | strip: { none: true, }, | ||
88 | vendor: true, | ||
89 | } | ||
90 | |||
91 | cc_prebuilt_library_shared { | ||
92 | name: "libGLESv1_CM_POWERVR_SGX544_116", | ||
93 | srcs: ["libGLESv1_CM_POWERVR_SGX544_116.so"], | ||
94 | required: ["libIMGegl", "libsrv_um", "libusc"], | ||
95 | relative_install_path: "egl", | ||
96 | strip: { none: true, }, | ||
97 | vendor: true, | ||
98 | } | ||
99 | |||
100 | cc_prebuilt_library_shared { | ||
101 | name: "libGLESv2_POWERVR_SGX544_116", | ||
102 | srcs: ["libGLESv2_POWERVR_SGX544_116.so"], | ||
103 | required: ["libIMGegl", "libglslcompiler", "libsrv_um"], | ||
104 | relative_install_path: "egl", | ||
105 | strip: { none: true, }, | ||
106 | vendor: true, | ||
107 | } | ||
108 | |||
109 | cc_prebuilt_library_shared { | ||
110 | name: "libPVRScopeServices", | ||
111 | srcs: ["libPVRScopeServices.so"], | ||
112 | required: ["libsrv_um"], | ||
113 | strip: { none: true, }, | ||
114 | vendor: true, | ||
115 | } | ||
116 | |||
117 | cc_prebuilt_library_shared { | ||
118 | name: "memtrack.am57x", | ||
119 | srcs: ["memtrack.am57x.so"], | ||
120 | required: ["libsrv_um"], | ||
121 | relative_install_path: "hw", | ||
122 | strip: { none: true, }, | ||
123 | vendor: true, | ||
124 | } | ||
125 | |||
126 | cc_prebuilt_binary { | ||
127 | name: "pvrsrvctl", | ||
128 | srcs: ["pvrsrvctl"], | ||
129 | required: ["libsrv_init", "libsrv_um"], | ||
130 | strip: { none: true, }, | ||
131 | vendor: true, | ||
132 | } | ||
diff --git a/gpu/NOTICE b/gpu/NOTICE new file mode 100644 index 0000000..8d388cb --- /dev/null +++ b/gpu/NOTICE | |||
@@ -0,0 +1,137 @@ | |||
1 | /* | ||
2 | * TECHNOLOGY AND SOFTWARE PUBLICLY AVAILABLE | ||
3 | * SOFTWARE LICENSE FOR OMAP(TM) 4 USER SPACE GRAPHICS DRIVER BINARY | ||
4 | * | ||
5 | * Copyright (c) 2018, Texas Instruments Incorporated. | ||
6 | * Portions (c), Imagination Technologies Limited. | ||
7 | * | ||
8 | * All rights reserved not granted herein. | ||
9 | * Limited License. | ||
10 | * | ||
11 | * Texas Instruments Incorporated grants a world-wide, royalty-free, | ||
12 | * non-exclusive license under copyrights and patents it now or hereafter | ||
13 | * owns or controls to make, have made, use, import, | ||
14 | * offer to sell and sell ("Utilize") this software subject to the terms herein. | ||
15 | * With respect to the foregoing patent license, such license is granted | ||
16 | * solely to the extent that any such patent is necessary to Utilize the | ||
17 | * software alone. The patent license shall not apply to any combinations which | ||
18 | * include this software, other than combinations with devices manufactured by | ||
19 | * or for TI ('TI Devices'). | ||
20 | * No hardware patent is licensed hereunder. | ||
21 | * | ||
22 | * Redistributions must preserve existing copyright notices and reproduce this | ||
23 | * license (including the above copyright notice and the disclaimer and | ||
24 | * (if applicable) source code license limitations below) in the documentation | ||
25 | * and/or other materials provided with the distribution | ||
26 | * | ||
27 | * Redistribution and use in binary form, without modification, are permitted | ||
28 | * provided that the following conditions are met: | ||
29 | * | ||
30 | * * No reverse engineering, decompilation, or disassembly of this software is | ||
31 | * permitted with respect to any software provided in binary form. | ||
32 | * * any redistribution and use are licensed by TI for use only with TI Devices. | ||
33 | * * Nothing shall obligate TI to provide you with source code for the software | ||
34 | * licensed and provided to you in object code. | ||
35 | * | ||
36 | * If software source code is provided to you, modification and redistribution | ||
37 | * of the source code are permitted | ||
38 | * * provided that the following conditions are met: | ||
39 | * | ||
40 | * * any redistribution and use of the source code, including any resulting | ||
41 | * derivative works, are licensed by TI for use only with TI Devices. | ||
42 | * * any redistribution and use of any object code compiled from the source code | ||
43 | * and any resulting derivative works, are licensed by TI for use only | ||
44 | * with TI Devices. | ||
45 | * | ||
46 | * Neither the name of Texas Instruments Incorporated nor the names of its | ||
47 | * suppliers may be used to endorse or promote products derived from this software | ||
48 | * without specific prior written permission. | ||
49 | * | ||
50 | * DISCLAIMER. | ||
51 | * | ||
52 | * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS OR | ||
53 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
54 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
55 | * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
56 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
57 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, | ||
58 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
59 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
60 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE | ||
61 | * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
62 | * | ||
63 | * Certain third party licenses not included: | ||
64 | * | ||
65 | * Certain software may (a) require patent licenses from third parties | ||
66 | * claiming patent rights covering implementation of the software or (b) be | ||
67 | * based on industry recognized standards or software programs published by | ||
68 | * industry recognized standards bodies and certain third parties may claim | ||
69 | * to own patents or copyrights that cover implementation of those standards. | ||
70 | * You acknowledge and agree that (i) this License does not convey a license | ||
71 | * to any such third party patents and copyrights, (ii) you are responsible | ||
72 | * for any fees or royalties that may be payable to any third party based on | ||
73 | * such third party's interests in such software and (iii) you will indemnify | ||
74 | * TI against your failure to make any such payments and will defend any | ||
75 | * claim, suit or proceeding brought against TI insofar as such claim, suit | ||
76 | * or proceeding is based on or arises from such failure. | ||
77 | * | ||
78 | */ | ||
79 | |||
80 | ----------------------------------------------------------------------------- | ||
81 | |||
82 | Additional legal notices pertaining to portions of included software: | ||
83 | |||
84 | |||
85 | Copyright (c) 2007-2009 The Khronos Group Inc. | ||
86 | |||
87 | Permission is hereby granted, free of charge, to any person obtaining a | ||
88 | copy of this software and/or associated documentation files (the | ||
89 | "Materials"), to deal in the Materials without restriction, including | ||
90 | without limitation the rights to use, copy, modify, merge, publish, | ||
91 | distribute, sublicense, and/or sell copies of the Materials, and to | ||
92 | permit persons to whom the Materials are furnished to do so, subject to | ||
93 | the following conditions: | ||
94 | |||
95 | The above copyright notice and this permission notice shall be included | ||
96 | in all copies or substantial portions of the Materials. | ||
97 | |||
98 | THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
99 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
100 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
101 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
102 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
103 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
104 | MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. | ||
105 | |||
106 | |||
107 | -------- | ||
108 | |||
109 | SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) | ||
110 | |||
111 | Copyright (C) 2006 Silicon Graphics, Inc. All Rights Reserved. | ||
112 | |||
113 | Permission is hereby granted, free of charge, to any person obtaining a | ||
114 | copy of this software and associated documentation files (the "Software"), | ||
115 | to deal in the Software without restriction, including without limitation | ||
116 | the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
117 | and/or sell copies of the Software, and to permit persons to whom the | ||
118 | Software is furnished to do so, subject to the following conditions: | ||
119 | |||
120 | The above copyright notice including the dates of first publication and | ||
121 | either this permission notice or a reference to | ||
122 | http://oss.sgi.com/projects/FreeB/ shall be included in all copies or | ||
123 | substantial portions of the Software. | ||
124 | |||
125 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
126 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
127 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
128 | SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
129 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF | ||
130 | OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
131 | SOFTWARE. | ||
132 | |||
133 | Except as contained in this notice, the name of Silicon Graphics, Inc. | ||
134 | shall not be used in advertising or otherwise to promote the sale, use | ||
135 | or other dealings in this Software without prior written authorization | ||
136 | from Silicon Graphics, Inc. | ||
137 | #257696v2 | ||
diff --git a/gpu/gralloc.am57x.so b/gpu/gralloc.am57x.so new file mode 100644 index 0000000..42403b2 --- /dev/null +++ b/gpu/gralloc.am57x.so | |||
Binary files differ | |||
diff --git a/gpu/libEGL_POWERVR_SGX544_116.so b/gpu/libEGL_POWERVR_SGX544_116.so new file mode 100644 index 0000000..4c5d525 --- /dev/null +++ b/gpu/libEGL_POWERVR_SGX544_116.so | |||
Binary files differ | |||
diff --git a/gpu/libGLESv1_CM_POWERVR_SGX544_116.so b/gpu/libGLESv1_CM_POWERVR_SGX544_116.so new file mode 100644 index 0000000..1714b94 --- /dev/null +++ b/gpu/libGLESv1_CM_POWERVR_SGX544_116.so | |||
Binary files differ | |||
diff --git a/gpu/libGLESv2_POWERVR_SGX544_116.so b/gpu/libGLESv2_POWERVR_SGX544_116.so new file mode 100644 index 0000000..683c122 --- /dev/null +++ b/gpu/libGLESv2_POWERVR_SGX544_116.so | |||
Binary files differ | |||
diff --git a/gpu/libIMGegl.so b/gpu/libIMGegl.so new file mode 100644 index 0000000..9b92ef9 --- /dev/null +++ b/gpu/libIMGegl.so | |||
Binary files differ | |||
diff --git a/gpu/libPVRScopeServices.so b/gpu/libPVRScopeServices.so new file mode 100644 index 0000000..d898582 --- /dev/null +++ b/gpu/libPVRScopeServices.so | |||
Binary files differ | |||
diff --git a/gpu/libglslcompiler.so b/gpu/libglslcompiler.so new file mode 100644 index 0000000..02f90a2 --- /dev/null +++ b/gpu/libglslcompiler.so | |||
Binary files differ | |||
diff --git a/gpu/libpvr2d.so b/gpu/libpvr2d.so new file mode 100644 index 0000000..fde2e05 --- /dev/null +++ b/gpu/libpvr2d.so | |||
Binary files differ | |||
diff --git a/gpu/libpvrANDROID_WSEGL.so b/gpu/libpvrANDROID_WSEGL.so new file mode 100644 index 0000000..46bdb3f --- /dev/null +++ b/gpu/libpvrANDROID_WSEGL.so | |||
Binary files differ | |||
diff --git a/gpu/libsrv_init.so b/gpu/libsrv_init.so new file mode 100644 index 0000000..7d7697a --- /dev/null +++ b/gpu/libsrv_init.so | |||
Binary files differ | |||
diff --git a/gpu/libsrv_um.so b/gpu/libsrv_um.so new file mode 100644 index 0000000..f53468c --- /dev/null +++ b/gpu/libsrv_um.so | |||
Binary files differ | |||
diff --git a/gpu/libusc.so b/gpu/libusc.so new file mode 100644 index 0000000..2557496 --- /dev/null +++ b/gpu/libusc.so | |||
Binary files differ | |||
diff --git a/gpu/memtrack.am57x.so b/gpu/memtrack.am57x.so new file mode 100644 index 0000000..46bb88b --- /dev/null +++ b/gpu/memtrack.am57x.so | |||
Binary files differ | |||
diff --git a/gpu/pvrsrvctl b/gpu/pvrsrvctl new file mode 100755 index 0000000..23e035c --- /dev/null +++ b/gpu/pvrsrvctl | |||
Binary files differ | |||