-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
1293 lines (1202 loc) · 42.6 KB
/
Makefile
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Makefile for webOS Doctor modifications
#
# Copyright (C) 2009,2010 by Rod Whitby <rod@whitby.id.au>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
############################
## START OF DOCUMENTATION ##
############################
# The documentation has moved to the README file.
##########################
## END OF DOCUMENTATION ##
##########################
########################################
## START OF AREA FOR END USER CHANGES ##
########################################
# Uncomment the features that you wish to enable below:
# BYPASS_ACTIVATION = 1
# BYPASS_FIRST_USE_APP = 1
# ENABLE_DEVELOPER_MODE = 1
# ENABLE_BETA_FEEDS = 1
# INSTALL_SSH_AUTH_KEYS = 1
# INSTALL_WIFI_PROFILES = 1
# DISABLE_UPLOAD_DAEMON = 1
# DISABLE_UPDATE_DAEMON = 1
# DISABLE_MODEM_UPDATE = 1
# ENABLE_USB_NETWORKING = 1
# REMOVE_MODEL_CHECK = 1
# REMOVE_CARRIER_CHECK = 1
# CHANGE_KEYBOARD_TYPE = z
# ADD_EXTRA_CARRIERS = 1
# VAR_PARTITION_SIZE = 2GB
# SWAP_PARTITION_SIZE = 512MB
# EXT3FS_PARTITION_SIZE = 2GB
# Select "pre", "preplus", "pixi", "pixiplus", "pre2", "pre3", "veer", "touchpad", or "touchpadgo".
DEVICE = undefined
# Select "wr", "sprint", "verizon", "bellmo", "telcel", "att" or "wifi".
CARRIER = undefined
# Supply a different boot logo if you wish.
CUSTOM_BOOTLOGO = scripts/WebOS-Internals.tga
######################################
## END OF AREA FOR END USER CHANGES ##
######################################
######################################
## START OF AREA FOR ROD'S USE ONLY ##
######################################
ifeq (${LOGNAME},rwhitby)
# DEVICE = pre3
# CARRIER = wr
ifeq (${VERSION},1.4.5)
BYPASS_ACTIVATION = 1
BYPASS_FIRST_USE_APP = 1
ENABLE_DEVELOPER_MODE = 1
endif
ifeq (${VERSION},1.4.5.1)
BYPASS_ACTIVATION = 1
BYPASS_FIRST_USE_APP = 1
ENABLE_DEVELOPER_MODE = 1
endif
ifeq (${CARRIER},sprint)
BYPASS_ACTIVATION = 1
BYPASS_FIRST_USE_APP = 1
ENABLE_DEVELOPER_MODE = 1
endif
ifeq (${DEVICE},preplus)
BYPASS_ACTIVATION = 1
BYPASS_FIRST_USE_APP = 1
ENABLE_DEVELOPER_MODE = 1
endif
ifeq (${DEVICE},pre2)
BYPASS_ACTIVATION = 1
endif
ifeq (${DEVICE},veer)
BYPASS_ACTIVATION = 1
endif
ifeq (${DEVICE},pre3)
EXT3FS_PARTITION_SIZE = 1GB
endif
ifeq (${DEVICE},touchpad)
EXT3FS_PARTITION_SIZE = 4GB
endif
INSTALL_SSH_AUTH_KEYS = 1
INSTALL_WIFI_PROFILES = 1
DISABLE_UPLOAD_DAEMON = 1
ENABLE_ALPHA_FEEDS = 1
ENABLE_BETA_FEEDS = 1
# EXT3FS_PARTITION_SIZE = 2GB
# DISABLE_UPDATE_DAEMON = 1
# DISABLE_MODEM_UPDATE = 1
# REMOVE_MODEL_CHECK = 1
# REMOVE_CARRIER_CHECK = 1
# REMOVE_BUILD_NAME = 1
# REMOVE_LOCATION_HOST = 1
# REMOVE_UPDATE_SITE = 1
# CUSTOM_WEBOS_TARBALL = webOS.tar
# CUSTOM_CARRIER_TARBALL = wr.tar
# CUSTOM_XML = castle.xml
# CUSTOM_BUILD_INFO = palm-build-info
# CUSTOM_WEBOS_DMSET = base
# CUSTOM_CARRIER_DMSET = a
# CUSTOM_MODEL_CHECK = P100EWW
# CUSTOM_CARRIER_CHECK = Sprint
# CUSTOM_BOOTLOGO = scripts/WebOS-Internals.tga
# CUSTOM_LOCATION_HOST =
# CUSTOM_UPDATE_SITE =
# EXTRA_ROOTFS_IPKGS = flash flash-mini-adapter flame
# EXTRA_ROOTFS_TARBALL = flash.tar
# DELETE_ROOTFS_IPKGS = flash flash-mini-adapter flame
# CUSTOM_DEVICETYPE = castle
# CUSTOM_BOOTLOADER = boot.bin
# CUSTOM_INSTALLER = nova-installer-image-castle.uImage
# CUSTOM_KERNEL_DIR = rootfs
# CUSTOM_ROOTFS = nova-cust-image-castle.rootfs.tar.gz
endif
####################################
## END OF AREA FOR ROD'S USE ONLY ##
####################################
##############################################################################
## DO NOT MODIFY ANYTHING PAST THIS POINT, UNLESS YOU ARE A MAKEFILE EXPERT ##
##############################################################################
CARRIER_TARBALL = ${CARRIER}.tar
# Latest supported version is:
# VERSION = 2.2.0
ifeq (${DEVICE},pre)
CODENAME = castle
NVRAM_PARTITION=mmcblk0p1
BOOT_PARTITION=mmcblk0p2
ifeq (${CARRIER},wr)
MODEL = p100ueu
VERSION = 1.4.5
ifeq (${VERSION},1.1.3)
MODEL = p100eww
endif
endif
ifeq (${CARRIER},sprint)
MODEL = p100eww
VERSION = 1.4.5
endif
ifeq (${CARRIER},bellmo)
MODEL = p100eww
VERSION = 1.4.5
endif
ifeq (${CARRIER},telcel)
MODEL = p100eww
VERSION = 1.4.0
CARRIER_TARBALL = wr.tar
endif
endif
ifeq (${DEVICE},preplus)
CODENAME = castle
NVRAM_PARTITION=mmcblk0p1
BOOT_PARTITION=mmcblk0p2
ifeq (${CARRIER},wr)
MODEL = p101ueu
VERSION = 2.1.0
CARRIER_TARBALL = wr-castle-plus.tar
endif
ifeq (${CARRIER},verizon)
MODEL = p101eww
VERSION = 1.4.5.1
DOCTOR = webosdoctor${MODEL}${CARRIER}wireless-${VERSION}.jar
endif
ifeq (${CARRIER},att)
MODEL = p101eww
VERSION = 1.4.5
endif
endif
ifeq (${DEVICE},pixi)
CODENAME = pixie
NVRAM_PARTITION=mmcblk0p1
BOOT_PARTITION=mmcblk0p2
ifeq (${CARRIER},sprint)
MODEL = p200eww
VERSION = 1.4.5
ifeq (${VERSION},1.3.5.1)
MODEL = p120eww
endif
endif
endif
ifeq (${DEVICE},pixiplus)
CODENAME = pixie
NVRAM_PARTITION=mmcblk0p1
BOOT_PARTITION=mmcblk0p2
ifeq (${CARRIER},wr)
MODEL = p121ewweu
VERSION = 1.4.5
endif
ifeq (${CARRIER},verizon)
MODEL = p121eww
VERSION = 1.4.5.1
DOCTOR = webosdoctor${MODEL}${CARRIER}wireless-${VERSION}.jar
endif
ifeq (${CARRIER},att)
MODEL = p121eww
VERSION = 1.4.5
endif
endif
ifeq (${DEVICE},pre2)
CODENAME = roadrunner
NVRAM_PARTITION=mmcblk0p1
BOOT_PARTITION=mmcblk0p2
ifeq (${CARRIER},wr)
MODEL = p224pre2
VERSION = 2.2.4
ifeq (${VERSION},2.1.0)
MODEL = p103ueuna
endif
ifeq (${VERSION},2.0.1)
MODEL = p102ueuna
endif
ifeq (${VERSION},2.0.0)
MODEL = p103ueu
endif
endif
ifeq (${CARRIER},verizon)
MODEL = p102eww
VERSION = 2.1.0
CARRIER_TARBALL = verizon.tar
DOCTOR = webosdoctorp102${CARRIER}wireless-${VERSION}.jar
endif
endif
ifeq (${DEVICE},pre3)
CODENAME = mantaray
NVRAM_PARTITION=mmcblk0p13
BOOT_PARTITION=mmcblk0p14
ifeq (${CARRIER},wr)
MODEL = p224manta
VERSION = 2.2.4
endif
ifeq (${CARRIER},att)
MODEL = p224manta
VERSION = 2.2.4
endif
ifeq (${CARRIER},verizon)
MODEL = p224manta
VERSION = 2.2.4
CARRIER_TARBALL = verizon-world.tar
endif
endif
ifeq (${DEVICE},veer)
CODENAME = broadway
NVRAM_PARTITION=mmcblk0p13
BOOT_PARTITION=mmcblk0p14
ifeq (${CARRIER},wr)
MODEL = p160una
VERSION = 2.1.1
endif
ifeq (${CARRIER},att)
MODEL = p160una
VERSION = 2.1.2
endif
endif
ifeq (${DEVICE},touchpad)
CODENAME = topaz
NVRAM_PARTITION=mmcblk0p12
BOOT_PARTITION=mmcblk0p13
MODEL = p305hstnh
VERSION = 3.0.5
ifeq (${CARRIER},wifi)
CARRIER_TARBALL = hp.tar
endif
ifeq (${CARRIER},att)
CARRIER_TARBALL = att.tar
endif
endif
ifeq (${DEVICE},touchpadgo)
CODENAME = opal
CUSTOM_DEVICETYPE=opal
NVRAM_PARTITION=mmcblk0p12
BOOT_PARTITION=mmcblk0p13
ifeq (${CARRIER},wifi)
MODEL = opal
VERSION = 3.0.x
CARRIER_TARBALL = hp.tar
endif
ifeq (${CARRIER},wr)
CUSTOM_MODEL_CHECK="HSTNH-I31C,HSTNH-I32C,HSTNH-I33C"
CUSTOM_CARRIER_CHECK="ROW,ATT"
MODEL = opal3g
VERSION = 3.0.3
CARRIER_TARBALL = att.tar
endif
ifeq (${CARRIER},att)
CUSTOM_MODEL_CHECK="HSTNH-I32C,HSTNH-I33C"
CUSTOM_CARRIER_CHECK="ROW,ATT"
MODEL = opal3g
VERSION = 3.0.4
CARRIER_TARBALL = att.tar
endif
endif
ifndef DOCTOR
DOCTOR = webosdoctor${MODEL}${CARRIER}-${VERSION}.jar
ifeq (${CARRIER},wr)
DOCTOR = webosdoctor${MODEL}-${CARRIER}-${VERSION}.jar
endif
ifeq (${CARRIER},wifi)
DOCTOR = webosdoctor${MODEL}${CARRIER}-${VERSION}.jar
endif
endif
ifndef AMBULANCE
AMBULANCE = ${DOCTOR}
endif
PATIENT = ${DEVICE}-${MODEL}-${CARRIER}-${VERSION}
ifeq (${PATCH_DOCTOR},1)
CLASSES = com/palm/nova/installer/recoverytool/MainFlasher
DOCTOR_PATCHES = flasher-disable-everything.patch
endif
OLDIPKGS = com.palm.app.firstuse palmbuildinfo
OLDDIRS = ./boot ./lib/modules
DELIPKGS = ${DELETE_ROOTFS_IPKGS}
NEWIPKGS = ${OLDIPKGS} ${EXTRA_ROOTFS_IPKGS}
NEWDIRS = ${OLDDIRS} ./var/luna/preferences ./var/gadget ./var/home/root ./var/preferences ./var/palm/data
ifeq (${ADD_EXTRA_CARRIERS},1)
OLDIPKGS += pmcarrierdb
endif
ifeq (${DISABLE_UPDATE_DAEMON},1)
OLDIPKGS += updatedaemon omadm
endif
ifeq (${DISABLE_UPLOAD_DAEMON},1)
OLDIPKGS += uploadd contextupload rdxd
endif
ifeq (CYGWIN,$(findstring CYGWIN,$(shell uname -s)))
ERR = $(error Using Cygwin on Windows is not a valid MetaDoctor option. See the Wiki page and use WUBI instead.)
endif
ifeq ($(shell uname -s),Darwin)
MD5SUM = md5 -r
TAR = gnutar
export COPYFILE_DISABLE=true
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
ifeq (${PATCH_DOCTOR},1)
JAD = build/tools/jad-macosx/jad
endif
else
MD5SUM = md5sum
TAR = tar
ifeq (${PATCH_DOCTOR},1)
JAD = build/tools/jad-linux/jad
endif
endif
JODE= downloads/jode-1.1.2-pre1.jar
.PHONY: help
help:
@echo
@echo "You can find documentation of your available options in the Makefile."
@echo
.PHONY: settings
settings:
@echo "DEVICE = ${DEVICE}"
@echo "CARRIER = ${CARRIER}"
@echo "VERSION = ${VERSION}"
ifdef BYPASS_ACTIVATION
@echo "BYPASS_ACTIVATION = ${BYPASS_ACTIVATION}"
endif
ifdef BYPASS_FIRST_USE_APP
@echo "BYPASS_FIRST_USE_APP = ${BYPASS_FIRST_USE_APP}"
endif
ifdef ENABLE_DEVELOPER_MODE
@echo "ENABLE_DEVELOPER_MODE = ${ENABLE_DEVELOPER_MODE}"
endif
ifdef ENABLE_BETA_FEEDS
@echo "ENABLE_BETA_FEEDS = ${ENABLE_BETA_FEEDS}"
endif
ifdef ENABLE_ALPHA_FEEDS
@echo "ENABLE_ALPHA_FEEDS = ${ENABLE_ALPHA_FEEDS}"
endif
ifdef INSTALL_SSH_AUTH_KEYS
@echo "INSTALL_SSH_AUTH_KEYS = ${INSTALL_SSH_AUTH_KEYS}"
endif
ifdef INSTALL_WIFI_PROFILES
@echo "INSTALL_WIFI_PROFILES = ${INSTALL_WIFI_PROFILES}"
endif
ifdef DISABLE_UPLOAD_DAEMON
@echo "DISABLE_UPLOAD_DAEMON = ${DISABLE_UPLOAD_DAEMON}"
endif
ifdef DISABLE_UPDATE_DAEMON
@echo "DISABLE_UPDATE_DAEMON = ${DISABLE_UPDATE_DAEMON}"
endif
ifdef DISABLE_MODEM_UPDATE
@echo "DISABLE_MODEM_UPDATE = ${DISABLE_MODEM_UPDATE}"
endif
ifdef ENABLE_USB_NETWORKING
@echo "ENABLE_USB_NETWORKING = ${ENABLE_USB_NETWORKING}"
endif
ifdef REMOVE_MODEL_CHECK
@echo "REMOVE_MODEL_CHECK = ${REMOVE_MODEL_CHECK}"
endif
ifdef REMOVE_CARRIER_CHECK
@echo "REMOVE_CARRIER_CHECK = ${REMOVE_CARRIER_CHECK}"
endif
ifdef REMOVE_BUILD_NAME
@echo "REMOVE_BUILD_NAME = ${REMOVE_BUILD_NAME}"
endif
ifdef REMOVE_LOCATION_HOST
@echo "REMOVE_LOCATION_HOST = ${REMOVE_LOCATION_HOST}"
endif
ifdef REMOVE_UPDATE_SITE
@echo "REMOVE_UPDATE_SITE = ${REMOVE_UPDATE_SITE}"
endif
ifdef CHANGE_KEYBOARD_TYPE
@echo "CHANGE_KEYBOARD_TYPE = ${CHANGE_KEYBOARD_TYPE}"
endif
ifdef ADD_EXTRA_CARRIERS
@echo "ADD_EXTRA_CARRIERS = ${ADD_EXTRA_CARRIERS}"
endif
ifdef VAR_PARTITION_SIZE
@echo "VAR_PARTITION_SIZE = ${VAR_PARTITION_SIZE}"
endif
ifdef SWAP_PARTITION_SIZE
@echo "SWAP_PARTITION_SIZE = ${SWAP_PARTITION_SIZE}"
endif
ifdef EXT3FS_PARTITION_SIZE
@echo "EXT3FS_PARTITION_SIZE = ${EXT3FS_PARTITION_SIZE}"
endif
ifdef CUSTOM_WEBOS_TARBALL
@echo "CUSTOM_WEBOS_TARBALL = ${CUSTOM_WEBOS_TARBALL}"
endif
ifdef CUSTOM_CARRIER_TARBALL
@echo "CUSTOM_CARRIER_TARBALL = ${CUSTOM_CARRIER_TARBALL}"
endif
ifdef EXTRA_ROOTFS_IPKGS
@echo "EXTRA_ROOTFS_IPKGS = ${EXTRA_ROOTFS_IPKGS}"
endif
ifdef EXTRA_ROOTFS_TARBALL
@echo "EXTRA_ROOTFS_TARBALL = ${EXTRA_ROOTFS_TARBALL}"
endif
ifdef DELETE_ROOTFS_IPKGS
@echo "DELETE_ROOTFS_IPKGS = ${DELETE_ROOTFS_IPKGS}"
endif
ifdef CUSTOM_XML
@echo "CUSTOM_XML = ${CUSTOM_XML}"
endif
ifdef CUSTOM_BUILD_INFO
@echo "CUSTOM_BUILD_INFO = ${CUSTOM_BUILD_INFO}"
endif
ifdef CUSTOM_WEBOS_DMSET
@echo "CUSTOM_WEBOS_DMSET = ${CUSTOM_WEBOS_DMSET}"
endif
ifdef CUSTOM_CARRIER_DMSET
@echo "CUSTOM_CARRIER_DMSET = ${CUSTOM_CARRIER_DMSET}"
endif
ifdef CUSTOM_MODEL_CHECK
@echo "CUSTOM_MODEL_CHECK = ${CUSTOM_MODEL_CHECK}"
endif
ifdef CUSTOM_CARRIER_CHECK
@echo "CUSTOM_CARRIER_CHECK = ${CUSTOM_CARRIER_CHECK}"
endif
ifdef CUSTOM_BUILD_NAME
@echo "CUSTOM_BUILD_NAME = ${CUSTOM_BUILD_NAME}"
endif
ifdef CUSTOM_LOCATION_HOST
@echo "CUSTOM_LOCATION_HOST = ${CUSTOM_LOCATION_HOST}"
endif
ifdef CUSTOM_UPDATE_SITE
@echo "CUSTOM_UPDATE_SITE = ${CUSTOM_UPDATE_SITE}"
endif
ifdef CUSTOM_BOOTLOGO
@echo "CUSTOM_BOOTLOGO = ${CUSTOM_BOOTLOGO}"
endif
ifdef CUSTOM_DEVICETYPE
@echo "CUSTOM_DEVICETYPE = ${CUSTOM_DEVICETYPE}"
endif
ifdef CUSTOM_BOOTLOADER
@echo "CUSTOM_BOOTLOADER = ${CUSTOM_BOOTLOADER}"
endif
ifdef CUSTOM_INSTALLER
@echo "CUSTOM_INSTALLER = ${CUSTOM_INSTALLER}"
endif
ifdef CUSTOM_KERNEL_DIR
@echo "CUSTOM_KERNEL_DIR = ${CUSTOM_KERNEL_DIR}"
endif
ifdef CUSTOM_ROOTFS
@echo "CUSTOM_ROOTFS = ${CUSTOM_ROOTFS}"
endif
.PHONY: all
all:
${ERR}
ifneq (${DEVICE},undefined)
ifneq (${CARRIER},undefined)
@if [ "${MODEL}" = "" ] || [ "${VERSION}" = "" ] ; then \
echo You have specified an invalid DEVICE and CARRIER combination ; exit 1 ; \
fi
${MAKE} unpack patch pack
else
@echo You must set the DEVICE and CARRIER variables ; false
endif
else
ifneq (${CARRIER},undefined)
@echo You must set the DEVICE and CARRIER variables ; false
else
${MAKE} DEVICE=pre all-wr all-sprint all-bellmo all-telcel
${MAKE} DEVICE=preplus all-wr all-verizon all-att
${MAKE} DEVICE=pixi all-sprint
${MAKE} DEVICE=pixiplus all-wr all-verizon all-att
endif
endif
.PHONY: all-%
all-%:
${ERR}
${MAKE} CARRIER=$* unpack patch pack
.PHONY: unpack-%
unpack-%:
${MAKE} CARRIER=$* unpack
.PHONY: unpack
unpack: build/${PATIENT}/.unpacked
build/${PATIENT}/.unpacked: downloads/${AMBULANCE}
rm -rf build/${PATIENT}
mkdir -p build/${PATIENT}
cp $< build/${PATIENT}/${DOCTOR}
( cd build/${PATIENT} ; \
unzip -q ${DOCTOR} META-INF/MANIFEST.MF com/* \
resources/webOS.tar resources/recoverytool.config )
ifndef REMOVE_CARRIER_CHECK
( cd build/${PATIENT} ; \
unzip -q ${DOCTOR} resources/${CARRIER_TARBALL} )
endif
ifdef CUSTOM_WEBOS_TARBALL
cp ${CUSTOM_WEBOS_TARBALL} build/${PATIENT}/resources/webOS.tar
endif
ifndef REMOVE_CARRIER_CHECK
ifdef CUSTOM_CARRIER_TARBALL
cp ${CUSTOM_CARRIER_TARBALL} build/${PATIENT}/resources/${CARRIER_TARBALL}
endif
endif
mkdir -p build/${PATIENT}/webOS
${TAR} -C build/${PATIENT}/webOS \
-f build/${PATIENT}/resources/webOS.tar -x
ifdef CUSTOM_DEVICETYPE
ifneq (${CUSTOM_DEVICETYPE},${CODENAME})
mv build/${PATIENT}/webOS/${CUSTIMAGEOLD}.rootfs.tar.gz build/${PATIENT}/webOS/${CUSTIMAGENEW}.rootfs.tar.gz
mv build/${PATIENT}/webOS/${INSTIMAGEOLD}.uImage build/${PATIENT}/webOS/${INSTIMAGENEW}.uImage
mv build/${PATIENT}/webOS/${BOOTLOADEROLD}.bin build/${PATIENT}/webOS/${BOOTLOADERNEW}.bin
mv build/${PATIENT}/webOS/${CODENAMEOLD}.xml build/${PATIENT}/webOS/${CODENAMENEW}.xml
endif
endif
ifdef CUSTOM_INSTALLER
cp ${CUSTOM_INSTALLER} build/${PATIENT}/webOS/${INSTIMAGENEW}.uImage
endif
ifdef CUSTOM_BOOTLOADER
cp ${CUSTOM_BOOTLOADER} build/${PATIENT}/webOS/${BOOTLOADERNEW}.bin
endif
ifdef CUSTOM_ROOTFS
cp ${CUSTOM_ROOTFS} build/${PATIENT}/webOS/${CUSTIMAGENEW}.rootfs.tar.gz
endif
ifdef CUSTOM_XML
cp ${CUSTOM_XML} build/${PATIENT}/webOS/${CODENAMENEW}.xml
endif
ifdef CUSTOM_BOOTLOGO
cp ${CUSTOM_BOOTLOGO} build/${PATIENT}/webOS/BootLogo.tga
endif
ifndef REMOVE_CARRIER_CHECK
mkdir -p build/${PATIENT}/carrier
${TAR} -f build/${PATIENT}/resources/${CARRIER_TARBALL} -t \
> build/${PATIENT}/carrier-file-list.txt
${TAR} -C build/${PATIENT}/carrier \
-f build/${PATIENT}/resources/${CARRIER_TARBALL} -x
endif
gunzip -f build/${PATIENT}/webOS/${CUSTIMAGENEW}.rootfs.tar.gz
mkdir -p build/${PATIENT}/rootfs
${TAR} -C build/${PATIENT}/rootfs --wildcards \
-f build/${PATIENT}/webOS/${CUSTIMAGENEW}.rootfs.tar \
-x ./usr/lib/ipkg/info
rm -f build/${PATIENT}/ipkgs-file-list.txt
for package in ${OLDIPKGS} ; do \
if [ -f build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.list ] ; then \
cat build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.list | \
sed -e 's|^|.|' >> build/${PATIENT}/ipkgs-file-list.txt ; \
fi ; \
done
${TAR} -C build/${PATIENT}/rootfs --wildcards \
-f build/${PATIENT}/webOS/${CUSTIMAGENEW}.rootfs.tar \
-x -T build/${PATIENT}/ipkgs-file-list.txt ${OLDDIRS} ./md5sums*
ifdef EXTRA_ROOTFS_TARBALL
${TAR} -C build/${PATIENT}/rootfs -f ${EXTRA_ROOTFS_TARBALL} -x
endif
ifdef CUSTOM_KERNEL_DIR
( cd ${CUSTOM_KERNEL_DIR}/boot ; tar cf - . ) | ( cd build/${PATIENT}/rootfs/boot ; tar xf - )
( cd ${CUSTOM_KERNEL_DIR}/lib/modules ; tar cf - . ) | ( cd build/${PATIENT}/rootfs/lib/modules ; tar xf - )
endif
ifdef CUSTOM_BOOTLOADER
cp ${CUSTOM_BOOTLOADER} build/${PATIENT}/rootfs/boot/boot.bin
endif
ifdef CUSTOM_BUILD_INFO
cp ${CUSTOM_BUILD_INFO} build/${PATIENT}/rootfs/etc/palm-build-info
endif
touch $@
.PHONY: patch-%
patch-%:
${ERR}
${MAKE} CARRIER=$* patch
.PHONY: patch
patch: build/${PATIENT}/.patched
build/${PATIENT}/.patched: ${JAD}
${ERR}
rm -f $@
[ -d patches/webos-${VERSION} ]
ifeq (${BYPASS_ACTIVATION},1)
( cd patches/webos-${VERSION} ; cat bypass-activation.patch ) | \
( cd build/${PATIENT}/rootfs ; patch -p1 --no-backup-if-mismatch )
endif
ifeq (${BYPASS_FIRST_USE_APP},1)
mkdir -p build/${PATIENT}/rootfs/var/luna/preferences
touch build/${PATIENT}/rootfs/var/luna/preferences/ran-first-use
touch build/${PATIENT}/rootfs/var/luna/preferences/first-use-profile-created
sed -i.orig -e 's/"visible": "false"/"visible": "true"/' \
build/${PATIENT}/rootfs/usr/palm/applications/com.palm.app.firstuse/appinfo.json
rm -f build/${PATIENT}/rootfs/usr/palm/applications/com.palm.app.firstuse/appinfo.json.orig
for f in build/${PATIENT}/rootfs/usr/palm/applications/com.palm.app.firstuse/resources/*/appinfo.json ; do \
if [ -f $$f ] ; then \
sed -i.orig -e 's/"visible": "false"/"visible": "true"/' $$f ; rm -f $$f.orig ; \
fi ; \
done
endif
ifeq (${ENABLE_DEVELOPER_MODE},1)
mkdir -p build/${PATIENT}/rootfs/var/gadget
touch build/${PATIENT}/rootfs/var/gadget/novacom_enabled
endif
ifeq (${ENABLE_BETA_FEEDS},1)
mkdir -p build/${PATIENT}/rootfs/var/preferences/org.webosinternals.preware
touch build/${PATIENT}/rootfs/var/preferences/org.webosinternals.preware/enable-beta-feeds
endif
ifeq (${ENABLE_ALPHA_FEEDS},1)
mkdir -p build/${PATIENT}/rootfs/var/preferences/org.webosinternals.preware
touch build/${PATIENT}/rootfs/var/preferences/org.webosinternals.preware/enable-alpha-feeds
endif
ifeq (${ENABLE_USB_NETWORKING},1)
mkdir -p build/${PATIENT}/rootfs/var/gadget
touch build/${PATIENT}/rootfs/var/gadget/usbnet_enabled
endif
ifeq (${DISABLE_UPDATE_DAEMON},1)
chmod -x build/${PATIENT}/rootfs/usr/bin/UpdateDaemon
chmod -x build/${PATIENT}/rootfs/usr/bin/OmaDm
endif
ifeq (${DISABLE_UPLOAD_DAEMON},1)
chmod -x build/${PATIENT}/rootfs/usr/bin/uploadd
chmod -x build/${PATIENT}/rootfs/usr/bin/contextupload
chmod -x build/${PATIENT}/rootfs/usr/bin/rdxd
endif
ifeq (${INSTALL_SSH_AUTH_KEYS},1)
mkdir -p build/${PATIENT}/rootfs/var/home/root/.ssh
chmod 700 build/${PATIENT}/rootfs/var/home/root/.ssh build/${PATIENT}/rootfs/var/home/root
@if [ -f ./config/authorized_keys ]; then \
cp ./config/authorized_keys build/${PATIENT}/rootfs/var/home/root/.ssh/authorized_keys ; \
chmod 644 build/${PATIENT}/rootfs/var/home/root/.ssh/authorized_keys ; \
elif [ -f ${HOME}/.ssh/authorized_keys ]; then \
cp ${HOME}/.ssh/authorized_keys build/${PATIENT}/rootfs/var/home/root/.ssh/authorized_keys ; \
chmod 644 build/${PATIENT}/rootfs/var/home/root/.ssh/authorized_keys ; \
else \
echo "No authorized_keys file found in ./config or ${HOME}/.ssh" ; \
fi
endif
ifeq (${INSTALL_WIFI_PROFILES},1)
mkdir -p build/${PATIENT}/rootfs/var/preferences/com.palm.wifi
@if [ -f ./config/com.palm.wifi.prefsDB.sl ]; then \
cp ./config/com.palm.wifi.prefsDB.sl build/${PATIENT}/rootfs/var/preferences/com.palm.wifi/prefsDB.sl ; \
elif [ -f ${HOME}/.ssh/com.palm.wifi.prefsDB.sl ]; then \
cp ${HOME}/.ssh/com.palm.wifi.prefsDB.sl build/${PATIENT}/rootfs/var/preferences/com.palm.wifi/prefsDB.sl ; \
else \
echo "No com.palm.wifi.prefsDB.sl file found in ./config or ${HOME}/.ssh" ; \
fi
endif
ifeq (${ADD_EXTRA_CARRIERS},1)
@if [ -d ./config/carriers ]; then \
for f in config/carriers/*.json ; do \
if [ -f $$f ]; then \
cat $$f >> build/${PATIENT}/rootfs/etc/carrierdb/carrierdb.json ; \
fi ; \
done ; \
else \
for f in patches/carriers/*.json ; do \
if [ -f $$f ]; then \
cat $$f >> build/${PATIENT}/rootfs/etc/carrierdb/carrierdb.json ; \
fi ; \
done ; \
fi
endif
for package in ${NEWIPKGS} ; do \
mv build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.md5sums build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.md5sums.old ; \
( cd build/${PATIENT}/rootfs ; \
cat ./usr/lib/ipkg/info/$$package.list | sed -e 's|^|.|' | \
xargs -I '{}' find '{}' -type f -prune -print | xargs ${MD5SUM} ) \
> build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.md5sums.new ; \
./scripts/replace-md5sums.py \
build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.md5sums.old build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.md5sums.new \
> build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.md5sums ; \
rm -f build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.md5sums.old build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.md5sums.new ; \
done
if [ -f build/${PATIENT}/rootfs/md5sums.gz ] ; then \
gunzip -c < build/${PATIENT}/rootfs/md5sums.gz > build/${PATIENT}/rootfs/md5sums ; \
fi
mv build/${PATIENT}/rootfs/md5sums build/${PATIENT}/rootfs/md5sums.old
( cd build/${PATIENT}/rootfs ; find . -type f | xargs ${MD5SUM} ) \
> build/${PATIENT}/rootfs/md5sums.new
./scripts/replace-md5sums.py build/${PATIENT}/rootfs/md5sums.old build/${PATIENT}/rootfs/md5sums.new > \
build/${PATIENT}/rootfs/md5sums
rm -f build/${PATIENT}/rootfs/md5sums.old build/${PATIENT}/rootfs/md5sums.new
ifdef VAR_PARTITION_SIZE
sed -i.orig -e '/<Volume id="var"/s|size=".*" |size="${VAR_PARTITION_SIZE}" |' build/${PATIENT}/webOS/${CODENAMENEW}.xml
rm -f build/${PATIENT}/webOS/${CODENAMENEW}.xml.orig
endif
ifdef SWAP_PARTITION_SIZE
sed -i.orig -e '/<Volume id="swap"/s|size=".*"|size="${SWAP_PARTITION_SIZE}"|' build/${PATIENT}/webOS/${CODENAMENEW}.xml
rm -f build/${PATIENT}/webOS/${CODENAMENEW}.xml.orig
endif
ifdef CUSTOM_MODEL_CHECK
sed -i.orig -e '/ApprovalMikeHash/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
echo "ApprovalMikeHash=`./scripts/encode-hash ./model.txt ${CUSTOM_MODEL_CHECK}`" >> \
build/${PATIENT}/resources/recoverytool.config
endif
ifeq (${REMOVE_MODEL_CHECK},1)
sed -i.orig -e '/ApprovalMikeHash/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
endif
ifdef CUSTOM_CARRIER_CHECK
sed -i.orig -e '/ApprovalCharlieHash/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
echo "ApprovalCharlieHash=`./scripts/encode-hash ./carrier.txt ${CUSTOM_CARRIER_CHECK}`" >> \
build/${PATIENT}/resources/recoverytool.config
endif
ifeq (${REMOVE_CARRIER_CHECK},1)
sed -i.orig -e '/ApprovalCharlieHash/d' -e '/CustomizationBuild/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
endif
ifdef CUSTOM_LOCATION_HOST
sed -i.orig -e '/ApprovalReleaseHash/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
echo "ApprovalReleaseHash=`./scripts/encode-hash ${CUSTOM_LOCATION_HOST} ${CUSTOM_LOCATION_HOST}`" >> \
build/${PATIENT}/resources/recoverytool.config
endif
ifeq (${REMOVE_LOCATION_HOST},1)
sed -i.orig -e '/ApprovalReleaseHash/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
endif
ifdef CUSTOM_BUILD_NAME
sed -i.orig -e '/ApprovalBuildName/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
echo "ApprovalBuildName=`./scripts/encode-hash ${CUSTOM_BUILD_NAME} ${CUSTOM_BUILD_NAME}`" >> \
build/${PATIENT}/resources/recoverytool.config
endif
ifeq (${REMOVE_BUILD_NAME},1)
sed -i.orig -e '/ApprovalBuildName/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
endif
ifdef CUSTOM_UPDATE_SITE
sed -i.orig -e '/SoftwareUpdateSite/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
echo "SoftwareUpdateSite=${CUSTOM_UPDATE_SITE}" >> \
build/${PATIENT}/resources/recoverytool.config
endif
ifeq (${REMOVE_UPDATE_SITE},1)
sed -i.orig -e '/SoftwareUpdateSite/d' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
endif
ifdef CUSTOM_DEVICETYPE
sed -i.orig -e 's/DeviceType=.*/DeviceType=${CUSTOM_DEVICETYPE}/' \
build/${PATIENT}/resources/recoverytool.config
rm -f build/${PATIENT}/resources/recoverytool.config.orig
endif
ifeq (${DISABLE_MODEM_UPDATE},1)
sed -i.orig -e '/ModemUpdater/d' \
build/${PATIENT}/webOS/installer.xml
rm -f build/${PATIENT}/webOS/installer.xml.orig
modem_fw_ipk=$(shell egrep '^${CODENAME}(umts|cdma)fw.*ipk' build/${PATIENT}/carrier-file-list.txt) ; \
if [ -n "$$modem_fw_ipk" ] ; then \
sed -i.orig -e "/$$modem_fw_ipk/d" \
build/${PATIENT}/carrier-file-list.txt ;\
rm -f build/${PATIENT}/carrier-file-list.txt.orig ;\
rm -f build/${PATIENT}/carrier/$$modem_fw_ipk ; \
fi
endif
ifdef CUSTOM_DEVICETYPE
sed -i.orig -e 's/target="[^"]*"/target="${CUSTOM_DEVICETYPE}"/' \
-e 's/bootfile="[^"]*"/bootfile="${BOOTLOADERNEW}.bin"/' \
build/${PATIENT}/webOS/installer.xml
rm -f build/${PATIENT}/webOS/installer.xml.orig
endif
ifdef CUSTOM_WEBOS_DMSET
sed -i.orig -e 's/DMSet token="[^"]*"/DMSet token="${CUSTOM_WEBOS_DMSET}"/' \
build/${PATIENT}/webOS/installer.xml
rm -f build/${PATIENT}/webOS/installer.xml.orig
endif
ifndef REMOVE_CARRIER_CHECK
ifdef CUSTOM_CARRIER_DMSET
sed -i.orig -e 's/DMSet token="[^"]*"/DMSet token="${CUSTOM_CARRIER_DMSET}"/' \
build/${PATIENT}/carrier/installer.xml
rm -f build/${PATIENT}/carrier/installer.xml.orig
endif
endif
ifdef EXT3FS_PARTITION_SIZE
sed -i.orig \
-e 's|<Volume id="media"|<Volume id="ext3fs" type="ext3" size="${EXT3FS_PARTITION_SIZE}" mount="/media/ext3fs"/>\
<Volume id="media"|' \
-e 's|<Mount id="media"|<Mount id="ext3fs" options="noatime,data=writeback" freq="0" passno="0"/>\
<Mount id="media"|' \
build/${PATIENT}/webOS/${CODENAMENEW}.xml
rm -f build/${PATIENT}/webOS/${CODENAMENEW}.xml.orig
endif
ifdef CHANGE_KEYBOARD_TYPE
sed -i.orig -e 's|<Section name="tokens" type="token" size=".*">|&\
<Val name="KEYoBRD" action="overwrite" value="${CHANGE_KEYBOARD_TYPE}"/>|' \
build/${PATIENT}/webOS/${CODENAMENEW}.xml
rm -f build/${PATIENT}/webOS/${CODENAMENEW}.xml.orig
endif
ifeq (${PATCH_DOCTOR},1)
[ -d patches/doctor ]
( cd build/${PATIENT} ; ../../${JAD} -b -ff -o -r -space -s java ${CLASSES:%=%.class} )
for f in ${CLASSES:%=%.java} ; do \
[ -f build/${PATIENT}/$$f ] || exit ; \
done
( cd patches/doctor ; cat ${DOCTOR_PATCHES} ) | \
( cd build/${PATIENT} ; patch -p0 --no-backup-if-mismatch )
endif
touch $@
.PHONY: pack-%
pack-%:
${MAKE} CARRIER=$* pack
.PHONY: pack
pack: build/${PATIENT}/.packed
${ERR}
CODENAMEOLD = ${CODENAME}
INSTIMAGEOLD = nova-installer-image-${CODENAMEOLD}
CUSTIMAGEOLD = nova-cust-image-${CODENAMEOLD}
BOOTLOADEROLD = boot-${CODENAMEOLD}
ifdef CUSTOM_DEVICETYPE
CODENAMENEW = ${CUSTOM_DEVICETYPE}
else
CODENAMENEW = ${CODENAMEOLD}
endif
INSTIMAGENEW = nova-installer-image-${CODENAMENEW}
CUSTIMAGENEW = nova-cust-image-${CODENAMENEW}
BOOTLOADERNEW = boot-${CODENAMENEW}
build/${PATIENT}/.packed:
${ERR}
rm -f $@
ifeq (${PATCH_DOCTOR},1)
( cd build/${PATIENT} ; javac -cp . ${CLASSES:%=%.java} )
endif
ifdef DELETE_ROOTFS_IPKGS
rm -f build/${PATIENT}/ipkgs-delete-list.txt
for package in ${DELIPKGS} ; do \
if [ -f build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.list ] ; then \
cat build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.list | \
sed -e 's|^|.|' >> build/${PATIENT}/ipkgs-delete-list.txt ; \
rm -f build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.* ; \
fi ; \
done
endif
( cd build/${PATIENT}/rootfs ; mkdir -p ${NEWDIRS} )
rm -f build/${PATIENT}/ipkgs-file-list.txt
for package in ${NEWIPKGS} ; do \
cat build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.list | \
sed -e 's|^|.|' >> build/${PATIENT}/ipkgs-file-list.txt ; \
done
if [ -f build/${PATIENT}/rootfs/md5sums.gz ] ; then \
gzip -f build/${PATIENT}/rootfs/md5sums ; \
fi
ifdef DELETE_ROOTFS_IPKGS
@echo
@echo "You can safely ignore any 'Not found in archive' errors from the following ${TAR} command."
@echo
- ${TAR} -C build/${PATIENT}/rootfs --wildcards \
-f build/${PATIENT}/webOS/${CUSTIMAGENEW}.rootfs.tar \
--delete -T build/${PATIENT}/ipkgs-delete-list.txt
@echo
@echo "You can safely ignore any 'Not found in archive' errors from the previous ${TAR} command."
@echo
endif
ifdef EXTRA_ROOTFS_IPKGS
@echo
@echo "You can safely ignore any 'Not found in archive' errors from the following ${TAR} command."
@echo
endif
- ${TAR} -C build/${PATIENT}/rootfs --wildcards \
-f build/${PATIENT}/webOS/${CUSTIMAGENEW}.rootfs.tar \
--delete -T build/${PATIENT}/ipkgs-file-list.txt \
./usr/lib/ipkg/info ${OLDDIRS} ./md5sums*
ifdef EXTRA_ROOTFS_IPKGS
@echo
@echo "You can safely ignore any 'Not found in archive' errors from the previous ${TAR} command."
@echo
endif
( cd build/${PATIENT}/rootfs ; \
${TAR} -f ../webOS/${CUSTIMAGENEW}.rootfs.tar \
--numeric-owner --owner=0 --group=0 \
--append -T ../ipkgs-file-list.txt \
./usr/lib/ipkg/info ${NEWDIRS} ./md5sums* )
gzip -f build/${PATIENT}/webOS/${CUSTIMAGENEW}.rootfs.tar
( cd build/${PATIENT}/webOS ; \
${TAR} -f ../resources/webOS.tar \
--numeric-owner --owner=0 --group=0 -h \
-c . )
sed -i.orig -e '/^Name: /d' -e '/^SHA1-Digest: /d' -e '/^ /d' -e '/^\n$$/d' \
build/${PATIENT}/META-INF/MANIFEST.MF
( cd build/${PATIENT} ; \
zip -q -d ${DOCTOR} META-INF/MANIFEST.MF META-INF/JARKEY.* ${CLASSES:%=%*.class} \
resources/webOS.tar resources/recoverytool.config )
( cd build/${PATIENT} ; \
zip -q ${DOCTOR} META-INF/MANIFEST.MF ${CLASSES:%=%*.class} \
resources/webOS.tar resources/recoverytool.config )
ifndef REMOVE_CARRIER_CHECK
( cd build/${PATIENT}/carrier ; \
${TAR} -f ../resources/${CARRIER_TARBALL} \
--numeric-owner --owner=0 --group=0 -h \
-c -T ../carrier-file-list.txt )
( cd build/${PATIENT} ; \
zip -q -d ${DOCTOR} resources/${CARRIER_TARBALL} )
( cd build/${PATIENT} ; \
zip -q ${DOCTOR} resources/${CARRIER_TARBALL} )
endif
@echo
@echo "Your custom doctor file has been created at build/${PATIENT}/${DOCTOR}"
@echo
touch $@
.PHONY: extract-ipkgs
extract-rootfs-ipkgs:
[ -d build/${PATIENT}/rootfs/usr/lib/ipkg/info ]
rm -f build/${PATIENT}/extras-file-list.txt
for package in ${EXTRA_ROOTFS_IPKGS} ; do \
if [ -f build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.list ] ; then \
( cd build/${PATIENT}/rootfs ; \
ls -1 ./usr/lib/ipkg/info/$$package.* >> ../extras-file-list.txt ) ; \
cat build/${PATIENT}/rootfs/usr/lib/ipkg/info/$$package.list | \