summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-02-20 17:33:20 +1100
committerSimon Shields <keepcalm444@gmail.com>2016-02-20 17:34:33 +1100
commitdf49c15ad129636319fe201151fea4292d0c7b0a (patch)
tree87d8c46be5bb54fbbb7be94dfef24bc4ce041116
parent5339fe1e8ffc87f04ed2692c2e6d1c892f63a0c1 (diff)
downloaddevice_samsung_i9300-df49c15ad129636319fe201151fea4292d0c7b0a.zip
device_samsung_i9300-df49c15ad129636319fe201151fea4292d0c7b0a.tar.gz
device_samsung_i9300-df49c15ad129636319fe201151fea4292d0c7b0a.tar.bz2
i9300: update proprietary-files and extract-files
extract gps HAL to the expected location Change-Id: I3f391310b416889c8d99107dec53eb276823e5f7
-rwxr-xr-xextract-files.sh24
-rw-r--r--proprietary-files.txt4
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