Espen Fjellvær Olsen | c1024e8 | 2013-01-13 20:54:06 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Copyright (C) 2012 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 | |
| 17 | # This file is generated by device/common/generate-blob-scripts.sh - DO NOT EDIT |
| 18 | |
| 19 | VENDOR=samsung |
| 20 | COMMON=smdk4412-common |
| 21 | COMMONOUTDIR=vendor/$VENDOR/$COMMON |
| 22 | COMMONBASE=../../../$COMMONOUTDIR/proprietary |
| 23 | COMMONMAKEFILE=../../../$COMMONOUTDIR/common-vendor-blobs.mk |
| 24 | COMMONPROPS=../smdk4412-common/proprietary-files.txt |
| 25 | |
| 26 | mkdir -p ../../../vendor/$VENDOR/$COMMON/proprietary |
| 27 | |
Espen Fjellvær Olsen | d3a7699 | 2013-01-17 16:21:50 +0100 | [diff] [blame] | 28 | adb root |
| 29 | adb wait-for-device |
Espen Fjellvær Olsen | c1024e8 | 2013-01-13 20:54:06 +0100 | [diff] [blame] | 30 | |
| 31 | echo "Pulling common files..." |
| 32 | for FILE in `cat $COMMONPROPS | grep -v ^# | grep -v ^$`; do |
| 33 | DIR=`dirname $FILE` |
| 34 | if [ ! -d $COMMONBASE/$DIR ]; then |
| 35 | mkdir -p $COMMONBASE/$DIR |
| 36 | fi |
Espen Fjellvær Olsen | d3a7699 | 2013-01-17 16:21:50 +0100 | [diff] [blame] | 37 | adb pull /$FILE $COMMONBASE/$FILE |
Espen Fjellvær Olsen | c1024e8 | 2013-01-13 20:54:06 +0100 | [diff] [blame] | 38 | done |
| 39 | |
| 40 | |
| 41 | (cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__VENDOR__/$VENDOR/g > $COMMONMAKEFILE |
| 42 | # Copyright (C) 2012 The CyanogenMod Project |
| 43 | # |
| 44 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 45 | # you may not use this file except in compliance with the License. |
| 46 | # You may obtain a copy of the License at |
| 47 | # |
| 48 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 49 | # |
| 50 | # Unless required by applicable law or agreed to in writing, software |
| 51 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 52 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 53 | # See the License for the specific language governing permissions and |
| 54 | # limitations under the License. |
| 55 | |
| 56 | LOCAL_PATH := vendor/samsung/smdk4412-common |
| 57 | |
| 58 | PRODUCT_PACKAGES += \\ |
| 59 | libTVOut \\ |
| 60 | libUMP \\ |
codeworkx | 4bfa6df | 2013-02-24 11:56:42 +0000 | [diff] [blame] | 61 | libfimc |
Espen Fjellvær Olsen | c1024e8 | 2013-01-13 20:54:06 +0100 | [diff] [blame] | 62 | |
| 63 | PRODUCT_COPY_FILES += \\ |
codeworkx | 734f00f | 2013-02-17 15:29:45 +0000 | [diff] [blame] | 64 | \$(LOCAL_PATH)/proprietary/sbin/cbd:root/sbin/cbd |
| 65 | |
| 66 | PRODUCT_COPY_FILES += \\ |
Espen Fjellvær Olsen | c1024e8 | 2013-01-13 20:54:06 +0100 | [diff] [blame] | 67 | EOF |
| 68 | |
| 69 | LINEEND=" \\" |
| 70 | COUNT=`cat $COMMONPROPS | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}` |
| 71 | for FILE in `cat $COMMONPROPS | grep -v ^# | grep -v ^$`; do |
| 72 | COUNT=`expr $COUNT - 1` |
| 73 | if [ $COUNT = "0" ]; then |
| 74 | LINEEND="" |
| 75 | fi |
codeworkx | f20493a | 2013-02-09 15:12:12 +0000 | [diff] [blame] | 76 | echo " \$(LOCAL_PATH)/proprietary/$FILE:$FILE$LINEEND" >> $COMMONMAKEFILE |
Espen Fjellvær Olsen | c1024e8 | 2013-01-13 20:54:06 +0100 | [diff] [blame] | 77 | done |
| 78 | |
| 79 | (cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__VENDOR__/$VENDOR/g > $COMMONBASE/Android.mk |
| 80 | # Copyright (C) 2012 The CyanogenMod Project |
| 81 | # |
| 82 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 83 | # you may not use this file except in compliance with the License. |
| 84 | # You may obtain a copy of the License at |
| 85 | # |
| 86 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 87 | # |
| 88 | # Unless required by applicable law or agreed to in writing, software |
| 89 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 90 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 91 | # See the License for the specific language governing permissions and |
| 92 | # limitations under the License. |
| 93 | |
| 94 | LOCAL_PATH := \$(call my-dir) |
| 95 | |
Steve Kondik | 76195f7 | 2013-04-07 23:49:00 -0700 | [diff] [blame] | 96 | ifneq (\$(filter i9300 i9305 n7100 n8000 n8013 t0lte t0lteatt t0ltetmo i605 l900 r950,\$(TARGET_DEVICE)),) |
Espen Fjellvær Olsen | c1024e8 | 2013-01-13 20:54:06 +0100 | [diff] [blame] | 97 | |
| 98 | include \$(CLEAR_VARS) |
| 99 | LOCAL_MODULE := libTVOut |
| 100 | LOCAL_MODULE_OWNER := samsung |
| 101 | LOCAL_SRC_FILES := system/lib/libTVOut.so |
| 102 | LOCAL_MODULE_TAGS := optional |
| 103 | LOCAL_MODULE_SUFFIX := .so |
| 104 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 105 | LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib |
| 106 | include \$(BUILD_PREBUILT) |
| 107 | |
| 108 | include \$(CLEAR_VARS) |
| 109 | LOCAL_MODULE := libUMP |
| 110 | LOCAL_MODULE_OWNER := samsung |
| 111 | LOCAL_SRC_FILES := system/lib/libUMP.so |
| 112 | LOCAL_MODULE_TAGS := optional |
| 113 | LOCAL_MODULE_SUFFIX := .so |
| 114 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 115 | LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib |
| 116 | include \$(BUILD_PREBUILT) |
| 117 | |
| 118 | include \$(CLEAR_VARS) |
| 119 | LOCAL_MODULE := libfimc |
| 120 | LOCAL_MODULE_OWNER := samsung |
| 121 | LOCAL_SRC_FILES := system/lib/libfimc.so |
| 122 | LOCAL_MODULE_TAGS := optional |
| 123 | LOCAL_MODULE_SUFFIX := .so |
| 124 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 125 | LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib |
| 126 | include \$(BUILD_PREBUILT) |
| 127 | |
Espen Fjellvær Olsen | c1024e8 | 2013-01-13 20:54:06 +0100 | [diff] [blame] | 128 | endif |
| 129 | |
| 130 | EOF |
| 131 | |
| 132 | (cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__VENDOR__/$VENDOR/g > ../../../$COMMONOUTDIR/common-vendor.mk |
| 133 | # Copyright (C) 2012 The CyanogenMod Project |
| 134 | # |
| 135 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 136 | # you may not use this file except in compliance with the License. |
| 137 | # You may obtain a copy of the License at |
| 138 | # |
| 139 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 140 | # |
| 141 | # Unless required by applicable law or agreed to in writing, software |
| 142 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 143 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 144 | # See the License for the specific language governing permissions and |
| 145 | # limitations under the License. |
| 146 | |
| 147 | # Pick up overlay for features that depend on non-open-source files |
| 148 | DEVICE_PACKAGE_OVERLAYS += vendor/__VENDOR__/__COMMON__/overlay |
| 149 | |
| 150 | \$(call inherit-product, vendor/__VENDOR__/__COMMON__/common-vendor-blobs.mk) |
| 151 | EOF |
| 152 | |
| 153 | (cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__VENDOR__/$VENDOR/g > ../../../$COMMONOUTDIR/BoardConfigVendor.mk |
| 154 | # Copyright (C) 2012 The CyanogenMod Project |
| 155 | # |
| 156 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 157 | # you may not use this file except in compliance with the License. |
| 158 | # You may obtain a copy of the License at |
| 159 | # |
| 160 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 161 | # |
| 162 | # Unless required by applicable law or agreed to in writing, software |
| 163 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 164 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 165 | # See the License for the specific language governing permissions and |
| 166 | # limitations under the License. |
| 167 | |
| 168 | USE_CAMERA_STUB := false |
| 169 | BOARD_USES_GENERIC_AUDIO := false |
| 170 | |
| 171 | EOF |
| 172 | |