forked from drakaz/gaosp_vendor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AndroidBoard.mk
322 lines (252 loc) · 9.03 KB
/
AndroidBoard.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
LOCAL_PATH := $(call my-dir)
# Kernel
#ifeq ($(TARGET_PREBUILT_KERNEL),)
#TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/open/boot/kernel
#endif
#TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/open/boot/kernel
file := $(INSTALLED_KERNEL_TARGET)
ALL_PREBUILT += $(file)
$(file): $(TARGET_PREBUILT_KERNEL) | $(ACP)
$(transform-prebuilt-to-target)
# Keylayouts
file := $(TARGET_OUT_KEYLAYOUT)/I7500_headset.kl
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/keylayout/I7500_headset.kl | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT_KEYLAYOUT)/I7500_keypad.kl
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/keylayout/I7500_keypad.kl | $(ACP)
$(transform-prebuilt-to-target)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := /open/keylayout/azerty.kcm
include $(BUILD_KEY_CHAR_MAP)
# Open apps
file := $(TARGET_OUT)/app/GalaxoParameters.apk
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/apps/GalaxoParameters.apk | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/app/GaospConf.apk
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/apps/GaospConf.apk | $(ACP)
$(transform-prebuilt-to-target)
# boot files
file := $(TARGET_ROOT_OUT)/init.rc
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/boot/init.rc | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_ROOT_OUT)/logo.rle
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/boot/logo.rle | $(ACP)
$(transform-prebuilt-to-target)
# bootanimation
file := $(TARGET_OUT)/media/bootanimation.zip
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/boot/bootanimation.zip | $(ACP)
$(transform-prebuilt-to-target)
# open etc
file := $(TARGET_OUT)/etc/gps.conf
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/gps.conf | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/nvram.txt
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/nvram.txt | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/vold.conf
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/vold.conf | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/gaosp.conf
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/gaosp.conf | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/wifi/wpa_supplicant.conf
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/wpa_supplicant.conf | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/fstab
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/fstab | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/bash.bashrc
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/bash.bashrc | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/gshadow
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/gshadow | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/passwd
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/passwd | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/profile
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/profile | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/shadow
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/shadow | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/group
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/group | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/shells
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/shells | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/zshrc
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/zshrc | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/terminfo/l/linux
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/terminfo/l/linux | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/terminfo/u/unknown
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/terminfo/u/unknown | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/etc/dhcpcd/dhcpcd.conf
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/etc/dhcpcd.conf | $(ACP)
$(transform-prebuilt-to-target)
# open modules
file := $(TARGET_OUT)/lib/modules/bcm4325.ko
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/modules/bcm4325.ko | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/lib/modules/dpram.ko
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/modules/dpram.ko | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/lib/modules/multipdp.ko
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/modules/multipdp.ko | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/lib/modules/ramzswap.ko
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/modules/ramzswap.ko | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/lib/modules/tun.ko
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/modules/tun.ko | $(ACP)
$(transform-prebuilt-to-target)
# open bin
file := $(TARGET_OUT)/xbin/dropbear
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/dropbear | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/xbin/dropbearkey
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/dropbearkey | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/xbin/usb-tether
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/usb-tether | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/xbin/shutdown
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/shutdown | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/bin/rc
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/rc | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/xbin/remountro
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/remountro | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/xbin/remountrw
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/remountrw | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/xbin/rmmod
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/rmmod | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/xbin/rzscontrol
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/rzscontrol | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/xbin/zsh
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/zsh | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/bin/bash
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/bash | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/bin/fbvncserver
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/fbvncserver | $(ACP)
$(transform-prebuilt-to-target)
# open lib
file := $(TARGET_OUT)/lib/librun.so
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/lib/librun.so | $(ACP)
$(transform-prebuilt-to-target)
###########
# busybox #
###########
file := $(TARGET_OUT)/xbin/busybox
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/bin/busybox | $(ACP)
$(transform-prebuilt-to-target)
links := $(shell cat $(LOCAL_PATH)/busybox.links)
exclude := nc
SYMLINKS := $(addprefix $(TARGET_OUT)/xbin/,$(filter-out $(exclude),$(notdir $(links))))
$(SYMLINKS): BUSYBOX_BINARY := busybox
$(SYMLINKS): $(TARGET_OUT)/xbin/busybox
@echo "Symlink: $@ -> $(BUSYBOX_BINARY)"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf $(BUSYBOX_BINARY) $@
ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
# We need this so that the installed files could be picked up based on the
# local module name
ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
$(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
###############
# end busybox #
###############
# Proprietary etc
file := $(TARGET_OUT)/etc/rtecdc.bin
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/etc/rtecdc.bin | $(ACP)
$(transform-prebuilt-to-target)
# Proprietary bin
file := $(TARGET_OUT)/bin/akmd2
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/bin/akmd2 | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/bin/BCM4325D1_004.002.004.0153.0156.hcd
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/bin/BCM4325D1_004.002.004.0153.0156.hcd | $(ACP)
$(transform-prebuilt-to-target)
# Proprietary lib
file := $(TARGET_OUT)/lib/libsec-ril.so
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/lib/libsec-ril.so | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/lib/hw/lights.samsung.so
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/lib/hw/lights.samsung.so | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/lib/hw/sensors.samsung.so
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/lib/hw/sensors.samsung.so | $(ACP)
$(transform-prebuilt-to-target)
file := $(TARGET_OUT)/lib/egl/egl.cfg
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/open/lib/egl.cfg | $(ACP)
$(transform-prebuilt-to-target)
# Keylayouts
file := $(TARGET_OUT)/usr/keychars/I7500_keypad.kcm.bin
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/keychars/I7500_keypad.kcm.bin | $(ACP)
$(transform-prebuilt-to-target)
# Other Files
PRODUCT_COPY_FILES += vendor/samsung/I7500/open/etc/apns-conf.xml:system/etc/apns-conf.xml \
vendor/samsung/I7500/proprietary/bin/vold:system/bin/vold