summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f0810d)
raw | patch | inline | side by side (parent: 5f0810d)
author | James W. Mills <jameswmills@ti.com> | |
Wed, 14 Dec 2011 23:41:22 +0000 (17:41 -0600) | ||
committer | James W. Mills <jameswmills@ti.com> | |
Wed, 14 Dec 2011 23:50:04 +0000 (17:50 -0600) |
Change-Id: Ief0b0d770a90c9fc8f32556204cf7e11a78ecc78
Signed-off-by: James W. Mills <jameswmills@ti.com>
Signed-off-by: James W. Mills <jameswmills@ti.com>
omap4/sgx.tgz | patch | blob | history | |
omap4/sgx/Android.mk | [new file with mode: 0644] | patch | blob |
untar.sh | patch | blob | history |
diff --git a/omap4/sgx.tgz b/omap4/sgx.tgz
index a1ae567363209e6805dd8beffc9b31fe60f98560..a4a5599ae972aae9f97e179a51244cf82e8856db 100644 (file)
Binary files a/omap4/sgx.tgz and b/omap4/sgx.tgz differ
Binary files a/omap4/sgx.tgz and b/omap4/sgx.tgz differ
diff --git a/omap4/sgx/Android.mk b/omap4/sgx/Android.mk
--- /dev/null
+++ b/omap4/sgx/Android.mk
@@ -0,0 +1,69 @@
+LOCAL_PATH := $(call my-dir)
+
+define _add-sgx-vendor-lib
+include $$(CLEAR_VARS)
+$(if $(word 2,$1),$(error Invalid SGX module name $1))
+LOCAL_MODULE := $(basename $(notdir $1))
+LOCAL_SRC_FILES := $1
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := $(suffix $1)
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES
+LOCAL_MODULE_PATH := $$(TARGET_OUT)$(abspath /vendor/$(dir $1))
+LOCAL_STRIP_MODULE := false
+OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_LIBRARIES)
+include $$(BUILD_PREBUILT)
+endef
+
+define _add-sgx-vendor-bin
+include $$(CLEAR_VARS)
+$(if $(word 2,$1),$(error Invalid SGX module name $1))
+LOCAL_MODULE := $(basename $(notdir $1))
+LOCAL_SRC_FILES := $1
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_SUFFIX := $(suffix $1)
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_MODULE_PATH := $$(TARGET_OUT)$(abspath /vendor/$(dir $1))
+LOCAL_STRIP_MODULE := false
+OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_EXECUTABLES)
+include $$(BUILD_PREBUILT)
+endef
+
+
+prebuilt_sgx_vendor_libs := \
+ lib/libIMGegl.so \
+ lib/libglslcompiler.so \
+ lib/libusc.so \
+ lib/libPVRScopeServices.so \
+ lib/libsrv_um.so \
+ lib/hw/gralloc.omap4.so \
+ lib/libpvrANDROID_WSEGL.so \
+ lib/libpvr2d.so \
+ lib/libsrv_init.so \
+ lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so \
+ lib/egl/libGLESv2_POWERVR_SGX540_120.so \
+ lib/egl/libEGL_POWERVR_SGX540_120.so
+
+prebuilt_sgx_vendor_bins := \
+ bin/pvrsrvinit
+
+prebuilt_sgx_modules := \
+ $(foreach _file,$(prebuilt_sgx_vendor_libs) $(prebuilt_sgx_vendor_bins),\
+ $(notdir $(basename $(_file))))
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := ti_omap4_sgx_libs
+LOCAL_MODULE_TAGS := optional
+LOCAL_REQUIRED_MODULES := $(prebuilt_sgx_modules)
+include $(BUILD_PHONY_PACKAGE)
+
+$(foreach _file,$(prebuilt_sgx_vendor_libs),\
+ $(eval $(call _add-sgx-vendor-lib,$(_file))))
+
+$(foreach _file,$(prebuilt_sgx_vendor_bins),\
+ $(eval $(call _add-sgx-vendor-bin,$(_file))))
+
+prebuilt_sgx_modules :=
+prebuilt_sgx_vendor_libs :=
+prebuilt_sgx_vendor_bins :=
+_add-sgx-vendor-lib :=
+_add-sgx-vendor-bin :=
diff --git a/untar.sh b/untar.sh
index 2e5b77ffff3807dc77e51bc564fb6c8e42d0d712..8e5cc9fcedfbbf54cff5e524d4869138581a318c 100755 (executable)
--- a/untar.sh
+++ b/untar.sh
fi
tar -C $1 -zxf $3
+find $1/$2 -type f -exec touch {} \;