Skip to content

Commit

Permalink
sony: kitakami: Add libshim for imsvt
Browse files Browse the repository at this point in the history
Signed-off-by: Humberto Borba <[email protected]>
Change-Id: I63049896337981c4172d00565cdb1f44d95e95f6
  • Loading branch information
humberos authored and erikcas committed May 22, 2017
1 parent 8e58598 commit a645134
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
25 changes: 25 additions & 0 deletions libshim/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := imsvt_shim.c
LOCAL_SHARED_LIBRARIES := libstagefright_foundation
LOCAL_MODULE := libshim_imsvt
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)

17 changes: 17 additions & 0 deletions libshim/imsvt_shim.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (C) 2017 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

void _ZNK7android11MediaBuffer8refcountEv() {};
5 changes: 5 additions & 0 deletions platform_omni.mk
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ PRODUCT_PACKAGES += \
libOmxVenc \
libstagefrighthw

# lib shim
PRODUCT_PACKAGES += \
libshim_wvm \
libshim_imsvt

# Snapdragon Camera
PRODUCT_PACKAGES += \
SnapdragonCamera
Expand Down
1 change: 1 addition & 0 deletions rootdir/init.kitakami-caf.rc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on early-init
on init
wait /dev/block/platform/soc.0/f9824900.sdhci
symlink /dev/block/platform/soc.0/f9824900.sdhci /dev/block/bootdevice
export LD_SHIM_LIBS "/system/vendor/lib64/lib-imsvt.so|libshim_imsvt.so"

wait /dev/block/mmcblk0p1
chown tad tad /dev/block/mmcblk0p1
Expand Down

0 comments on commit a645134

Please sign in to comment.