From d1b3d7ab0eb7a43d530d7ab8ce40456eda0feb0f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Queru Date: Wed, 14 Sep 2011 14:05:01 -0700 Subject: Package widevine binaries for distribution Bug: 4295425 Change-Id: I0f65f5e0e6093da3f433493417d4b1f32fa479c0 --- self-extractors/generate-packages.sh | 16 ++++++++++++--- self-extractors/root/BoardConfigVendor.mk | 1 + self-extractors/root/device-vendor.mk | 1 + self-extractors/widevine/COPYRIGHT | 1 + self-extractors/widevine/LICENSE | 1 + .../widevine/staging/BoardConfigCrespo.mk | 13 ++++++++++++ self-extractors/widevine/staging/device-crespo.mk | 24 ++++++++++++++++++++++ 7 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 self-extractors/widevine/COPYRIGHT create mode 100644 self-extractors/widevine/LICENSE create mode 100644 self-extractors/widevine/staging/BoardConfigCrespo.mk create mode 100644 self-extractors/widevine/staging/device-crespo.mk (limited to 'self-extractors') diff --git a/self-extractors/generate-packages.sh b/self-extractors/generate-packages.sh index b2231d0..1a63d1c 100755 --- a/self-extractors/generate-packages.sh +++ b/self-extractors/generate-packages.sh @@ -27,13 +27,14 @@ # 128447 = IRJ55 # 138179 = IRJ89 # 146649 = IRK18 -ZIP=soju-ota-146649.zip -BUILD=irk18 +# 185907 = IRK76 +ZIP=soju-ota-185907.zip +BUILD=irk76 ROOTDEVICE=crespo DEVICE=crespo MANUFACTURER=samsung -for COMPANY in akm broadcom cypress imgtec nxp samsung +for COMPANY in akm broadcom cypress imgtec nxp samsung widevine do echo Processing files from $COMPANY rm -rf tmp @@ -86,6 +87,15 @@ do system/vendor/lib/libsec-ril.so \ " ;; + widevine) + TO_EXTRACT="\ + system/etc/permissions/com.google.widevine.software.drm.xml \ + system/lib/drm/libdrmwvmplugin.so \ + system/lib/libwvdrm_L3.so \ + system/lib/libwvm.so \ + system/lib/libWVStreamControlAPI_L3.so \ + " + ;; esac echo \ \ Extracting files from OTA package for ONE_FILE in $TO_EXTRACT diff --git a/self-extractors/root/BoardConfigVendor.mk b/self-extractors/root/BoardConfigVendor.mk index 34558d9..365996f 100644 --- a/self-extractors/root/BoardConfigVendor.mk +++ b/self-extractors/root/BoardConfigVendor.mk @@ -20,3 +20,4 @@ LOCAL_STEM := crespo/BoardConfigCrespo.mk -include vendor/imgtec/$(LOCAL_STEM) -include vendor/nxp/$(LOCAL_STEM) -include vendor/samsung/$(LOCAL_STEM) +-include vendor/widevine/$(LOCAL_STEM) diff --git a/self-extractors/root/device-vendor.mk b/self-extractors/root/device-vendor.mk index f941d11..dcf6247 100644 --- a/self-extractors/root/device-vendor.mk +++ b/self-extractors/root/device-vendor.mk @@ -20,3 +20,4 @@ $(call inherit-product-if-exists, vendor/cypress/$(LOCAL_STEM)) $(call inherit-product-if-exists, vendor/imgtec/$(LOCAL_STEM)) $(call inherit-product-if-exists, vendor/nxp/$(LOCAL_STEM)) $(call inherit-product-if-exists, vendor/samsung/$(LOCAL_STEM)) +$(call inherit-product-if-exists, vendor/widevine/$(LOCAL_STEM)) diff --git a/self-extractors/widevine/COPYRIGHT b/self-extractors/widevine/COPYRIGHT new file mode 100644 index 0000000..91f97c9 --- /dev/null +++ b/self-extractors/widevine/COPYRIGHT @@ -0,0 +1 @@ +# (C) Widevine. All Rights Reserved. diff --git a/self-extractors/widevine/LICENSE b/self-extractors/widevine/LICENSE new file mode 100644 index 0000000..f1d5315 --- /dev/null +++ b/self-extractors/widevine/LICENSE @@ -0,0 +1 @@ +WIDEVINE LICENSE GOES HERE diff --git a/self-extractors/widevine/staging/BoardConfigCrespo.mk b/self-extractors/widevine/staging/BoardConfigCrespo.mk new file mode 100644 index 0000000..01a0ff3 --- /dev/null +++ b/self-extractors/widevine/staging/BoardConfigCrespo.mk @@ -0,0 +1,13 @@ +# Copyright (C) 2010 The Android Open Source 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. diff --git a/self-extractors/widevine/staging/device-crespo.mk b/self-extractors/widevine/staging/device-crespo.mk new file mode 100644 index 0000000..2d32797 --- /dev/null +++ b/self-extractors/widevine/staging/device-crespo.mk @@ -0,0 +1,24 @@ +# Copyright (C) 2010 The Android Open Source 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 := vendor/widevine/crespo + +# Widevine blobs necessary for Nexus S hardware +PRODUCT_COPY_FILES := \ + $(LOCAL_PATH)/proprietary/com.google.widevine.software.drm.xml:system/etc/permissions/com.google.widevine.software.drm.xml \ + $(LOCAL_PATH)/proprietary/libdrmwvmplugin.so:system/lib/drm/libdrmwvmplugin.so \ + $(LOCAL_PATH)/proprietary/libwvdrm_L3.so:system/lib/libwvdrm_L3.so \ + $(LOCAL_PATH)/proprietary/libwvm.so:system/lib/libwvm.so \ + $(LOCAL_PATH)/proprietary/libWVStreamControlAPI_L3.so:system/lib/libWVStreamControlAPI_L3.so \ + -- cgit v1.1