summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2017-01-13 22:56:53 +0100
committerAndreas Blaesius <skate4life@gmx.de>2017-03-03 14:17:41 +0100
commit762038675c7a7e3ec4c951cb2d173033d9f9b7af (patch)
tree27d8499b989d96e9331a83b2949f4e74fe566515
parent42b138dc109af86c34a2e5d88adf3e68e5482835 (diff)
downloaddevice_samsung_tuna-762038675c7a7e3ec4c951cb2d173033d9f9b7af.zip
device_samsung_tuna-762038675c7a7e3ec4c951cb2d173033d9f9b7af.tar.gz
device_samsung_tuna-762038675c7a7e3ec4c951cb2d173033d9f9b7af.tar.bz2
Use common SGX KM build target
Change-Id: Ia5a8072afbb557a33b1e5a1cf7bedf3cd3682fba
-rwxr-xr-xBoardConfig.mk13
-rwxr-xr-xrootdir/init.tuna.rc3
2 files changed, 3 insertions, 13 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index d41f3f5..297b179 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -19,6 +19,9 @@ DEVICE_FOLDER := device/samsung/tuna
# inherit from omap4
-include hardware/ti/omap4/BoardConfigCommon.mk
+# Build SGX KM
+-include hardware/ti/omap4/pvr-km.mk
+
PRODUCT_VENDOR_KERNEL_HEADERS += $(DEVICE_FOLDER)/kernel-headers
# CM
@@ -46,16 +49,6 @@ BOARD_KERNEL_CMDLINE := androidboot.hardware=$(TARGET_BOOTLOADER_BOARD_NAME)
TARGET_KERNEL_CONFIG := cyanogenmod_tuna_defconfig
TARGET_KERNEL_SOURCE := kernel/samsung/tuna
-# External SGX Module
-SGX_MODULES:
- make clean -C $(HARDWARE_TI_OMAP4_BASE)/pvr-source/eurasiacon/build/linux2/omap4430_android
- cp $(TARGET_KERNEL_SOURCE)/drivers/video/omap2/omapfb/omapfb.h $(KERNEL_OUT)/drivers/video/omap2/omapfb/omapfb.h
- make -j8 -C $(HARDWARE_TI_OMAP4_BASE)/pvr-source/eurasiacon/build/linux2/omap4430_android ARCH=arm KERNEL_CROSS_COMPILE=arm-eabi- CROSS_COMPILE=arm-eabi- KERNELDIR=$(KERNEL_OUT) TARGET_PRODUCT="blaze_tablet" BUILD=release TARGET_SGX=540
- mv $(KERNEL_OUT)/../../target/kbuild/pvrsrvkm_sgx540_120.ko $(KERNEL_MODULES_OUT)
- $(ARM_EABI_TOOLCHAIN)/arm-eabi-strip --strip-unneeded $(KERNEL_MODULES_OUT)/pvrsrvkm_sgx540_120.ko
-
-TARGET_KERNEL_MODULES += SGX_MODULES
-
TI_CAMERAHAL_USES_LEGACY_DOMX_DCC := true
TI_CAMERAHAL_INTERFACE := OMX
DOMX_TUNA := true
diff --git a/rootdir/init.tuna.rc b/rootdir/init.tuna.rc
index 1840239..1e8d5b9 100755
--- a/rootdir/init.tuna.rc
+++ b/rootdir/init.tuna.rc
@@ -73,9 +73,6 @@ on fs
chmod 0660 /dev/i2c-2
chown media media /dev/i2c-2
- # pvr module
- insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko
-
# add symlink for HDCP key
symlink /factory/hdcp.keys /system/vendor/firmware/hdcp.keys