diff options
| author | Ethan Chen <intervigil@gmail.com> | 2015-10-03 17:27:33 -0700 |
|---|---|---|
| committer | doc HD <doc.divxm@gmail.com> | 2015-10-04 12:00:07 +0300 |
| commit | a5330ef3cff309ec3765d21ca5dabb6817972bb0 (patch) | |
| tree | d2c7f354c20721356d2373daf7d8d10b8ebb5b2b | |
| parent | 5138ea4a735cefafa23af2a02793ea3630c48592 (diff) | |
ls980: Fix proprietary file extractionlp5.1
Change-Id: Id83ce4af0febf690e27f29cd3631253145832fb1
| -rwxr-xr-x | extract-files.sh | 18 | ||||
| -rw-r--r-- | proprietary-files.txt | 32 | ||||
| -rwxr-xr-x | setup-makefiles.sh | 96 |
3 files changed, 23 insertions, 123 deletions
diff --git a/extract-files.sh b/extract-files.sh index a7ffa91..c660c2c 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -1,17 +1,7 @@ #!/bin/sh -VENDOR=lge -DEVICE=ls980 +set -e -BASE=../../../vendor/$VENDOR/$DEVICE/proprietary -rm -rf $BASE/* - -for FILE in `cat proprietary-files.txt | grep -v ^# | grep -v ^$ `; do - DIR=`dirname $FILE` - if [ ! -d $BASE/$DIR ]; then - mkdir -p $BASE/$DIR - fi - adb pull /system/$FILE $BASE/$FILE -done - -./setup-makefiles.sh +export VENDOR=lge +export DEVICE=ls980 +./../../$VENDOR/g2-common/extract-files.sh $@ diff --git a/proprietary-files.txt b/proprietary-files.txt index b78de64..7cc7d78 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,22 +1,20 @@ -# Broadcom (Wi-Fi) firmware -etc/firmware/fw_bcmdhd_apsta.bin -etc/firmware/fw_bcmdhd.bin - -# Camera -bin/mm-qcamera-daemon +# ADSP +etc/firmware/adsp.b00 +etc/firmware/adsp.b01 +etc/firmware/adsp.b02 +etc/firmware/adsp.b03 +etc/firmware/adsp.b04 +etc/firmware/adsp.b05 +etc/firmware/adsp.b06 +etc/firmware/adsp.b07 +etc/firmware/adsp.b08 +etc/firmware/adsp.b09 +etc/firmware/adsp.b10 +etc/firmware/adsp.b11 +etc/firmware/adsp.b12 +etc/firmware/adsp.mdt # NFC lib/hw/nfc.default.so lib/hw/nfc.lg.so vendor/firmware/libpn544_fw.so - -# Radio -bin/netmgrd -bin/rild -lib/libril.so - -# Sensors -bin/sensors.qcom - -# Thermal -bin/thermal-engine diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 538f3b9..0004252 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -1,95 +1,7 @@ #!/bin/sh -VENDOR=lge -DEVICE=ls980 -OUTDIR=vendor/$VENDOR/$DEVICE -MAKEFILE=../../../$OUTDIR/$DEVICE-vendor-blobs.mk +set -e -(cat << EOF) > $MAKEFILE -# Copyright (C) 2014 The CyanogenMod 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. - -# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh - -# Prebuilt libraries that are needed to build open-source libraries -PRODUCT_COPY_FILES := \\ - $OUTDIR/proprietary/vendor/lib/libtime_genoff.so:obj/lib/libtime_genoff.so - -PRODUCT_COPY_FILES += \\ -EOF - -LINEEND=" \\" -COUNT=`cat proprietary-files.txt | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}` -for FILE in `cat proprietary-files.txt | grep -v ^# | grep -v ^$`; do - COUNT=`expr $COUNT - 1` - if [ $COUNT = "0" ]; then - LINEEND="" - fi - echo " $OUTDIR/proprietary/$FILE:system/$FILE$LINEEND" >> $MAKEFILE -done - -(cat << EOF) > ../../../$OUTDIR/$DEVICE-vendor.mk -# Copyright (C) 2014 The CyanogenMod 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. - -# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh - -# Live wallpaper packages -PRODUCT_PACKAGES := \\ - LiveWallpapers \\ - LiveWallpapersPicker \\ - MagicSmokeWallpapers \\ - VisualizationWallpapers \\ - librs_jni - -# Publish that we support the live wallpaper feature. -PRODUCT_COPY_FILES := \\ - packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml - -# Pick up overlay for features that depend on non-open-source files -DEVICE_PACKAGE_OVERLAYS := vendor/$VENDOR/$DEVICE/overlay - -\$(call inherit-product, vendor/$VENDOR/$DEVICE/$DEVICE-vendor-blobs.mk) -EOF - -(cat << EOF) > ../../../$OUTDIR/BoardConfigVendor.mk -# Copyright (C) 2014 The CyanogenMod 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. - -# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh - -USE_CAMERA_STUB := false -EOF +export VENDOR=lge +export DEVICE=ls980 +./../../$VENDOR/g2-common/setup-makefiles.sh $@ |
