summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2013-05-22 22:52:25 -0500
committerVishal Mahaveer2013-05-22 22:52:25 -0500
commit1dff449ae46840739868766b56d369433bea4821 (patch)
tree11d0d0ddf5e35ac56028e60aa31066cf5e9f4f01
parent995740d3fe93997d076f189c038ff4a9f4a90021 (diff)
downloaddevice-ti-proprietary-open-1dff449ae46840739868766b56d369433bea4821.tar.gz
device-ti-proprietary-open-1dff449ae46840739868766b56d369433bea4821.tar.xz
device-ti-proprietary-open-1dff449ae46840739868766b56d369433bea4821.zip
jacinto6: add initial sgx binary content
Adding initial sgx binaries for jacinto6 based on kernel 3.8 Change-Id: I09da248d741feefaf46dd94473d3b2c76c5f20b1 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--jacinto6/License_for_IMG_SGX_Binary_Image.txt125
-rw-r--r--jacinto6/README.SGX51
-rw-r--r--jacinto6/sgx.tgzbin0 -> 2623352 bytes
-rw-r--r--jacinto6/sgx/Android.mk150
4 files changed, 326 insertions, 0 deletions
diff --git a/jacinto6/License_for_IMG_SGX_Binary_Image.txt b/jacinto6/License_for_IMG_SGX_Binary_Image.txt
new file mode 100644
index 0000000..983f547
--- /dev/null
+++ b/jacinto6/License_for_IMG_SGX_Binary_Image.txt
@@ -0,0 +1,125 @@
1/*
2 * TECHNOLOGY AND SOFTWARE PUBLICLY AVAILABLE
3 * SOFTWARE LICENSE FOR OMAP(TM) 4 USER SPACE GRAPHICS DRIVER BINARY
4 *
5 * Copyright (c) 2011, Texas Instruments Incorporated.
6 * Portions (c), Imagination Technologies Limited.
7 *
8 * All rights reserved.
9 *
10 * Redistribution:  
11 *
12 * Redistribution and use in binary form, without modification, are
13 * permitted provided that the following conditions are met:
14 *
15 * * Redistributions must preserve existing copyright notices and reproduce
16 * this license (including the above copyright notice and the disclaimer
17 * below) in the documentation and/or other materials provided with the
18 * distribution.
19 *
20 * * Neither the name of Texas Instruments Incorporated nor the names of its
21 *   suppliers may be used to endorse or promote products derived from this 
22 *   software without specific prior written permission.
23 *
24 * * No reverse engineering, decompilation, or disassembly of this software
25 *   is permitted.
26 *
27 * Limited patent license:
28 *
29 * Texas Instruments Incorporated (TI) grants a world-wide, royalty-free, 
30 * non-exclusive license under patents it now or hereafter owns or controls 
31 * to make, have made, use, import, offer to sell and sell ("Utilize") this
32 * software in its current form, but solely to the extent that any such 
33 * patent is necessary to  Utilize the software alone.  The patent license 
34 * shall not apply to any combinations which include this software. No 
35 * hardware per se is licensed hereunder.
36 *
37 * DISCLAIMER:
38 *
39 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 
40 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
41 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
42 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
43 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
44 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
45 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
46 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
47 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
48 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
49 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50 *
51 * Certain third party licenses not included:
52 *
53 * Certain software may (a) require patent licenses from third parties
54 * claiming patent rights covering implementation of the software or (b) be
55 * based on industry recognized standards or software programs published by
56 * industry recognized standards bodies and certain third parties may claim
57 * to own patents or copyrights that cover implementation of those standards.
58 * You acknowledge and agree that (i) this License does not convey a license
59 * to any such third party patents and copyrights, (ii) you are responsible
60 * for any fees or royalties that may be payable to any third party based on
61 * such third party's interests in such software and (iii) you will indemnify
62 * TI against your failure to make any such payments and will defend any
63 * claim, suit or proceeding brought against TI insofar as such claim, suit
64 * or proceeding is based on or arises from such failure.
65 *
66 */
67
68-----------------------------------------------------------------------------
69
70Additional legal notices pertaining to portions of included software:
71
72
73Copyright (c) 2007-2009 The Khronos Group Inc.
74
75Permission is hereby granted, free of charge, to any person obtaining a
76copy of this software and/or associated documentation files (the
77"Materials"), to deal in the Materials without restriction, including
78without limitation the rights to use, copy, modify, merge, publish,
79distribute, sublicense, and/or sell copies of the Materials, and to
80permit persons to whom the Materials are furnished to do so, subject to
81the following conditions:
82
83The above copyright notice and this permission notice shall be included
84in all copies or substantial portions of the Materials.
85
86THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
88MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
89IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
90CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
91TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
92MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
93
94
95--------
96
97SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
98
99Copyright (C) 2006 Silicon Graphics, Inc. All Rights Reserved.
100
101Permission is hereby granted, free of charge, to any person obtaining a
102copy of this software and associated documentation files (the "Software"),
103to deal in the Software without restriction, including without limitation
104the rights to use, copy, modify, merge, publish, distribute, sublicense,
105and/or sell copies of the Software, and to permit persons to whom the
106Software is furnished to do so, subject to the following conditions:
107
108The above copyright notice including the dates of first publication and
109either this permission notice or a reference to
110http://oss.sgi.com/projects/FreeB/ shall be included in all copies or
111substantial portions of the Software.
112
113THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
114OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
115FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
116SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
117WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
118OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
119SOFTWARE.
120
121Except as contained in this notice, the name of Silicon Graphics, Inc.
122shall not be used in advertising or otherwise to promote the sale, use
123or other dealings in this Software without prior written authorization
124from Silicon Graphics, Inc.
125#257696v2
diff --git a/jacinto6/README.SGX b/jacinto6/README.SGX
new file mode 100644
index 0000000..7c833be
--- /dev/null
+++ b/jacinto6/README.SGX
@@ -0,0 +1,51 @@
1/*
2 * TECHNOLOGY AND SOFTWARE PUBLICLY AVAILABLE
3 *
4 * Copyright (c) 2011, Texas Instruments Incorporated.
5 *
6 * All rights reserved.
7 *
8 */
9
10#==========================================================================
11# SGX Binaries
12#==========================================================================
13
14sgx.tgz a set of binaries built for SGX544.
15The SGXCORE and SGC_CORE_REV is appended to the end of each file. pvrsrvinit is
16now a wrapper which detects the current processor and loads the corresponding
17core specific pvrsrvinit.
18
19[DDK Version]
20 1.9@2166536
21[DDK commit ID]
22 250e6f5 SGX-UM: Creating two fb instances for JB MR1.
23[Branch]
24 origin/1.9/hwc1.1
25[DDK Tag]
26 1.9IMG2166536_TI.0006
27[Kernel modules built against]
28 Kernel Version: 3.4.9 with CONFIG_MODVERSIONS=y
29
30#===========================================================================
31# Building SGX Kernel Modules
32#===========================================================================
33SGX kernel modules source is located in sgx_src/eurasia_km/
34
35Make sure kernel is built before building modules
36
37# cd ANDROID_ROOT/device/ti/proprietary-open/omap5/sgx_src/eurasia_km/eurasiacon/build/linux2/omap4430_android/
38# export KERNELDIR=path_to_kernel
39
40To build for OMAP5 (SGX 544 multi core):
41# make ARCH=arm CROSS_COMPILE=arm-eabi- TARGET_PRODUCT="omap5sevm" BUILD=release TARGET_SGX=544
42
43Once the .ko is built, install it onto device (/system/lib/modules)
44
45# cd ANDROID_ROOT/device/ti/proprietary-open/omap5/sgx_src/eurasia_km/eurasiacon/binary2_544_116_omap4430_android_release/target/
46# adb push pvrsrvkm_sgx544_116.ko /system/lib/modules/
47
48If you build the kernel module, it is highly advisable to replace the binaries
49in your device with the ones located in sgx.tgz to avoid incompatibility.
50
51Reboot device.
diff --git a/jacinto6/sgx.tgz b/jacinto6/sgx.tgz
new file mode 100644
index 0000000..e8e1106
--- /dev/null
+++ b/jacinto6/sgx.tgz
Binary files differ
diff --git a/jacinto6/sgx/Android.mk b/jacinto6/sgx/Android.mk
new file mode 100644
index 0000000..128a06d
--- /dev/null
+++ b/jacinto6/sgx/Android.mk
@@ -0,0 +1,150 @@
1# Copyright (C) 2011 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
16define _add-sgx-vendor-lib
17include $$(CLEAR_VARS)
18$(if $(word 2,$1),$(error Invalid SGX module name $1))
19LOCAL_MODULE := $(basename $(notdir $1))
20LOCAL_SRC_FILES := $1
21LOCAL_MODULE_TAGS := optional
22LOCAL_MODULE_SUFFIX := $(suffix $1)
23LOCAL_MODULE_CLASS := SHARED_LIBRARIES
24LOCAL_MODULE_PATH := $$(TARGET_OUT_VENDOR)/$(dir $1)
25LOCAL_STRIP_MODULE := false
26OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_LIBRARIES)
27LOCAL_PATH := $$(img-sgx.untarred_bin)
28include $$(BUILD_SYSTEM)/base_rules.mk
29$$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $$(img-sgx.untarred_bin)/$1
30$$(LOCAL_BUILT_MODULE) : $$(img-sgx.untarred_timestamp) | $$(ACP)
31 @echo "Copy $$@ <- $$(PRIVATE_SRC)"
32 @mkdir -p $(dir $$@)
33 $$(hide) $$(ACP) -fp $$(PRIVATE_SRC) $$@
34endef
35
36define _add-sgx-vendor-bin
37include $$(CLEAR_VARS)
38$(if $(word 2,$1),$(error Invalid SGX module name $1))
39LOCAL_MODULE := $(basename $(notdir $1))
40LOCAL_SRC_FILES := $1
41LOCAL_MODULE_TAGS := optional
42LOCAL_MODULE_SUFFIX := $(suffix $1)
43LOCAL_MODULE_CLASS := EXECUTABLES
44LOCAL_MODULE_PATH := $$(TARGET_OUT_VENDOR)/$(dir $1)
45LOCAL_STRIP_MODULE := false
46OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_EXECUTABLES)
47LOCAL_PATH := $$(img-sgx.untarred_bin)
48include $$(BUILD_SYSTEM)/base_rules.mk
49$$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $$(img-sgx.untarred_bin)/$1
50$$(LOCAL_BUILT_MODULE) : $$(img-sgx.untarred_timestamp) | $$(ACP)
51 @echo "Copy $$@ <- $$(PRIVATE_SRC)"
52 @mkdir -p $$(dir $$@)
53 $$(hide) $$(ACP) -fp $$(PRIVATE_SRC) $$@
54endef
55
56define _add-sgx-vendor-etc
57include $$(CLEAR_VARS)
58$(if $(word 2,$1),$(error Invalid SGX module name $1))
59LOCAL_MODULE := $(basename $(notdir $1))
60LOCAL_SRC_FILES := $1
61LOCAL_MODULE_TAGS := optional
62LOCAL_MODULE_SUFFIX := $(suffix $1)
63LOCAL_MODULE_CLASS := ETC
64LOCAL_MODULE_PATH := $$(TARGET_OUT)/$(dir $1)
65LOCAL_STRIP_MODULE := false
66OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_ETC)
67LOCAL_PATH := $$(img-sgx.untarred_bin)
68include $$(BUILD_SYSTEM)/base_rules.mk
69$$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $$(img-sgx.untarred_bin)/$1
70$$(LOCAL_BUILT_MODULE) : $$(img-sgx.untarred_timestamp) | $$(ACP)
71 @echo "Copy $$@ <- $$(PRIVATE_SRC)"
72 @mkdir -p $$(dir $$@)
73 $$(hide) $$(ACP) -fp $$(PRIVATE_SRC) $$@
74endef
75
76define _add-sgx-vendor-km
77include $$(CLEAR_VARS)
78$(if $(word 2,$1),$(error Invalid SGX module name $1))
79LOCAL_MODULE := $(basename $(notdir $1))
80LOCAL_SRC_FILES := $1
81LOCAL_MODULE_TAGS := optional
82LOCAL_MODULE_SUFFIX := $(suffix $1)
83LOCAL_MODULE_CLASS := ETC
84LOCAL_MODULE_PATH := $$(TARGET_OUT)/lib/$(dir $1)
85LOCAL_STRIP_MODULE := false
86OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_ETC)
87LOCAL_PATH := $$(img-sgx.untarred_bin)
88include $$(BUILD_SYSTEM)/base_rules.mk
89$$(LOCAL_BUILT_MODULE) : PRIVATE_SRC := $$(img-sgx.untarred_bin)/$1
90$$(LOCAL_BUILT_MODULE) : $$(img-sgx.untarred_timestamp) | $$(ACP)
91 @echo "Copy $$@ <- $$(PRIVATE_SRC)"
92 @mkdir -p $$(dir $$@)
93 $$(hide) $$(ACP) -fp $$(PRIVATE_SRC) $$@
94endef
95
96prebuilt_sgx_vendor_libs := \
97 lib/libIMGegl_SGX544_116.so \
98 lib/libglslcompiler_SGX544_116.so \
99 lib/libusc_SGX544_116.so \
100 lib/libPVRScopeServices_SGX544_116.so \
101 lib/libsrv_um_SGX544_116.so \
102 lib/hw/gralloc.jacinto6.so \
103 lib/libpvrANDROID_WSEGL_SGX544_116.so \
104 lib/libpvr2d_SGX544_116.so \
105 lib/libsrv_init_SGX544_116.so \
106 lib/egl/libGLESv1_CM_POWERVR_SGX544_116.so \
107 lib/egl/libGLESv2_POWERVR_SGX544_116.so \
108 lib/egl/libEGL_POWERVR_SGX544_116.so
109
110prebuilt_sgx_vendor_bins := \
111 bin/pvrsrvinit \
112 bin/pvrsrvctl_SGX544_116
113
114prebuilt_sgx_vendor_etc := \
115 etc/powervr.ini
116
117prebuilt_sgx_vendor_km := \
118 modules/pvrsrvkm_sgx544_116.ko
119
120prebuilt_sgx_modules := \
121 $(foreach _file,$(prebuilt_sgx_vendor_libs) $(prebuilt_sgx_vendor_bins) $(prebuilt_sgx_vendor_etc) $(prebuilt_sgx_vendor_km),\
122 $(notdir $(basename $(_file))))
123
124include $(CLEAR_VARS)
125LOCAL_MODULE := ti_jacinto6_sgx_libs
126LOCAL_MODULE_TAGS := optional
127LOCAL_REQUIRED_MODULES := $(prebuilt_sgx_modules)
128include $(BUILD_PHONY_PACKAGE)
129
130$(foreach _file,$(prebuilt_sgx_vendor_libs),\
131 $(eval $(call _add-sgx-vendor-lib,$(_file))))
132
133$(foreach _file,$(prebuilt_sgx_vendor_bins),\
134 $(eval $(call _add-sgx-vendor-bin,$(_file))))
135
136$(foreach _file,$(prebuilt_sgx_vendor_etc),\
137 $(eval $(call _add-sgx-vendor-etc,$(_file))))
138
139$(foreach _file,$(prebuilt_sgx_vendor_km),\
140 $(eval $(call _add-sgx-vendor-km,$(_file))))
141
142prebuilt_sgx_modules :=
143prebuilt_sgx_vendor_libs :=
144prebuilt_sgx_vendor_bins :=
145prebuilt_sgx_vendor_etc :=
146prebuilt_sgx_vendor_km :=
147_add-sgx-vendor-lib :=
148_add-sgx-vendor-bin :=
149_add-sgx-vendor-etc :=
150_add-sgx-vendor-km :=