From df49c15ad129636319fe201151fea4292d0c7b0a Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Sat, 20 Feb 2016 17:33:20 +1100 Subject: i9300: update proprietary-files and extract-files extract gps HAL to the expected location Change-Id: I3f391310b416889c8d99107dec53eb276823e5f7 --- extract-files.sh | 24 +++++++++++++++++------- proprietary-files.txt | 4 ++-- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/extract-files.sh b/extract-files.sh index 19dd948..c9d5f07 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2013 The CyanogenMod Project +# Copyright (C) 2016 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. @@ -26,16 +26,21 @@ adb wait-for-device echo "Pulling proprietary files..." for FILE in `cat proprietary-files.txt | grep -v ^# | grep -v ^$`; do - DIR=`dirname $FILE` + DEST=$FILE + if echo $FILE | grep ':' 2>&1 >/dev/null; then + DEST=`echo $FILE | sed 's/.*://'` + FILE=`echo $FILE | sed 's/:.*//'` + fi + DIR=`dirname $DEST` if [ ! -d ../../../vendor/$VENDOR/$DEVICE/proprietary/$DIR ]; then mkdir -p ../../../vendor/$VENDOR/$DEVICE/proprietary/$DIR fi - adb pull /$FILE ../../../vendor/$VENDOR/$DEVICE/proprietary/$FILE + adb pull /$FILE ../../../vendor/$VENDOR/$DEVICE/proprietary/$DEST done (cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$DEVICE/$DEVICE-vendor-blobs.mk -# Copyright (C) 2013 The CyanogenMod Project +# Copyright (C) 2016 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. @@ -61,11 +66,16 @@ for FILE in `cat proprietary-files.txt | grep -v ^# | grep -v ^$`; do if [ $COUNT = "0" ]; then LINEEND="" fi - echo " \$(LOCAL_PATH)/proprietary/$FILE:$FILE$LINEEND" >> ../../../vendor/$VENDOR/$DEVICE/$DEVICE-vendor-blobs.mk + DEST=$FILE + if echo $FILE | grep ':' 2>&1 >/dev/null; then + DEST=`echo $FILE | sed 's/.*://'` + FILE=`echo $FILE | sed 's/:.*//'` + fi + echo " \$(LOCAL_PATH)/proprietary/$DEST:$FILE$LINEEND" >> ../../../vendor/$VENDOR/$DEVICE/$DEVICE-vendor-blobs.mk done (cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$DEVICE/$DEVICE-vendor.mk -# Copyright (C) 2013 The CyanogenMod Project +# Copyright (C) 2016 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. @@ -86,7 +96,7 @@ DEVICE_PACKAGE_OVERLAYS += vendor/__VENDOR__/__DEVICE__/overlay EOF (cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$DEVICE/BoardConfigVendor.mk -# Copyright (C) 2013 The CyanogenMod Project +# Copyright (C) 2016 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. diff --git a/proprietary-files.txt b/proprietary-files.txt index 4ec4901..ac24b1c 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,6 +1,6 @@ system/bin/glgps -system/lib/hw/sensors.smkd4x12.so -system/lib/hw/gps.exynos4.so +system/lib/hw/sensors.smdk4x12.so +system/lib/hw/gps.exynos4.so:system/lib/hw/gps.tegra3.so system/lib/libakm.so system/lib/libsec-ril.so system/usr/keylayout/sec_touchkey.kl -- cgit v1.1