diff options
author | Kyle Repinski <repinski23@gmail.com> | 2014-11-14 13:20:51 -0600 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2014-12-13 00:39:21 +0100 |
commit | 90c31584df8e214ab50416d66e14af94a414ec1a (patch) | |
tree | cc4bbd8e22c709bb7f482a35fb847451c8bdaa1f /pvrsrvinit | |
parent | 811e2a642de1eb6271ed4a8b8e55c1cd500534c0 (diff) | |
download | device_samsung_tuna-90c31584df8e214ab50416d66e14af94a414ec1a.zip device_samsung_tuna-90c31584df8e214ab50416d66e14af94a414ec1a.tar.gz device_samsung_tuna-90c31584df8e214ab50416d66e14af94a414ec1a.tar.bz2 |
PVR: add re-implemented pvrsrvinit and glue
HUGE thank you to @stargo for figuring this out.
Conflicts:
device.mk
rootdir/init.tuna.rc
Change-Id: I88c9c8f63a85b533bfbb459b2042aedda90ac0d8
Diffstat (limited to 'pvrsrvinit')
-rw-r--r-- | pvrsrvinit/Android.mk | 33 | ||||
-rw-r--r-- | pvrsrvinit/pvrsrvinit.c | 10 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pvrsrvinit/Android.mk b/pvrsrvinit/Android.mk new file mode 100644 index 0000000..a478691 --- /dev/null +++ b/pvrsrvinit/Android.mk @@ -0,0 +1,33 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := pvrsrvinit.c +LOCAL_LDFLAGS := -L vendor/samsung/tuna/proprietary/vendor/lib +LOCAL_LDLIBS := -lsrv_init_SGX540_120 -lsrv_um_SGX540_120 +LOCAL_MODULE_PATH := $(TARGET_OUT)/bin/ +LOCAL_MODULE := pvrsrvinit +LOCAL_MODULE_TAGS := optional + +include $(BUILD_EXECUTABLE) + +#Create PVR SymLink +include $(CLEAR_VARS) + +LOCAL_MODULE := libPVRScopeServices.so +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := FAKE + +include $(BUILD_SYSTEM)/base_rules.mk + +$(LOCAL_BUILT_MODULE): PVR_FILE := libPVRScopeServices_SGX540_120.so +$(LOCAL_BUILT_MODULE): SYMLINK := $(TARGET_OUT_VENDOR)/lib/$(LOCAL_MODULE) +$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/Android.mk +$(LOCAL_BUILT_MODULE): + $(hide) echo "Symlink: $(SYMLINK) -> $(PVR_FILE)" + $(hide) mkdir -p $(dir $@) + $(hide) mkdir -p $(dir $(SYMLINK)) + $(hide) rm -rf $@ + $(hide) rm -rf $(SYMLINK) + $(hide) ln -sf $(PVR_FILE) $(SYMLINK) + $(hide) touch $@ diff --git a/pvrsrvinit/pvrsrvinit.c b/pvrsrvinit/pvrsrvinit.c new file mode 100644 index 0000000..dbc1a1b --- /dev/null +++ b/pvrsrvinit/pvrsrvinit.c @@ -0,0 +1,10 @@ +#include <stdlib.h> + +int SrvInit(int x); + +int main(int argc, char **argv) +{ + SrvInit(1); + + return EXIT_SUCCESS; +} |