codeworkx | fc4a322 | 2013-03-25 11:24:15 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Copyright (C) 2013 The CyanogenMod Project |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
sbrissen | d0c64b1 | 2013-06-07 08:00:58 -0400 | [diff] [blame] | 17 | # This file is generated by device/common/generate-blob-scripts.sh - DO NOT EDIT |
| 18 | |
| 19 | VENDOR=samsung |
| 20 | DEVICE=i605 |
| 21 | COMMON=t0ltecdma |
| 22 | |
| 23 | mkdir -p ../../../vendor/$VENDOR/$DEVICE/proprietary |
| 24 | |
| 25 | adb root |
| 26 | adb wait-for-device |
| 27 | |
| 28 | echo "Pulling proprietary files..." |
| 29 | for FILE in `cat ../$DEVICE/proprietary-files.txt | grep -v ^# | grep -v ^$`; do |
| 30 | DIR=`dirname $FILE` |
| 31 | if [ ! -d ../../../vendor/$VENDOR/$COMMON/proprietary/$DIR ]; then |
| 32 | mkdir -p ../../../vendor/$VENDOR/$COMMON/proprietary/$DIR |
| 33 | fi |
| 34 | adb pull /$FILE ../../../vendor/$VENDOR/$COMMON/proprietary/$FILE |
| 35 | done |
| 36 | |
| 37 | |
| 38 | (cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$COMMON/$COMMON-vendor-blobs.mk |
| 39 | # Copyright (C) 2013 The CyanogenMod Project |
| 40 | # |
| 41 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 42 | # you may not use this file except in compliance with the License. |
| 43 | # You may obtain a copy of the License at |
| 44 | # |
| 45 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 46 | # |
| 47 | # Unless required by applicable law or agreed to in writing, software |
| 48 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 49 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 50 | # See the License for the specific language governing permissions and |
| 51 | # limitations under the License. |
| 52 | |
| 53 | LOCAL_PATH := vendor/__VENDOR__/__COMMON__ |
| 54 | |
| 55 | PRODUCT_COPY_FILES += \\ |
| 56 | EOF |
| 57 | |
| 58 | LINEEND=" \\" |
| 59 | COUNT=`cat proprietary-files.txt | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}` |
| 60 | for FILE in `cat proprietary-files.txt | grep -v ^# | grep -v ^$`; do |
| 61 | COUNT=`expr $COUNT - 1` |
| 62 | if [ $COUNT = "0" ]; then |
| 63 | LINEEND="" |
| 64 | fi |
| 65 | echo " \$(LOCAL_PATH)/proprietary/$FILE:$FILE$LINEEND" >> ../../../vendor/$VENDOR/$COMMON/$COMMON-vendor-blobs.mk |
| 66 | done |
| 67 | |
| 68 | (cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$COMMON/$COMMON-vendor.mk |
| 69 | # Copyright (C) 2013 The CyanogenMod Project |
| 70 | # |
| 71 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 72 | # you may not use this file except in compliance with the License. |
| 73 | # You may obtain a copy of the License at |
| 74 | # |
| 75 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 76 | # |
| 77 | # Unless required by applicable law or agreed to in writing, software |
| 78 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 79 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 80 | # See the License for the specific language governing permissions and |
| 81 | # limitations under the License. |
| 82 | |
| 83 | # Pick up overlay for features that depend on non-open-source files |
| 84 | DEVICE_PACKAGE_OVERLAYS += vendor/__VENDOR__/__COMMON__/overlay |
| 85 | |
| 86 | \$(call inherit-product, vendor/__VENDOR__/__COMMON__/__COMMON__-vendor-blobs.mk) |
| 87 | EOF |
| 88 | |
| 89 | (cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__VENDOR__/$VENDOR/g > ../../../vendor/$VENDOR/$COMMON/BoardConfigVendor.mk |
| 90 | # Copyright (C) 2013 The CyanogenMod Project |
| 91 | # |
| 92 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 93 | # you may not use this file except in compliance with the License. |
| 94 | # You may obtain a copy of the License at |
| 95 | # |
| 96 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 97 | # |
| 98 | # Unless required by applicable law or agreed to in writing, software |
| 99 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 100 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 101 | # See the License for the specific language governing permissions and |
| 102 | # limitations under the License. |
| 103 | |
| 104 | EOF |
| 105 | |
| 106 | ./../../../device/samsung/t0lte/extract-files.sh |
codeworkx | fc4a322 | 2013-03-25 11:24:15 +0000 | [diff] [blame] | 107 | ./../../../device/samsung/smdk4412-common/extract-files.sh |