summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--omap4/sgx.tgzbin1538611 -> 1541613 bytes
-rw-r--r--omap4/sgx/Android.mk69
-rwxr-xr-xuntar.sh1
3 files changed, 70 insertions, 0 deletions
diff --git a/omap4/sgx.tgz b/omap4/sgx.tgz
index a1ae567..a4a5599 100644
--- a/omap4/sgx.tgz
+++ b/omap4/sgx.tgz
Binary files differ
diff --git a/omap4/sgx/Android.mk b/omap4/sgx/Android.mk
new file mode 100644
index 0000000..05b900d
--- /dev/null
+++ b/omap4/sgx/Android.mk
@@ -0,0 +1,69 @@
1LOCAL_PATH := $(call my-dir)
2
3define _add-sgx-vendor-lib
4include $$(CLEAR_VARS)
5$(if $(word 2,$1),$(error Invalid SGX module name $1))
6LOCAL_MODULE := $(basename $(notdir $1))
7LOCAL_SRC_FILES := $1
8LOCAL_MODULE_TAGS := optional
9LOCAL_MODULE_SUFFIX := $(suffix $1)
10LOCAL_MODULE_CLASS := SHARED_LIBRARIES
11LOCAL_MODULE_PATH := $$(TARGET_OUT)$(abspath /vendor/$(dir $1))
12LOCAL_STRIP_MODULE := false
13OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_LIBRARIES)
14include $$(BUILD_PREBUILT)
15endef
16
17define _add-sgx-vendor-bin
18include $$(CLEAR_VARS)
19$(if $(word 2,$1),$(error Invalid SGX module name $1))
20LOCAL_MODULE := $(basename $(notdir $1))
21LOCAL_SRC_FILES := $1
22LOCAL_MODULE_TAGS := optional
23LOCAL_MODULE_SUFFIX := $(suffix $1)
24LOCAL_MODULE_CLASS := EXECUTABLES
25LOCAL_MODULE_PATH := $$(TARGET_OUT)$(abspath /vendor/$(dir $1))
26LOCAL_STRIP_MODULE := false
27OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_EXECUTABLES)
28include $$(BUILD_PREBUILT)
29endef
30
31
32prebuilt_sgx_vendor_libs := \
33 lib/libIMGegl.so \
34 lib/libglslcompiler.so \
35 lib/libusc.so \
36 lib/libPVRScopeServices.so \
37 lib/libsrv_um.so \
38 lib/hw/gralloc.omap4.so \
39 lib/libpvrANDROID_WSEGL.so \
40 lib/libpvr2d.so \
41 lib/libsrv_init.so \
42 lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so \
43 lib/egl/libGLESv2_POWERVR_SGX540_120.so \
44 lib/egl/libEGL_POWERVR_SGX540_120.so
45
46prebuilt_sgx_vendor_bins := \
47 bin/pvrsrvinit
48
49prebuilt_sgx_modules := \
50 $(foreach _file,$(prebuilt_sgx_vendor_libs) $(prebuilt_sgx_vendor_bins),\
51 $(notdir $(basename $(_file))))
52
53include $(CLEAR_VARS)
54LOCAL_MODULE := ti_omap4_sgx_libs
55LOCAL_MODULE_TAGS := optional
56LOCAL_REQUIRED_MODULES := $(prebuilt_sgx_modules)
57include $(BUILD_PHONY_PACKAGE)
58
59$(foreach _file,$(prebuilt_sgx_vendor_libs),\
60 $(eval $(call _add-sgx-vendor-lib,$(_file))))
61
62$(foreach _file,$(prebuilt_sgx_vendor_bins),\
63 $(eval $(call _add-sgx-vendor-bin,$(_file))))
64
65prebuilt_sgx_modules :=
66prebuilt_sgx_vendor_libs :=
67prebuilt_sgx_vendor_bins :=
68_add-sgx-vendor-lib :=
69_add-sgx-vendor-bin :=
diff --git a/untar.sh b/untar.sh
index 2e5b77f..8e5cc9f 100755
--- a/untar.sh
+++ b/untar.sh
@@ -12,3 +12,4 @@ if [ -d $1/$2 ]; then
12fi 12fi
13 13
14tar -C $1 -zxf $3 14tar -C $1 -zxf $3
15find $1/$2 -type f -exec touch {} \;