blob: e380cb5e8172b448ef0b357e6a1e4cd6b3a27261 [file] [log] [blame]
Espen Fjellvær Olsenc1024e82013-01-13 20:54:06 +01001#!/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
19VENDOR=samsung
20COMMON=smdk4412-common
21COMMONOUTDIR=vendor/$VENDOR/$COMMON
22COMMONBASE=../../../$COMMONOUTDIR/proprietary
23COMMONMAKEFILE=../../../$COMMONOUTDIR/common-vendor-blobs.mk
24COMMONPROPS=../smdk4412-common/proprietary-files.txt
25
26mkdir -p ../../../vendor/$VENDOR/$COMMON/proprietary
27
Espen Fjellvær Olsend3a76992013-01-17 16:21:50 +010028adb root
29adb wait-for-device
Espen Fjellvær Olsenc1024e82013-01-13 20:54:06 +010030
31echo "Pulling common files..."
32for 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 Olsend3a76992013-01-17 16:21:50 +010037 adb pull /$FILE $COMMONBASE/$FILE
Espen Fjellvær Olsenc1024e82013-01-13 20:54:06 +010038done
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
56LOCAL_PATH := vendor/samsung/smdk4412-common
57
58PRODUCT_PACKAGES += \\
59 libTVOut \\
60 libUMP \\
codeworkx4bfa6df2013-02-24 11:56:42 +000061 libfimc
Espen Fjellvær Olsenc1024e82013-01-13 20:54:06 +010062
63PRODUCT_COPY_FILES += \\
codeworkx734f00f2013-02-17 15:29:45 +000064 \$(LOCAL_PATH)/proprietary/sbin/cbd:root/sbin/cbd
65
66PRODUCT_COPY_FILES += \\
Espen Fjellvær Olsenc1024e82013-01-13 20:54:06 +010067EOF
68
69LINEEND=" \\"
70COUNT=`cat $COMMONPROPS | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}`
71for FILE in `cat $COMMONPROPS | grep -v ^# | grep -v ^$`; do
72 COUNT=`expr $COUNT - 1`
73 if [ $COUNT = "0" ]; then
74 LINEEND=""
75 fi
codeworkxf20493a2013-02-09 15:12:12 +000076 echo " \$(LOCAL_PATH)/proprietary/$FILE:$FILE$LINEEND" >> $COMMONMAKEFILE
Espen Fjellvær Olsenc1024e82013-01-13 20:54:06 +010077done
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
94LOCAL_PATH := \$(call my-dir)
95
Steve Kondik76195f72013-04-07 23:49:00 -070096ifneq (\$(filter i9300 i9305 n7100 n8000 n8013 t0lte t0lteatt t0ltetmo i605 l900 r950,\$(TARGET_DEVICE)),)
Espen Fjellvær Olsenc1024e82013-01-13 20:54:06 +010097
98include \$(CLEAR_VARS)
99LOCAL_MODULE := libTVOut
100LOCAL_MODULE_OWNER := samsung
101LOCAL_SRC_FILES := system/lib/libTVOut.so
102LOCAL_MODULE_TAGS := optional
103LOCAL_MODULE_SUFFIX := .so
104LOCAL_MODULE_CLASS := SHARED_LIBRARIES
105LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib
106include \$(BUILD_PREBUILT)
107
108include \$(CLEAR_VARS)
109LOCAL_MODULE := libUMP
110LOCAL_MODULE_OWNER := samsung
111LOCAL_SRC_FILES := system/lib/libUMP.so
112LOCAL_MODULE_TAGS := optional
113LOCAL_MODULE_SUFFIX := .so
114LOCAL_MODULE_CLASS := SHARED_LIBRARIES
115LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib
116include \$(BUILD_PREBUILT)
117
118include \$(CLEAR_VARS)
119LOCAL_MODULE := libfimc
120LOCAL_MODULE_OWNER := samsung
121LOCAL_SRC_FILES := system/lib/libfimc.so
122LOCAL_MODULE_TAGS := optional
123LOCAL_MODULE_SUFFIX := .so
124LOCAL_MODULE_CLASS := SHARED_LIBRARIES
125LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib
126include \$(BUILD_PREBUILT)
127
Espen Fjellvær Olsenc1024e82013-01-13 20:54:06 +0100128endif
129
130EOF
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
148DEVICE_PACKAGE_OVERLAYS += vendor/__VENDOR__/__COMMON__/overlay
149
150\$(call inherit-product, vendor/__VENDOR__/__COMMON__/common-vendor-blobs.mk)
151EOF
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
168USE_CAMERA_STUB := false
169BOARD_USES_GENERIC_AUDIO := false
170
171EOF
172