msm8974-common: Setup extractors for shared blobs
Change-Id: I21194e86f3f755510130118a0a1b7a47a6aa1a5a
This commit is contained in:
parent
a34bca1130
commit
7477a67fb5
37
common-proprietary-files.txt
Normal file
37
common-proprietary-files.txt
Normal file
@ -0,0 +1,37 @@
|
||||
# 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 blur (OnePlus bacon - Cyanogen OS cm-13.1.2-ZNH2KAS3P0)
|
||||
vendor/lib/libuiblur.so|12dd942092c05d978a2a2db3ea37e0b410427b52
|
||||
|
||||
# Graphics firmware (same everywhere, so lets say Samsung G900FXXS1CQI4_G900FPHN1CQI2_PHN)
|
||||
vendor/firmware/a330_pfp.fw|3e2fcee7276ded819cf2d95864fdd6788a484ee1
|
||||
vendor/firmware/a330_pm4.fw|ae739ea812f9e4462d7bba8b9ead5782d4496618
|
||||
|
||||
# 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
58
extract-files.sh
Executable 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
47
setup-makefiles.sh
Executable 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=msm8974
|
||||
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
|
Loading…
Reference in New Issue
Block a user