msm8226-common: Setup extractors for shared blobs

Change-Id: I21194e86f3f755510130118a0a1b7a47a6aa1a5a
This commit is contained in:
Kevin F. Haggerty 2017-12-31 08:43:59 -07:00 committed by Francescodario Cuzzocrea
parent 19d52874f4
commit 45e66c7053
3 changed files with 150 additions and 0 deletions

View file

@ -0,0 +1,45 @@
# aptX (Moto griffin - NCLS25.86-11-4-6-5)
vendor/lib/libaptX_encoder.so|b03772672144d4b750a5672c2922aded93bb0512
# Graphics (OnePlus onyx - Oxygen OS 3.1.4 - OnePlusXOxygen_14_201611071506)
vendor/lib/egl/eglsubAndroid.so|b8a5790c5b4ba4cf0018c94066104610c821ed8e
vendor/lib/egl/libEGL_adreno.so|cd29673e990dba8158e961e287a79dfbd852d095
vendor/lib/egl/libGLESv1_CM_adreno.so|ae86d16ba499ac6cdd3cecb91ae6b16b4c303984
vendor/lib/egl/libGLESv2_adreno.so|445be60045ff86d1d27545692134eacf0d89a6dc
vendor/lib/egl/libq3dtools_adreno.so|2c12919492f1146b58f4f1c379dfe10d3320d476
vendor/lib/libC2D2.so|d34587d5143bd09f847cb6686b03461a6e62cd87
vendor/lib/libCB.so|3d2ad5bbff1cf4019d89c38689ec2ce3c186a3c1
vendor/lib/libOpenCL.so|2b4b9692b16729b880d7881e68208183943f9612
vendor/lib/libadreno_utils.so|a109e06c933811c578d129c0772a612cf5d94367
vendor/lib/libbccQTI.so|94132d5d8421428001c2201a8915949c531b0ad9
vendor/lib/libc2d30-a3xx.so|3666e0bf418e7ea7480b27c2c1ddd1bc86037044
vendor/lib/libgsl.so|fafee1adf0e89325b3a1ea83d5205c02ebf860f3
vendor/lib/libllvm-qcom.so|fc96c949b662fb34b287a4c0aa194984fbb57d7d
vendor/lib/libsc-a3xx.so|231201bcfead5f930537d2fba22d89b00e673386
vendor/lib/libscale.so|b44f44c633fa404d10e76aaa23593b516e08e2b8
# Graphics firmware (Samsung Galaxy S5 Mini G800HXXU1CQC1_G800HXEO1CQB1)
etc/firmware/a330_pfp.fw
etc/firmware/a330_pm4.fw
etc/firmware/a330_pfp.fw
etc/firmware/a330_pm4.fw
# GPS (OnePlus bacon - lineage-14.1-20170807-nightly-bacon-signed.zip)
vendor/lib/libloc_api_v02.so|9a8401afc86b54e73aa29995f228fd0243cee793
vendor/lib/libloc_ds_api.so|ccce9d3c3fa4cadafd13b63c90d3ab8c115dd7b0
vendor/lib/hw/flp.default.so|c36ec0a3e6563fa8ddb96aaa7d0129249ce1d305
vendor/lib/libflp.so|20994b3ac3ecd2094698ac98463aed97e3ce54ef
vendor/lib/libgeofence.so|953c2720c98825cdfb2757839f5f86400c11a2d5
vendor/lib/libizat_core.so|8d1b8f5c26cc9bcdacb402e253048211a6c07ba1
vendor/lib/liblbs_core.so|3dea19e84a0d226ea3e5c92ec169f7e0fdbe5699
# Renderscript (Google bullhead - OPR4.170623.006)
vendor/lib/libRSDriver_adreno.so|2044baf0169177e52aba6d7138f80559ecf2b58d
vendor/lib/librs_adreno.so|cceaf847d749ac2f1a3af3a1ae6ba653d93e0ed9
vendor/lib/librs_adreno_sha1.so|e797997d3ac69dfa87904863672c5b9769c796cc
# STLport (Camera/RIL) - local compile LineageOS/external/stlport@984b8432
vendor/lib/libstlport.so|0be0a0d13e12fbf95d97d309dcbc25d3f969a469
# Widevine (Google angler - OPR6.170623.017)
vendor/lib/mediadrm/libwvdrmengine.so|66ba66d047044f92eb0eada1faf6a5799ded90ab

58
extract-files.sh Executable file
View file

@ -0,0 +1,58 @@
#!/bin/bash
#
# Copyright (C) 2017-2018 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.
#
set -e
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
# Override anything that may come from the calling environment
CM_ROOT="$MY_DIR"/../../..
BOARD=msm8974
DEVICE_COMMON=${BOARD}-common
VENDOR=samsung
HELPER="$CM_ROOT"/vendor/lineage/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
fi
. "$HELPER"
if [ $# -eq 0 ]; then
SRC=adb
else
if [ $# -eq 1 ]; then
SRC=$1
else
echo "$0: bad number of arguments"
echo ""
echo "usage: $0 [PATH_TO_EXPANDED_ROM]"
echo ""
echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from"
echo "the device using adb pull."
exit 1
fi
fi
# Initialize the helper for common device
setup_vendor "$DEVICE_COMMON" "$VENDOR" "$CM_ROOT" true
extract "$MY_DIR"/common-proprietary-files.txt "$SRC"
"$MY_DIR"/setup-makefiles.sh

47
setup-makefiles.sh Executable file
View file

@ -0,0 +1,47 @@
#!/bin/bash
#
# Copyright (C) 2017-2018 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.
#
set -e
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
# Override anything that may come from the calling environment
CM_ROOT="$MY_DIR"/../../..
BOARD=msm8226
DEVICE_COMMON=${BOARD}-common
INITIAL_COPYRIGHT_YEAR=2017
VENDOR=samsung
HELPER="$CM_ROOT"/vendor/lineage/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
fi
. "$HELPER"
# Initialize the helper for common device
setup_vendor "$DEVICE_COMMON" "$VENDOR" "$CM_ROOT" true
# Copyright headers
write_headers $BOARD TARGET_BOARD_BOARD
write_makefiles "$MY_DIR"/common-proprietary-files.txt
write_footers