SGX-BIN: Update SGX driver (1.8@840215) w/SGX kernel modules
authorHemant Hariyani <hemanthariyani@ti.com>
Wed, 14 Mar 2012 04:57:12 +0000 (23:57 -0500)
committerHemant Hariyani <hemanthariyani@ti.com>
Mon, 19 Mar 2012 18:14:52 +0000 (13:14 -0500)
DDK upgrade - 1.8@840215
Also, SGX kernel driver is now built as a separate module. In-kernel
driver should not be used. This binary includes pre-built
modules.

Change-Id: I0259aefa62ceef52c0b734a77a86a02258f88922
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
omap4/sgx.tgz
omap4/sgx/Android.mk

index f89f037043c69bc3ee9dcffa9f498994d65059db..d8feca4119af2dcc1dba7fa0b8aa49579b2ed536 100644 (file)
Binary files a/omap4/sgx.tgz and b/omap4/sgx.tgz differ
index 883e6dbfa72a084ddfa1fed17c23ab0e450a6360..e0cc56a8d6a953a9e61cb813cb99cecba5ce7e40 100644 (file)
@@ -42,6 +42,20 @@ OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_ETC)
 include $$(BUILD_PREBUILT)
 endef
 
+define _add-sgx-vendor-km
+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 := ETC
+LOCAL_MODULE_PATH := $$(TARGET_OUT)$(abspath /lib/$(dir $1))
+LOCAL_STRIP_MODULE := false
+OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_ETC)
+include $$(BUILD_PREBUILT)
+endef
+
 prebuilt_sgx_vendor_libs := \
        lib/libIMGegl_SGX540_120.so \
        lib/libglslcompiler_SGX540_120.so \
@@ -76,8 +90,14 @@ prebuilt_sgx_vendor_bins := \
 prebuilt_sgx_vendor_etc := \
        etc/powervr.ini
 
+prebuilt_sgx_vendor_km := \
+       modules/pvrsrvkm_sgx540_120.ko \
+       modules/pvrsrvkm_sgx544_112.ko \
+       modules/omaplfb_sgx540_120.ko \
+       modules/omaplfb_sgx544_112.ko
+
 prebuilt_sgx_modules := \
-  $(foreach _file,$(prebuilt_sgx_vendor_libs) $(prebuilt_sgx_vendor_bins) $(prebuilt_sgx_vendor_etc),\
+  $(foreach _file,$(prebuilt_sgx_vendor_libs) $(prebuilt_sgx_vendor_bins) $(prebuilt_sgx_vendor_etc) $(prebuilt_sgx_vendor_km),\
     $(notdir $(basename $(_file))))
 
 include $(CLEAR_VARS)
@@ -95,10 +115,15 @@ $(foreach _file,$(prebuilt_sgx_vendor_bins),\
 $(foreach _file,$(prebuilt_sgx_vendor_etc),\
   $(eval $(call _add-sgx-vendor-etc,$(_file))))
 
+$(foreach _file,$(prebuilt_sgx_vendor_km),\
+  $(eval $(call _add-sgx-vendor-km,$(_file))))
+
 prebuilt_sgx_modules :=
 prebuilt_sgx_vendor_libs :=
 prebuilt_sgx_vendor_bins :=
 prebuilt_sgx_vendor_etc :=
+prebuilt_sgx_vendor_km :=
 _add-sgx-vendor-lib :=
 _add-sgx-vendor-bin :=
 _add-sgx-vendor-etc :=
+_add-sgx-vendor-km :=