blob: 28fd657f58e85c3df962de4a9ddb9b80b89552e7 [file] [log] [blame]
codeworkxfc4a3222013-03-25 11:24:15 +00001#!/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
sbrissend0c64b12013-06-07 08:00:58 -040017# This file is generated by device/common/generate-blob-scripts.sh - DO NOT EDIT
18
19VENDOR=samsung
20DEVICE=i605
21COMMON=t0ltecdma
22
23mkdir -p ../../../vendor/$VENDOR/$DEVICE/proprietary
24
25adb root
26adb wait-for-device
27
28echo "Pulling proprietary files..."
29for 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
35done
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
53LOCAL_PATH := vendor/__VENDOR__/__COMMON__
54
55PRODUCT_COPY_FILES += \\
56EOF
57
58LINEEND=" \\"
59COUNT=`cat proprietary-files.txt | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}`
60for 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
66done
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
84DEVICE_PACKAGE_OVERLAYS += vendor/__VENDOR__/__COMMON__/overlay
85
86\$(call inherit-product, vendor/__VENDOR__/__COMMON__/__COMMON__-vendor-blobs.mk)
87EOF
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
104EOF
105
106./../../../device/samsung/t0lte/extract-files.sh
codeworkxfc4a3222013-03-25 11:24:15 +0000107./../../../device/samsung/smdk4412-common/extract-files.sh