179
|
1 |
#============================================================================
|
|
2 |
#Name : imaler_mock.py
|
|
3 |
#Part of : Helium
|
|
4 |
|
|
5 |
#Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
6 |
#All rights reserved.
|
|
7 |
#This component and the accompanying materials are made available
|
|
8 |
#under the terms of the License "Eclipse Public License v1.0"
|
|
9 |
#which accompanies this distribution, and is available
|
|
10 |
#at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
11 |
#
|
|
12 |
#Initial Contributors:
|
|
13 |
#Nokia Corporation - initial contribution.
|
|
14 |
#
|
|
15 |
#Contributors:
|
|
16 |
#
|
|
17 |
#Description:
|
|
18 |
#===============================================================================
|
|
19 |
|
|
20 |
import sys
|
|
21 |
print "iMaker 09.24.01, 10-Jun-2009."
|
|
22 |
|
|
23 |
if sys.argv.count("version"):
|
|
24 |
print ""
|
|
25 |
sys.exit(0)
|
|
26 |
|
|
27 |
# two product supported by the mock
|
|
28 |
if sys.argv.count("help-config"):
|
|
29 |
print "Finding available configuration file(s):"
|
|
30 |
print "/epoc32/rom/config/platform/product/image_conf_product.mk"
|
|
31 |
print "/epoc32/rom/config/platform/product/image_conf_product_ui.mk"
|
|
32 |
print ""
|
|
33 |
sys.exit(0)
|
|
34 |
|
|
35 |
# List of targets
|
|
36 |
if sys.argv.count("help-target-*-list"):
|
|
37 |
# start with some kind of warnings...
|
|
38 |
print "all"
|
|
39 |
print "core"
|
|
40 |
print "core-dir"
|
|
41 |
print "help-%-list"
|
|
42 |
print "langpack_01"
|
|
43 |
print ""
|
|
44 |
sys.exit(0)
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
def print_log(log):
|
|
50 |
for line in log:
|
|
51 |
print line
|
|
52 |
|
|
53 |
|
|
54 |
core_log = ["iMaker 09.42.01, 13-Oct-2009.",
|
|
55 |
"Generating content with ConE",
|
|
56 |
"* Writing tmp2.oby - result of substitution phase",
|
|
57 |
"* Writing tmp3.oby - result of reorganisation phase",
|
|
58 |
"* Writing tmp4.oby - result of Plugin stage",
|
|
59 |
"* Writing tmp5.oby - result of choosing language-specific files",
|
|
60 |
"* Writing tmp7.oby - result of problem-suppression phase",
|
|
61 |
"* Writing tmp8.oby - result of bitmap conversion phase",
|
|
62 |
"* Removing previous image and logs...",
|
|
63 |
"* Writing tmp9.oby - result of cleaning phase",
|
|
64 |
"* Writing NAME_VERSION04_rnd.oby - final OBY file",
|
|
65 |
"* Writing NAME_VERSION04_rnd.rom.oby - final OBY file",
|
|
66 |
"* Writing NAME_VERSION04_rnd.dir - ROM directory listing",
|
|
67 |
"-------------------------------------------------------------------------------",
|
|
68 |
"Total duration: 01:42 Status: OK",
|
|
69 |
"===============================================================================",
|
|
70 |
]
|
|
71 |
|
|
72 |
if sys.argv.count("core"):
|
|
73 |
print_log(core_log)
|
|
74 |
print ""
|
|
75 |
sys.exit(0)
|
|
76 |
|
|
77 |
rof2_log = ["iMaker 09.42.01, 13-Oct-2009.",
|
|
78 |
"Generating content with ConE",
|
|
79 |
"Variant target USE_VARIANTBLD = `2'",
|
|
80 |
"Variant directory VARIANT_DIR = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/temp/cone'",
|
|
81 |
"Variant config makefile VARIANT_MK = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/temp/cone/language_variant.mk'",
|
|
82 |
"Variant include directory VARIANT_INCDIR = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/temp/cone/include'",
|
|
83 |
"Variant SIS directory VARIANT_SISDIR = -",
|
|
84 |
"Variant operator cache dir VARIANT_OPCDIR = -",
|
|
85 |
"Variant widget preinst dir VARIANT_WGZDIR = -",
|
|
86 |
"Variant zip content dir VARIANT_ZIPDIR = -",
|
|
87 |
"Variant copy content dir VARIANT_CPDIR = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/temp/cone/content'",
|
|
88 |
"Variant output directory VARIANT_OUTDIR = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/variant'",
|
|
89 |
"Generating oby(s) for Variant image creation",
|
|
90 |
"Copying copy content directory",
|
|
91 |
"Generating Feature manager file(s)",
|
|
92 |
"Generating file(s) for ROFS2 image creation",
|
|
93 |
"Generating language files for Language Package image creation",
|
|
94 |
"Creating ROFS2 SOS image",
|
|
95 |
"",
|
|
96 |
"ROM_IMAGE[0] non-xip size=0x00000000 xip=0 compress=0 extension=0 composite=none uncompress=0",
|
|
97 |
"ROM_IMAGE[1] dummy1 size=0x10000000 xip=0 compress=0 extension=0 composite=none uncompress=0 ",
|
|
98 |
"ROM_IMAGE[2] rofs2 size=0x10000000 xip=0 compress=0 extension=0 composite=none uncompress=0 ",
|
|
99 |
"ROM_IMAGE[3] dummy3 size=0x10000000 xip=0 compress=0 extension=0 composite=none uncompress=0 ",
|
|
100 |
"* Writing tmp2.oby - result of substitution phase",
|
|
101 |
"* Writing tmp3.oby - result of reorganisation phase",
|
|
102 |
"* Writing tmp4.oby - result of Plugin stage",
|
|
103 |
"* Writing tmp5.oby - result of choosing language-specific files",
|
|
104 |
"Created ecom-2-0.spi",
|
|
105 |
"Created ecom-2-1.s06",
|
|
106 |
"Created ecom-2-2.s15",
|
|
107 |
"Created ecom-2-3.s07",
|
|
108 |
"Created ecom-2-4.s08",
|
|
109 |
"Created ecom-2-5.s09",
|
|
110 |
"Created ecom-2-6.s01",
|
|
111 |
"* Writing tmp6.oby - result of SPI stage",
|
|
112 |
"override.pm: ------------------------------------------------------------------",
|
|
113 |
"Handling overrides...Replace ROM_IMAGE[2] `data=\epoc32\data\Z\Resource\bootdata\languages.txt resource\Bootdata\languages.txt' with `data=I:/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/NAME_VERSION04_rnd_rofs2_languages.txt resource\Bootdata\languages.txt'",
|
|
114 |
"Replace ROM_IMAGE[2] `data=\epoc32\data\Z\Resource\versions\lang.txt resource\versions\lang.txt' with `data=I:/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/NAME_VERSION04_rnd_rofs2_lang.txt resource\versions\lang.txt'",
|
|
115 |
"Replace ROM_IMAGE[2] `data=\epoc32\data\Z\Resource\versions\langsw.txt resource\versions\langsw.txt' with `data=I:/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/NAME_VERSION04_rnd_rofs2_langsw.txt resource\versions\langsw.txt'",
|
|
116 |
"override.pm: Duration: 1 seconds ----------------------------------------------",
|
|
117 |
"obyparse.pm: ------------------------------------------------------------------",
|
|
118 |
"Finding include hierarchy from tmp1.oby",
|
|
119 |
"Found 730 different include files",
|
|
120 |
"Finding SPI input files from tmp5.oby",
|
|
121 |
"Found 103 SPI input files",
|
|
122 |
"Reading UDEB files from /epoc32/rombuild/mytraces.txt",
|
|
123 |
"Found 0 entries",
|
|
124 |
"Finding ROM-patched components",
|
|
125 |
"Found 0 ROM-patched components",
|
|
126 |
"obyparse.pm: Duration: 2 seconds ----------------------------------------------",
|
|
127 |
"* Writing tmp7.oby - result of problem-suppression phase",
|
|
128 |
"* Writing tmp8.oby - result of bitmap conversion phase",
|
|
129 |
"* Removing previous image and logs...",
|
|
130 |
"* Writing tmp9.oby - result of cleaning phase",
|
|
131 |
"* Writing NAME_VERSION04_rnd.oby - final OBY file",
|
|
132 |
"* Writing NAME_VERSION04_rnd.rofs2.oby - final OBY file",
|
|
133 |
"* Writing NAME_VERSION04_rnd.dir - ROM directory listing",
|
|
134 |
"* Executing rofsbuild -slog -loglevel1 NAME_VERSION04_rnd.rofs2.oby",
|
|
135 |
"The number of processors (4) is used as the number of concurrent jobs.",
|
|
136 |
"",
|
|
137 |
"ROFSBUILD - Rofs/Datadrive image builder V2.6.3",
|
|
138 |
"Copyright (c) 1996-2009 Nokia Corporation.",
|
|
139 |
"",
|
|
140 |
"WARNING: Unknown keyword 'OM_IMAGE[0]'. Line 31 ignored",
|
|
141 |
"WARNING: Unknown keyword '-----------------------------------------------------------'. Line 2464 ignored",
|
|
142 |
"WARNING: Unknown keyword 'OM_IMAGE[0]'. Line 31 ignored",
|
|
143 |
"WARNING: Unknown keyword '-----------------------------------------------------------'. Line 2464 ignored",
|
|
144 |
"* rofsbuild failed",
|
|
145 |
"",
|
|
146 |
"*** Error: (S:ROFS2,C:1,B:1,K:0,V:1): Command `buildrom -loglevel1 -v -nosymbols -DFEATUREVARIANT=product -fm=/epoc32/include/s60regionalfeatures.xml -es60ibymacros -elocalise -oNAME_VERSION04_rnd.img I:/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/NAME_VERSION04_rnd_rofs2_master.oby' failed (1) in `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2'.",
|
|
147 |
"===============================================================================",
|
|
148 |
"Target: langpack_01 Duration: 01:40 Status: FAILED",
|
|
149 |
"ConE output dir = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/temp/cone'",
|
|
150 |
"ConE log file = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/NAME_VERSION04_rnd_cone_langpack_01.log'",
|
|
151 |
"ROFS2 dir = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2'",
|
|
152 |
"ROFS2 symbols = `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/NAME_VERSION04_rnd.rofs2.symbol'",
|
|
153 |
"ROFS2 flash = `/output/release_flash_images/product/rnd/langpack/langpack_01/NAME_VERSION04_rnd.rofs2.fpsx'",
|
|
154 |
"-------------------------------------------------------------------------------",
|
|
155 |
"Total duration: 01:42 Status: FAILED",
|
|
156 |
"===============================================================================",
|
|
157 |
]
|
|
158 |
|
|
159 |
if sys.argv.count("langpack_01"):
|
|
160 |
print_log(rof2_log)
|
|
161 |
sys.stderr.write("*** Error: (S:ROFS2,C:1,B:1,K:0,V:1): Command `buildrom -loglevel1 -v -nosymbols -DFEATUREVARIANT=product -fm=/epoc32/include/s60regionalfeatures.xml -es60ibymacros -elocalise -oNAME_VERSION04_rnd.img /output/release_flash_images/product/rnd/langpack/langpack_01/rofs2/NAME_VERSION04_rnd_rofs2_master.oby' failed (1) in `/output/release_flash_images/product/rnd/langpack/langpack_01/rofs2'.\n")
|
|
162 |
print ""
|
|
163 |
sys.exit(1)
|
|
164 |
|
|
165 |
|
|
166 |
print ""
|
|
167 |
sys.exit(0)
|