forked from santajin/patchrom-vision
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
95 lines (71 loc) · 3.24 KB
/
makefile
File metadata and controls
95 lines (71 loc) · 3.24 KB
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
#
# Makefile for onex #
# The original zip file, MUST be specified by each product
local-zip-file := stockrom.zip
local-out-zip-file := G12_MIUI.zip
#the location for local-ota to save target-file
local-previous-target-dir := ~/workspace/ota_base/vision
# The output zip file of MIUI rom, the default is update.zip if not specified
# local-out-zip-file :=
# All apps from original ZIP, but has smali files chanded
local-modified-apps := SettingsProvider HTCAlbum HTCCamera MediaProvider
local-modified-jars := HTCExtension framework2
local-miui-modified-apps := Phone ThemeManager Mms MiuiHome Settings MiuiGallery Contacts
# All apks from MIUI
local-miui-removed-apps := LatinIME SettingsProvider Stk Bluetooth MediaProvider
#local-remove-apps := Twitter
# All apps need to be reserved from original ZIP file
local-phone-apps := ApplicationsProvider BackupRestoreConfirmation Bluetooth BrcmBluetoothServices \
CertInstaller DefaultContainerService DrmProvider \
HTC_IME HTCCamera HtcFMRadio com.htc.FMRadioWidget HTMLViewer KeyChain LMW \
NoiseField PluginManager SDCardWizard SharedStorageBackup Stk \
TrimIt UploadProvider Usage UserDictionaryProvider \
CustomizationSettingsProvider SettingsProvider HTCAlbum MediaProvider
# To include the local targets before and after zip the final ZIP file,
# and the local-targets should:
# (1) be defined after including porting.mk if using any global variable(see porting.mk)
# (2) the name should be leaded with local- to prevent any conflict with global targets
local-pre-zip := local-zip-misc
local-after-zip:= local-test
# The local targets after the zip file is generated, could include 'zip2sd' to
# deliver the zip file to phone, or to customize other actions
include $(PORT_BUILD)/porting.mk
# Target to test if full ota package will be generate
#ROM_BUILD_NUMBER := $(USER).$(shell date +%Y%m%d.%H%M%S)
#BUILD_NUMBER=`echo $(date +%Y.%m.%d)|awk 'BEGIN {FS="."} {printf("%d.%d.%d",$1%10,$2+0,$3+0)}'`
#myota: BUILD_NUMBER = 2.8.25
myota: target_files
@echo ">>> To build out target file: myota.zip ..."
$(BUILD_TARGET_FILES) $(INCLUDE_THIRDPART_APP) Miui_DesireZ_$(BUILD_NUMBER).zip
@echo "<<< build target file completed!"
# To define any local-target
local-zip-misc:
#@echo Update boot image
#cp other/boot.img $(ZIP_DIR)/boot.img
@echo Update build.prop
cp other/build.prop $(ZIP_DIR)/system/build.prop
@echo update bootanimation
rm $(ZIP_DIR)/system/bin/bootanimation
cp other/bootanimation $(ZIP_DIR)/system/bin/bootanimation
@echo add system app
cp other/system_app/* $(ZIP_DIR)/system/app/
@echo add system config
cp other/system_etc/* $(ZIP_DIR)/system/etc/
@echo add system lib
cp -rf other/system_lib/* $(ZIP_DIR)/system/lib/
@echo add spn-conf.xml
cp other/spn-conf.xml $(ZIP_DIR)/system/etc/spn-conf.xml
@echo delete redundance files
rm -f $(ZIP_DIR)/system/etc/AIC3254_REG*.*
rm -f $(ZIP_DIR)/system/etc/*.epub
rm -f $(ZIP_DIR)/system/customize/resource/*.png
rm -rf $(ZIP_DIR)/system/media/weather
rm -rf $(ZIP_DIR)/system/media/video
rm -f $(ZIP_DIR)/system/bin/su
local-test:
# rm -f $(local-out-zip-file)
# cp .build/$(local-out-zip-file) .
@echo push $(OUT_ZIP) to phone sdcard
adb shell mount sdcard
adb shell rm -f /sdcard/update.zip
adb push out/update.zip /sdcard/update.zip