0
|
1 |
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
# All rights reserved.
|
|
3 |
# This component and the accompanying materials are made available
|
|
4 |
# under the terms of "Eclipse Public License v1.0"
|
|
5 |
# which accompanies this distribution, and is available
|
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
#
|
|
8 |
# Initial Contributors:
|
|
9 |
# Nokia Corporation - initial contribution.
|
|
10 |
#
|
|
11 |
# Contributors:
|
|
12 |
#
|
|
13 |
# Description:
|
|
14 |
#
|
|
15 |
##########################################################################################################################
|
|
16 |
##########################################################################################################################
|
|
17 |
#
|
|
18 |
# iMakerStub.pl
|
|
19 |
#
|
|
20 |
# Test stub for iMaker plugin JUnit tests.
|
|
21 |
#
|
|
22 |
# This stub is used by IMakerWrapperTest and runs one iMaker call at the time.
|
|
23 |
# File must be placed to C:\tests\ directory.
|
|
24 |
#
|
|
25 |
#
|
|
26 |
##########################################################################################################################
|
|
27 |
##########################################################################################################################
|
|
28 |
|
|
29 |
|
|
30 |
$time = localtime;
|
|
31 |
open OUTFILE, ">>out_iMakerStub.txt";
|
|
32 |
print OUTFILE "iMakerStub.pl called at $time\n";
|
|
33 |
|
|
34 |
$numArgs = $#ARGV + 1;
|
|
35 |
print OUTFILE "Number of arguments: $numArgs\n";
|
|
36 |
$testCase = $ARGV[0];
|
|
37 |
print $testCase;
|
|
38 |
print OUTFILE "Test case: $testCase\n";
|
|
39 |
|
|
40 |
print OUTFILE "Arguments:\n";
|
|
41 |
foreach $argnum (0 .. $#ARGV) {
|
|
42 |
print OUTFILE "\t$ARGV[$argnum]\n";
|
|
43 |
}
|
|
44 |
|
|
45 |
if($numArgs eq 0) {
|
|
46 |
print "
|
1
|
47 |
iMaker 10.03.01, 24-Apr-2009.
|
0
|
48 |
|
|
49 |
Print help data on documented iMaker API items; targets and variables.
|
|
50 |
Wildcards *, ? and [] can be used with % patterns.
|
|
51 |
|
|
52 |
help : Print this message.
|
|
53 |
help-% : Print help on help items matching the pattern.
|
|
54 |
help-%-list : Print a list of help items matching the pattern.
|
|
55 |
|
|
56 |
help-target : Print help on all targets (same as help-target-*).
|
|
57 |
help-target-% : Print help on targets matching the pattern.
|
|
58 |
help-target-%-wiki : Print wiki-formatted help on targets matching the pattern.
|
|
59 |
help-target-%-list : Print a list of targets matching the pattern.
|
|
60 |
|
|
61 |
help-variable : Print help on all variables (same as help-variable-*).
|
|
62 |
help-variable-% : Print help on variables matching the pattern.
|
|
63 |
help-variable-%-all : Print full help on variables matching the pattern.
|
|
64 |
help-variable-%-wiki : Print wiki-formatted help on variables matching the pattern.
|
|
65 |
help-variable-%-list : Print a list of variables matching the pattern.
|
|
66 |
help-variable-%-value : Print a list of variables with values matching the pattern.
|
|
67 |
|
|
68 |
help-config : Print a list of available configurations in the current working environment.
|
|
69 |
|
|
70 |
menu : Run interactive menu.
|
|
71 |
version : Print the iMaker version number.
|
|
72 |
|
|
73 |
For more info: http://configurationtools/imaker
|
|
74 |
";
|
|
75 |
exit(0);
|
|
76 |
}
|
|
77 |
|
|
78 |
#@options = @ARGV;
|
|
79 |
#shift @options;
|
|
80 |
|
|
81 |
# Printing simulated imaker output to wrapper
|
|
82 |
|
|
83 |
|
|
84 |
##########################################################################################################################
|
|
85 |
##########################################################################################################################
|
|
86 |
#
|
|
87 |
# Test Case: testGetConfigurationsNoConfigs
|
|
88 |
# help-config
|
|
89 |
#
|
|
90 |
##########################################################################################################################
|
|
91 |
##########################################################################################################################
|
|
92 |
if( $testCase eq "test_case=testGetConfigurationsNoConfigs" ) {
|
|
93 |
print OUTFILE "Running help, no results\n";
|
|
94 |
print "
|
|
95 |
Testing new API
|
|
96 |
|
|
97 |
|
|
98 |
Total duration: 00:01
|
|
99 |
";
|
|
100 |
|
|
101 |
exit(0); # Just to ensure that no other results are returned
|
|
102 |
|
|
103 |
}
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
##########################################################################################################################
|
|
110 |
##########################################################################################################################
|
|
111 |
#
|
|
112 |
# Test Case: all test cases except testGetConfigurationsNoConfigs
|
|
113 |
# help-config
|
|
114 |
#
|
|
115 |
##########################################################################################################################
|
|
116 |
##########################################################################################################################
|
|
117 |
if($ARGV[0] eq "help-config") {
|
|
118 |
print OUTFILE "Running help-config, full results\n";
|
|
119 |
print "
|
|
120 |
iMaker 09.14.02, 24-Apr-2009.
|
|
121 |
Finding available configuration file(s):
|
|
122 |
/epoc32/rom/config/ncp52/alvin/image_conf_alvin.mk
|
|
123 |
";
|
|
124 |
|
|
125 |
}
|
|
126 |
|
|
127 |
|
|
128 |
##########################################################################################################################
|
|
129 |
##########################################################################################################################
|
|
130 |
#
|
|
131 |
# Test Case: all test cases except testGetConfigurationsNoTargets
|
|
132 |
# help-target
|
|
133 |
#
|
|
134 |
##########################################################################################################################
|
|
135 |
##########################################################################################################################
|
|
136 |
if(($numArgs eq 3) and ($ARGV[2] =~ /alvin/ )
|
|
137 |
and ($ARGV[0] eq "help-target")) {
|
|
138 |
print OUTFILE "Running help-target, full results\n";
|
|
139 |
print "
|
|
140 |
iMaker 09.14.02, 24-Apr-2009.
|
|
141 |
----------------------------------------
|
|
142 |
all
|
|
143 |
Type : Target
|
|
144 |
Description: Create all image sections and symbol files.
|
|
145 |
----------------------------------------
|
|
146 |
clean
|
|
147 |
Type : Target
|
|
148 |
Description: Clean all target files.
|
|
149 |
----------------------------------------
|
|
150 |
core
|
|
151 |
Type : Target
|
|
152 |
Description: Create the core image (ROM,ROFS1)
|
|
153 |
----------------------------------------
|
|
154 |
core-image
|
|
155 |
Type : Target
|
|
156 |
Description: Create the core image files (rom.img, rofs1.img)
|
|
157 |
----------------------------------------
|
|
158 |
e2flash
|
|
159 |
Type : Target
|
|
160 |
Description: Create the elf2flash (flash) file.
|
|
161 |
----------------------------------------
|
|
162 |
f2image
|
|
163 |
Type : Target
|
|
164 |
Description: Revert the Symbian image file (.img) from the elf2flash (flash) file.(See CORE_FLASH,ROFS2_FLASH,ROFS3_FLASH)
|
|
165 |
----------------------------------------
|
|
166 |
flash
|
|
167 |
Type : Target
|
|
168 |
Description: Create all image sections files. Not any symbol files.
|
|
169 |
----------------------------------------
|
|
170 |
flash-all
|
|
171 |
Type : Target
|
|
172 |
Description: Create all image sections and symbol files.
|
|
173 |
----------------------------------------
|
|
174 |
help
|
|
175 |
Type : Target
|
|
176 |
Description: Print help on help targets.
|
|
177 |
----------------------------------------
|
|
178 |
help-%
|
|
179 |
Type : Target
|
|
180 |
Description: Print help on help items matching the pattern.
|
|
181 |
----------------------------------------
|
|
182 |
help-%-list
|
|
183 |
Type : Target
|
|
184 |
Description: Print a list of help items matching the pattern.
|
|
185 |
----------------------------------------
|
|
186 |
help-config
|
|
187 |
Type : Target
|
|
188 |
Description: Print a list of available configurations in the current working environment.
|
|
189 |
----------------------------------------
|
|
190 |
help-target
|
|
191 |
Type : Target
|
|
192 |
Description: Print help on all targets (same as help-target-*).
|
|
193 |
----------------------------------------
|
|
194 |
help-target-%
|
|
195 |
Type : Target
|
|
196 |
Description: Print help on targets matching the pattern.
|
|
197 |
----------------------------------------
|
|
198 |
help-target-%-list
|
|
199 |
Type : Target
|
|
200 |
Description: Print a list of targets matching the pattern.
|
|
201 |
----------------------------------------
|
|
202 |
help-target-%-wiki
|
|
203 |
Type : Target
|
|
204 |
Description: Print wiki-formatted help on targets matching the pattern.
|
|
205 |
----------------------------------------
|
|
206 |
help-variable
|
|
207 |
Type : Target
|
|
208 |
Description: Print help on all variables (same as help-variable-*).
|
|
209 |
----------------------------------------
|
|
210 |
help-variable-%
|
|
211 |
Type : Target
|
|
212 |
Description: Print help on variables matching the pattern.
|
|
213 |
----------------------------------------
|
|
214 |
help-variable-%-all
|
|
215 |
Type : Target
|
|
216 |
Description: Print full help on variables matching the pattern.
|
|
217 |
----------------------------------------
|
|
218 |
help-variable-%-list
|
|
219 |
Type : Target
|
|
220 |
Description: Print a list of variables matching the pattern.
|
|
221 |
----------------------------------------
|
|
222 |
help-variable-%-value
|
|
223 |
Type : Target
|
|
224 |
Description: Print a list of variables with values matching the pattern.
|
|
225 |
----------------------------------------
|
|
226 |
help-variable-%-wiki
|
|
227 |
Type : Target
|
|
228 |
Description: Print wiki-formatted help on variables matching the pattern.
|
|
229 |
----------------------------------------
|
|
230 |
image
|
|
231 |
Type : Target
|
|
232 |
Description: Create only the image file(s) (*.img)
|
|
233 |
----------------------------------------
|
|
234 |
langpack_all
|
|
235 |
Type : Target
|
|
236 |
Description: Create all language packages.
|
|
237 |
----------------------------------------
|
|
238 |
langpack_china
|
|
239 |
Type : Target
|
|
240 |
Description: Create language packages that belong to China region.
|
|
241 |
----------------------------------------
|
|
242 |
langpack_japan
|
|
243 |
Type : Target
|
|
244 |
Description: Create language packages that belong to Japan region.
|
|
245 |
----------------------------------------
|
|
246 |
langpack_western
|
|
247 |
Type : Target
|
|
248 |
Description: Create language packages that belong to Western region.
|
|
249 |
----------------------------------------
|
|
250 |
print-%
|
|
251 |
Type : Target
|
|
252 |
Description: Print the value of the given variable to the screen.
|
|
253 |
----------------------------------------
|
|
254 |
rofs2
|
|
255 |
Type : Target
|
|
256 |
Description: Create the rofs2 image
|
|
257 |
----------------------------------------
|
|
258 |
rofs2-image
|
|
259 |
Type : Target
|
|
260 |
Description: Create the rofs2 image file (rofs2.img)
|
|
261 |
----------------------------------------
|
|
262 |
rofs3
|
|
263 |
Type : Target
|
|
264 |
Description: Create the rofs3 image
|
|
265 |
----------------------------------------
|
|
266 |
rofs3-image
|
|
267 |
Type : Target
|
|
268 |
Description: Create the rofs3 image file (rofs3.img)
|
|
269 |
----------------------------------------
|
|
270 |
romsymbol
|
|
271 |
Type : Target
|
|
272 |
Description: Create the rom symbol file
|
|
273 |
----------------------------------------
|
|
274 |
step-%
|
|
275 |
Type : Target
|
|
276 |
Description: Generic target to execute any step inside the iMaker configuration. Any step (e.g. BUILD_*,CLEAN_*) can be executed with step-STEPNAME. Example: step-ROFS2PRE executes the CLEAN_ROFS2PRE and BUILD_ROFS2PRE commands.
|
|
277 |
----------------------------------------
|
|
278 |
toolinfo
|
|
279 |
Type : Target
|
|
280 |
Description: Print info about the tool
|
|
281 |
----------------------------------------
|
|
282 |
uda
|
|
283 |
Type : Target
|
|
284 |
Description: Create the User Data area (uda) image.
|
|
285 |
----------------------------------------
|
|
286 |
uda-image
|
|
287 |
Type : Target
|
|
288 |
Description: Create the User Data area (uda) image.
|
|
289 |
----------------------------------------
|
|
290 |
variant
|
|
291 |
Type : Target
|
|
292 |
Description: Create the variant image (rofs2,rofs3)
|
|
293 |
----------------------------------------
|
|
294 |
variant-image
|
|
295 |
Type : Target
|
|
296 |
Description: Create the variant image files (rofs3.img,rofs3.img)
|
|
297 |
----------------------------------------
|
|
298 |
variantrofs2
|
|
299 |
Type : Target
|
|
300 |
Description: Create an image from a variant with rofs2. Be sure to define the VARIANT_DIR.
|
|
301 |
----------------------------------------
|
|
302 |
variantrofs3
|
|
303 |
Type : Target
|
|
304 |
Description: Create an image from a customer variant folder. Be sure to define the VARIANT_DIR.
|
|
305 |
----------------------------------------
|
|
306 |
variantuda
|
|
307 |
Type : Target
|
|
308 |
Description: Create an image from a variant userdata folder. Be sure to define the VARIANT_DIR.
|
|
309 |
----------------------------------------
|
|
310 |
version
|
|
311 |
Type : Target
|
|
312 |
Description: Print the version information
|
|
313 |
";
|
|
314 |
|
|
315 |
}
|
|
316 |
|
|
317 |
##########################################################################################################################
|
|
318 |
##########################################################################################################################
|
|
319 |
#
|
|
320 |
# Test Case: all test cases except testGetConfigurationsNoConfigElements
|
|
321 |
# help-variable-*-all
|
|
322 |
#
|
|
323 |
###########################################################################################################################
|
|
324 |
##########################################################################################################################
|
|
325 |
if(($numArgs eq 3) and ($ARGV[2] =~ /alvin/ )
|
|
326 |
and ($ARGV[0] eq "help-variable-*-all")) {
|
|
327 |
print OUTFILE "Running help-variable-*-all, giving full list\n";
|
|
328 |
print "
|
|
329 |
iMaker 09.14.02, 24-Apr-2009.
|
|
330 |
----------------------------------------
|
|
331 |
BLDROBY = `'
|
|
332 |
Type : Variable
|
|
333 |
Description: For passing extra oby files (from command line) to the buildrom.pl
|
|
334 |
Values : (string)
|
|
335 |
----------------------------------------
|
|
336 |
BLDROM_OPT = `-loglevel1 -v -nosymbols -D_IMAGE_TYPE_RND'
|
|
337 |
Type : Variable
|
|
338 |
Description: The default buildrom.pl options
|
|
339 |
Values : (string)
|
|
340 |
----------------------------------------
|
|
341 |
BLDROPT = `'
|
|
342 |
Type : Variable
|
|
343 |
Description: For passing extra parameters (from command line) to the buildrom.pl
|
|
344 |
Values : (string)
|
|
345 |
----------------------------------------
|
|
346 |
CONFIGROOT = `/epoc32/rom/config'
|
|
347 |
Type : Variable
|
|
348 |
Description: Define the default configuration root directory.
|
|
349 |
Values : (string)
|
|
350 |
----------------------------------------
|
|
351 |
CORE_CDPROMFILE = `/epoc32/rombuild/odpcoderomfiles.txt'
|
|
352 |
Type : Variable
|
|
353 |
Description: The name of the core Code Demand Paging rom file (Code paging).
|
|
354 |
Values : (string)
|
|
355 |
----------------------------------------
|
|
356 |
CORE_DIR = `/epoc32/rombuild/alvin/core'
|
|
357 |
Type : Variable
|
|
358 |
Description: The working directory, when creating core image
|
|
359 |
Values : (string)
|
|
360 |
----------------------------------------
|
|
361 |
CORE_FLASH = `/epoc32/rombuild/alvin/alvin_5230_rnd.fpsx'
|
|
362 |
Type : Variable
|
|
363 |
Description: The name of the flashable core image.
|
|
364 |
Values : (string)
|
|
365 |
----------------------------------------
|
|
366 |
CORE_FWIDFILE = `/epoc32/rombuild/alvin/core/alvin_5230_rnd_core_fwid.txt'
|
|
367 |
Type : Variable
|
|
368 |
Description: The (generated) _core_fwid.txt file name.
|
|
369 |
Values : (string)
|
|
370 |
----------------------------------------
|
|
371 |
CORE_IMEISVFILE = `/epoc32/rombuild/alvin/core/alvin_5230_rnd_core_imeisv.txt'
|
|
372 |
Type : Variable
|
|
373 |
Description: The (generated) _core_imeisv.txt file name.
|
|
374 |
Values : (string)
|
|
375 |
----------------------------------------
|
|
376 |
CORE_IMEISVINFO = `00'
|
|
377 |
Type : Variable
|
|
378 |
Description: The content string for the imeisv.txt file.
|
|
379 |
Values : (string)
|
|
380 |
----------------------------------------
|
|
381 |
CORE_MODELFILE = `/epoc32/rombuild/alvin/core/alvin_5230_rnd_core_model.txt'
|
|
382 |
Type : Variable
|
|
383 |
Description: The (generated) _core_model.txt file name.
|
|
384 |
Values : (string)
|
|
385 |
----------------------------------------
|
|
386 |
CORE_MODELINFO = `S60'
|
|
387 |
Type : Variable
|
|
388 |
Description: The content string for the model.txt file.
|
|
389 |
Values : (string)
|
|
390 |
----------------------------------------
|
|
391 |
CORE_MSTOBY = `/epoc32/rombuild/alvin/core/alvin_5230_rnd_core_master.oby'
|
|
392 |
Type : Variable
|
|
393 |
Description: The generated master oby file name, which includes the CORE_OBY files
|
|
394 |
Values : (string)
|
|
395 |
----------------------------------------
|
|
396 |
CORE_NAME = `/epoc32/rombuild/alvin/core/alvin_5230_rnd'
|
|
397 |
Type : Variable
|
|
398 |
Description: The name of the core image
|
|
399 |
Values : (string)
|
|
400 |
----------------------------------------
|
|
401 |
CORE_NDPROMFILE = `/epoc32/rombuild/romfiles.txt'
|
|
402 |
Type : Variable
|
|
403 |
Description: The name of the core Non Demand Paging rom file.
|
|
404 |
Values : (string)
|
|
405 |
----------------------------------------
|
|
406 |
CORE_OBY = `/epoc32/rom/ncp.oby'
|
|
407 |
Type : Variable
|
|
408 |
Description: The oby file(s) included to the core image creation
|
|
409 |
Values : (string)
|
|
410 |
----------------------------------------
|
|
411 |
CORE_ODPROMFILE = `/epoc32/rombuild/odpromfiles.txt'
|
|
412 |
Type : Variable
|
|
413 |
Description: The name of the core On Demand Paging rom file (Rom paging).
|
|
414 |
Values : (string)
|
|
415 |
----------------------------------------
|
|
416 |
CORE_OPT = `-loglevel1 -v -nosymbols -D_IMAGE_TYPE_RND -D_EABI=ARMV5 -D_ASIC_VER_11 -DALVIN -DLCD_SHELL'
|
|
417 |
Type : Variable
|
|
418 |
Description: The core specific buildrom options
|
|
419 |
Values : (string)
|
|
420 |
----------------------------------------
|
|
421 |
CORE_PLATFILE = `/epoc32/rombuild/alvin/core/alvin_5230_rnd_core_platform.txt'
|
|
422 |
Type : Variable
|
|
423 |
Description: The (generated) _core_platform.txt file name.
|
|
424 |
Values : (string)
|
|
425 |
----------------------------------------
|
|
426 |
CORE_PLATINFO = `SymbianOSMajorVersion=9\nSymbianOSMinorVersion=4\n'
|
|
427 |
Type : Variable
|
|
428 |
Description: The content string for the fwid.txt file.
|
|
429 |
Values : (string)
|
|
430 |
----------------------------------------
|
|
431 |
CORE_PRODFILE = `/epoc32/rombuild/alvin/core/alvin_5230_rnd_core_product.txt'
|
|
432 |
Type : Variable
|
|
433 |
Description: The (generated) _core_product.txt file name.
|
|
434 |
Values : (string)
|
|
435 |
----------------------------------------
|
|
436 |
CORE_ROFSFILE = `/epoc32/rombuild/odpcoderofsfiles.txt'
|
|
437 |
Type : Variable
|
|
438 |
Description: The name of the core rofs file.
|
|
439 |
Values : (string)
|
|
440 |
----------------------------------------
|
|
441 |
CORE_ROMVER = `0.01(0)'
|
|
442 |
Type : Variable
|
|
443 |
Description: The rom version parameter passed to the version.iby
|
|
444 |
Values : (string)
|
|
445 |
----------------------------------------
|
|
446 |
CORE_SWVERFILE = `/epoc32/rombuild/alvin/core/alvin_5230_rnd_core_sw.txt'
|
|
447 |
Type : Variable
|
|
448 |
Description: The (generated) _core_sw.txt version file name. This generated file is included in the CORE_VERIBY file.
|
|
449 |
Values : (string)
|
|
450 |
----------------------------------------
|
|
451 |
CORE_SWVERINFO = `V 52.50.2009.37.024 RND\n11-09-09\nRM-559\n(c) Nokia'
|
|
452 |
Type : Variable
|
|
453 |
Description: The content string for the sw.txt file.
|
|
454 |
Values : (string)
|
|
455 |
----------------------------------------
|
|
456 |
CORE_TIME = `11/09/2009'
|
|
457 |
Type : Variable
|
|
458 |
Description: The time defined to the core image
|
|
459 |
Values : (string)
|
|
460 |
----------------------------------------
|
|
461 |
CORE_UDEBFILE = `/epoc32/rombuild/mytraces.txt'
|
|
462 |
Type : Variable
|
|
463 |
Description: The name of the core udeb file. See USE_UDEB.
|
|
464 |
Values : (string)
|
|
465 |
----------------------------------------
|
|
466 |
CORE_VERIBY = `/epoc32/rombuild/alvin/core/alvin_5230_rnd_core_version.iby'
|
|
467 |
Type : Variable
|
|
468 |
Description: The name of the generated core *version.iby, which included version files and info
|
|
469 |
Values : (string)
|
|
470 |
----------------------------------------
|
|
471 |
CORE_VERSION = `V 52.50.2009.37.024 RND'
|
|
472 |
Type : Variable
|
|
473 |
Description: The version of the core. Used in sw.txt generation.
|
|
474 |
Values : (string)
|
|
475 |
----------------------------------------
|
|
476 |
COREPLAT_NAME = `ncp52'
|
|
477 |
Type : Variable
|
|
478 |
Description: Name of the core platform
|
|
479 |
Values : (string)
|
|
480 |
----------------------------------------
|
|
481 |
CUSTVARIANT_COMPLP = `'
|
|
482 |
Type : Variable
|
|
483 |
Description: Compatible language variant.
|
|
484 |
Values : (string)
|
|
485 |
----------------------------------------
|
|
486 |
CUSTVARIANT_DIR = `/epoc32/rom/config/ncp52/alvin/customer/'
|
|
487 |
Type : Variable
|
|
488 |
Description: Overrides the VARIANT_DIR for customer variant, see the instructions of VARIANT_CONFCP for details.
|
|
489 |
Values : (string)
|
|
490 |
----------------------------------------
|
|
491 |
FLASH_EXT = `.fpsx'
|
|
492 |
Type : Variable
|
|
493 |
Description: The flash file extension.
|
|
494 |
Values : (string)
|
|
495 |
----------------------------------------
|
|
496 |
HWID = `5230'
|
|
497 |
Type : Variable
|
|
498 |
Description: Hardware Id
|
|
499 |
Values : ([0-9]4)
|
|
500 |
----------------------------------------
|
|
501 |
HWID_LIST = `5230'
|
|
502 |
Type : Variable
|
|
503 |
Description: Possible Hardware Ids of the product.
|
|
504 |
Values : ([0-9]4)*
|
|
505 |
----------------------------------------
|
|
506 |
KEEPTEMP = `0'
|
|
507 |
Type : Variable
|
|
508 |
Description: Keep the buildrom.pl temp files (copied to the WORKDIR). E.g. tmp1.oby tmp2.oby..tmp9.oby
|
|
509 |
Values : ([0|1])
|
|
510 |
----------------------------------------
|
|
511 |
LABEL = `'
|
|
512 |
Type : Variable
|
|
513 |
Description: A label to the NAME of the image
|
|
514 |
Values : (string)
|
|
515 |
----------------------------------------
|
|
516 |
LANGPACK_CONFCP = `5250 alvin '
|
|
517 |
Type : Variable
|
|
518 |
Description: Overrides the VARIANT_CONFCP for language pack, see the instructions of VARIANT_CONFCP for details.
|
|
519 |
Values : (string)
|
|
520 |
----------------------------------------
|
|
521 |
LANGPACK_CONFML = `/epoc32/rom/config/ncp52/alvin/alvin.confml'
|
|
522 |
Type : Variable
|
|
523 |
Description: Overrides the VARIANT_CONFML for language pack, see the instructions of VARIANT_CONFML for details.
|
|
524 |
Values : (string)
|
|
525 |
----------------------------------------
|
|
526 |
LANGPACK_DEFAULTLANG = `English'
|
|
527 |
Type : Variable
|
|
528 |
Description: Default language is the language where the device will boot to (SIM language overrides this selection)
|
|
529 |
Values : (string)
|
|
530 |
----------------------------------------
|
|
531 |
LANGPACK_DIR = `/epoc32/rom/config/ncp52/alvin/language/'
|
|
532 |
Type : Variable
|
|
533 |
Description: Overrides the VARIANT_DIR for language pack, see the instructions of VARIANT_CONFCP for details.
|
|
534 |
Values : (string)
|
|
535 |
----------------------------------------
|
|
536 |
LANGPACK_ID = `01'
|
|
537 |
Type : Variable
|
|
538 |
Description: Language id used in the lang.txt generation
|
|
539 |
Values : (string)
|
|
540 |
----------------------------------------
|
|
541 |
LANGPACK_LANGS = `English'
|
|
542 |
Type : Variable
|
|
543 |
Description: Languages are the languages that are taken to the image (SC language is is defaulting to 01 in languages.txt)
|
|
544 |
Values : (string)
|
|
545 |
----------------------------------------
|
|
546 |
NAME = `alvin_5230_rnd'
|
|
547 |
Type : Variable
|
|
548 |
Description: The name of the image
|
|
549 |
Values : (string)
|
|
550 |
----------------------------------------
|
|
551 |
OPERATOR_OBY = `/epoc32/rombuild/alvin/rofs3/alvin_5230_rnd_rofs3_operator.oby'
|
|
552 |
Type : Variable
|
|
553 |
Description: The name for generated operator oby, which is a file generated based on an operator specific content.
|
|
554 |
Values : (string)
|
|
555 |
----------------------------------------
|
|
556 |
OPERATOR_OBYGEN = `geniby | /epoc32/rombuild/alvin/rofs3/alvin_5230_rnd_rofs3_operator.oby | /epoc32/rom/include/operator | *.iby | #include \"%3\" | end'
|
|
557 |
Type : Variable
|
|
558 |
Description: The name, path, rule for collecting content to the operator specific oby (E.g. operator.oby | /epoc32/rom/include/operator | *.iby collects all iby files from operator folder).
|
|
559 |
Values : (string)|(string)|(string)
|
|
560 |
----------------------------------------
|
|
561 |
PRODUCT_MODEL = `N00'
|
|
562 |
Type : Variable
|
|
563 |
Description: The model of the product
|
|
564 |
Values : (string)
|
|
565 |
----------------------------------------
|
|
566 |
PRODUCT_NAME = `alvin'
|
|
567 |
Type : Variable
|
|
568 |
Description: Name of the product
|
|
569 |
Values : (string)
|
|
570 |
----------------------------------------
|
|
571 |
PRODUCT_REVISION = `01'
|
|
572 |
Type : Variable
|
|
573 |
Description: The revision of the product.
|
|
574 |
Values : (string)
|
|
575 |
----------------------------------------
|
|
576 |
PRODVARIANT_CONFCP = `5250 alvin '
|
|
577 |
Type : Variable
|
|
578 |
Description: Overrides the VARIANT_CONFCP for product variant, see the instructions of VARIANT_CONFCP for details.
|
|
579 |
Values : (string)
|
|
580 |
----------------------------------------
|
|
581 |
PRODVARIANT_CONFML = `/epoc32/rom/config/ncp52/alvin/alvin.confml'
|
|
582 |
Type : Variable
|
|
583 |
Description: Overrides the VARIANT_CONFML for product variant, see the instructions of VARIANT_CONFML for details.
|
|
584 |
Values : (string)
|
|
585 |
----------------------------------------
|
|
586 |
PRODVARIANT_DIR = `/epoc32/rom/config/ncp52/alvin'
|
|
587 |
Type : Variable
|
|
588 |
Description: Overrides the VARIANT_DIR for product variant, see the instructions of VARIANT_CONFCP for details.
|
|
589 |
Values : (string)
|
|
590 |
----------------------------------------
|
|
591 |
ROFS2_DIR = `/epoc32/rombuild/alvin/rofs2'
|
|
592 |
Type : Variable
|
|
593 |
Description: The working directory, when creating the rofs2 image
|
|
594 |
Values : (string)
|
|
595 |
----------------------------------------
|
|
596 |
ROFS2_FLASH = `/epoc32/rombuild/alvin/rofs2/alvin_5230_rnd.rofs2.fpsx'
|
|
597 |
Type : Variable
|
|
598 |
Description: The name of the flashable rofs2 image.
|
|
599 |
Values : (string)
|
|
600 |
----------------------------------------
|
|
601 |
ROFS2_FOOTER = `'
|
|
602 |
Type : Variable
|
|
603 |
Description: This variable can contain a footer section for the rofs2 master oby.
|
|
604 |
Values : (string)
|
|
605 |
----------------------------------------
|
|
606 |
ROFS2_FWIDFILE = `/epoc32/rombuild/alvin/rofs2/alvin_5230_rnd_rofs2_fwid.txt'
|
|
607 |
Type : Variable
|
|
608 |
Description: The (generated) _rofs2_fwid.txt file name.
|
|
609 |
Values : (string)
|
|
610 |
----------------------------------------
|
|
611 |
ROFS2_FWIDINFO = `id=language\nversion=01\n'
|
|
612 |
Type : Variable
|
|
613 |
Description: The content string for the fwid2.txt file.
|
|
614 |
Values : (string)
|
|
615 |
----------------------------------------
|
|
616 |
ROFS2_HEADER = `'
|
|
617 |
Type : Variable
|
|
618 |
Description: This variable can contain a header section for the rofs2 master oby.
|
|
619 |
Values : (string)
|
|
620 |
----------------------------------------
|
|
621 |
ROFS2_MSTOBY = `/epoc32/rombuild/alvin/rofs2/alvin_5230_rnd_rofs2_master.oby'
|
|
622 |
Type : Variable
|
|
623 |
Description: The (generated) rofs2 master oby file name. This file includes the ROFS2_OBY files and other parameters
|
|
624 |
Values : (string)
|
|
625 |
----------------------------------------
|
|
626 |
ROFS2_NAME = `/epoc32/rombuild/alvin/rofs2/alvin_5230_rnd'
|
|
627 |
Type : Variable
|
|
628 |
Description: The name of the rofs2 image
|
|
629 |
Values : (string)
|
|
630 |
----------------------------------------
|
|
631 |
ROFS2_OBY = `'
|
|
632 |
Type : Variable
|
|
633 |
Description: The oby file(s) included to the rofs2 image creation
|
|
634 |
Values : (string)
|
|
635 |
----------------------------------------
|
|
636 |
ROFS2_OPT = `'
|
|
637 |
Type : Variable
|
|
638 |
Description: The rofs2 specific buildrom options
|
|
639 |
Values : (string)
|
|
640 |
----------------------------------------
|
|
641 |
ROFS2_ROMVER = `0.01(0)'
|
|
642 |
Type : Variable
|
|
643 |
Description: The rofs2 ROM version string
|
|
644 |
Values : (string)
|
|
645 |
----------------------------------------
|
|
646 |
ROFS2_TIME = `11/09/2009'
|
|
647 |
Type : Variable
|
|
648 |
Description: The time defined to the rofs2 image.
|
|
649 |
Values : (string)
|
|
650 |
----------------------------------------
|
|
651 |
ROFS2_VERIBY = `/epoc32/rombuild/alvin/rofs2/alvin_5230_rnd_rofs2_version.iby'
|
|
652 |
Type : Variable
|
|
653 |
Description: The (generated) version iby file name for the rofs2 image. This file included the version text files and other version parameters.
|
|
654 |
Values : (string)
|
|
655 |
----------------------------------------
|
|
656 |
ROFS3_CUSTSWFILE = `/epoc32/rombuild/alvin/rofs3/alvin_5230_rnd_rofs3_customersw.txt'
|
|
657 |
Type : Variable
|
|
658 |
Description: The (generated) source file name for customersw.txt.
|
|
659 |
Values : (string)
|
|
660 |
----------------------------------------
|
|
661 |
ROFS3_CUSTSWINFO = `V 52.50.2009.37.024 RND\n11-09-09'
|
|
662 |
Type : Variable
|
|
663 |
Description: The content string for the customersw.txt.
|
|
664 |
Values : (string)
|
|
665 |
----------------------------------------
|
|
666 |
ROFS3_DIR = `/epoc32/rombuild/alvin/rofs3'
|
|
667 |
Type : Variable
|
|
668 |
Description: The working directory, when creating the rofs3 image
|
|
669 |
Values : (string)
|
|
670 |
----------------------------------------
|
|
671 |
ROFS3_FLASH = `/epoc32/rombuild/alvin/rofs3/alvin_5230_rnd.rofs3.fpsx'
|
|
672 |
Type : Variable
|
|
673 |
Description: The name of the flashable rofs3 image.
|
|
674 |
Values : (string)
|
|
675 |
----------------------------------------
|
|
676 |
ROFS3_FOOTER = `'
|
|
677 |
Type : Variable
|
|
678 |
Description: This variable can contain a footer section for the rofs3 master oby.
|
|
679 |
Values : (string)
|
|
680 |
----------------------------------------
|
|
681 |
ROFS3_FWIDFILE = `/epoc32/rombuild/alvin/rofs3/alvin_5230_rnd_rofs3_fwid.txt'
|
|
682 |
Type : Variable
|
|
683 |
Description: The (generated) _rofs3_fwid.txt file name.
|
|
684 |
Values : (string)
|
|
685 |
----------------------------------------
|
|
686 |
ROFS3_FWIDINFO = `id=customer\nversion=V 52.50.2009.37.024 RND Customer\n'
|
|
687 |
Type : Variable
|
|
688 |
Description: The content string for the fwid3.txt file.
|
|
689 |
Values : (string)
|
|
690 |
----------------------------------------
|
|
691 |
ROFS3_HEADER = `'
|
|
692 |
Type : Variable
|
|
693 |
Description: This variable can contain a header section for the rofs3 master oby.
|
|
694 |
Values : (string)
|
|
695 |
----------------------------------------
|
|
696 |
ROFS3_MSTOBY = `/epoc32/rombuild/alvin/rofs3/alvin_5230_rnd_rofs3_master.oby'
|
|
697 |
Type : Variable
|
|
698 |
Description: The (generated) version iby file name for the rofs3 image. This file included the version text files and other version parameters.
|
|
699 |
Values : (string)
|
|
700 |
----------------------------------------
|
|
701 |
ROFS3_NAME = `/epoc32/rombuild/alvin/rofs3/alvin_5230_rnd'
|
|
702 |
Type : Variable
|
|
703 |
Description: The name of the rofs3 image
|
|
704 |
Values : (string)
|
|
705 |
----------------------------------------
|
|
706 |
ROFS3_OBY = `/epoc32/rombuild/alvin/rofs3/alvin_5230_rnd_rofs3_operator.oby'
|
|
707 |
Type : Variable
|
|
708 |
Description: The oby file(s) included to the rofs3 image creation
|
|
709 |
Values : (string)
|
|
710 |
----------------------------------------
|
|
711 |
ROFS3_OPT = `'
|
|
712 |
Type : Variable
|
|
713 |
Description: The rofs3 specific buildrom options
|
|
714 |
Values : (string)
|
|
715 |
----------------------------------------
|
|
716 |
ROFS3_ROMVER = `0.01(0)'
|
|
717 |
Type : Variable
|
|
718 |
Description: The rofs3 ROM version string
|
|
719 |
Values : (string)
|
|
720 |
----------------------------------------
|
|
721 |
ROFS3_TIME = `11/09/2009'
|
|
722 |
Type : Variable
|
|
723 |
Description: The time defined to the rofs3 image.
|
|
724 |
Values : (string)
|
|
725 |
----------------------------------------
|
|
726 |
ROFS3_VERIBY = `/epoc32/rombuild/alvin/rofs3/alvin_5230_rnd_rofs3_version.iby'
|
|
727 |
Type : Variable
|
|
728 |
Description: The (generated) version iby file name for the rofs3 image. This file included the version text files and other version parameters.
|
|
729 |
Values : (string)
|
|
730 |
----------------------------------------
|
|
731 |
SOS_VERSION = `9.4'
|
|
732 |
Type : Variable
|
|
733 |
Description: Symbian OS version number. The value is used in the version info generation (platform.txt).(see USE_VERGEN)
|
|
734 |
Values : ([0-9]+.[0-9]+)
|
|
735 |
----------------------------------------
|
|
736 |
SWUPD_EXT = `.swupd'
|
|
737 |
Type : Variable
|
|
738 |
Description: The software update file extension.
|
|
739 |
Values : (string)
|
|
740 |
----------------------------------------
|
|
741 |
TYPE = `rnd'
|
|
742 |
Type : Variable
|
|
743 |
Description: Defines the image type.
|
|
744 |
Values : (rnd|prd|subcon)
|
|
745 |
----------------------------------------
|
|
746 |
USE_OVERRIDE = `1'
|
|
747 |
Type : Variable
|
|
748 |
Description: Define whether the override.pm Buildrom.pl plugin is used.
|
|
749 |
Values : ([0|1])
|
|
750 |
----------------------------------------
|
|
751 |
USE_PAGING = `code'
|
|
752 |
Type : Variable
|
|
753 |
Description: Define the usage of On Demand Pagin (ODP). (E.g. 0,rom,code).
|
|
754 |
Values : ((0|rom|code[:[(1|2|3)]+]?))
|
|
755 |
----------------------------------------
|
|
756 |
USE_ROFS = `1'
|
|
757 |
Type : Variable
|
|
758 |
Description: Define the rofs sections in use. A comma separated list can be given of possible values. (E.g. 1,2,3).
|
|
759 |
Values : ([[dummy|]0..6][,[dummy|]0..6]*)
|
|
760 |
----------------------------------------
|
|
761 |
USE_ROMFILE = `1'
|
|
762 |
Type : Variable
|
|
763 |
Description: Define whether the \epoc32\rombuild\romfiles.txt is used. Files in romfiles are automatically moved to ROM, everything else in core is moved to ROFS1.
|
|
764 |
Values : ([0|1])
|
|
765 |
----------------------------------------
|
|
766 |
USE_SYMGEN = `0'
|
|
767 |
Type : Variable
|
|
768 |
Description: Generate the rom symbol file. 0=Do not generate, 1=Generate
|
|
769 |
Values : ([0|1])
|
|
770 |
----------------------------------------
|
|
771 |
USE_UDEB = `0'
|
|
772 |
Type : Variable
|
|
773 |
Description: Include the usage of the debug binary *.txt to define the list of binaries that are taken from udeb folder instead of the urel.
|
|
774 |
Values : ([0|1|full])
|
|
775 |
----------------------------------------
|
|
776 |
USE_VERGEN = `0'
|
|
777 |
Type : Variable
|
|
778 |
Description: Use iMaker version info generation
|
|
779 |
Values : ([0|1])
|
|
780 |
----------------------------------------
|
|
781 |
VARIANT_CONFCP = `5250 alvin '
|
|
782 |
Type : Variable
|
|
783 |
Description: Configure which ConfigurationTool generated configurations dirs are copied to output.
|
|
784 |
Values : (string)
|
|
785 |
----------------------------------------
|
|
786 |
VARIANT_CONFML = `/epoc32/rom/config/ncp52/alvin/alvin.confml'
|
|
787 |
Type : Variable
|
|
788 |
Description: Configure what is the ConfigurationTool input confml file, when configuration tool is ran.
|
|
789 |
Values : (string)
|
|
790 |
----------------------------------------
|
|
791 |
VARIANT_DIR = `/epoc32/rom/config/ncp52/alvin'
|
|
792 |
Type : Variable
|
|
793 |
Description: Configure the directory where to included the customer variant content. By default all content under is included to the image as it exists in the folder.
|
|
794 |
Values : (string)
|
|
795 |
----------------------------------------
|
|
796 |
WORKDIR = `/epoc32/rombuild/alvin'
|
|
797 |
Type : Variable
|
|
798 |
Description: The working directory for the image creation
|
|
799 |
Values : (string)
|
|
800 |
";
|
|
801 |
}
|
|
802 |
|
|
803 |
|
|
804 |
##########################################################################################################################
|
|
805 |
##########################################################################################################################
|
|
806 |
#
|
|
807 |
# Test Case: testGetConfigurationsNoConfigElements
|
|
808 |
# help-variable-*-all
|
|
809 |
#
|
|
810 |
###########################################################################################################################
|
|
811 |
##########################################################################################################################
|
|
812 |
if(($testCase eq "test_case=testGetConfigurationsNoConfigElements")
|
|
813 |
and ($ARGV[1] eq "help-variable-*-all")) {
|
|
814 |
print OUTFILE "Running help-variable-*-all, no results\n";
|
|
815 |
print "
|
|
816 |
Testing new API
|
|
817 |
----------------------------------------
|
|
818 |
|
|
819 |
Total duration: 00:01
|
|
820 |
|
|
821 |
";
|
|
822 |
}
|
|
823 |
|
|
824 |
##########################################################################################################################
|
|
825 |
##########################################################################################################################
|
|
826 |
#
|
|
827 |
# Test Case: testBuildImage
|
|
828 |
#
|
|
829 |
###########################################################################################################################
|
|
830 |
##########################################################################################################################
|
|
831 |
if( $testCase eq "test_case=testBuildImage" ) {
|
|
832 |
print OUTFILE "Running build image, returning builder result\n";
|
|
833 |
|
|
834 |
print "
|
|
835 |
Testing new API
|
|
836 |
Generating oby for Variant ROFS2 image creation
|
|
837 |
Generating ROFS2 version file(s)
|
|
838 |
Creating Variant ROFS2 SOS image
|
|
839 |
Generating Variant ROFS2 Elf2flash configuration
|
|
840 |
Adding BB5 Common Header(s) to Variant ROFS2
|
|
841 |
Creating flashable Variant ROFS2 image
|
|
842 |
|
|
843 |
Total duration: 01:13
|
|
844 |
|
|
845 |
";
|
|
846 |
}
|
|
847 |
|
|
848 |
##########################################################################################################################
|
|
849 |
##########################################################################################################################
|
|
850 |
#
|
|
851 |
# Test Case: testBuildImageFailed
|
|
852 |
#
|
|
853 |
###########################################################################################################################
|
|
854 |
##########################################################################################################################
|
|
855 |
if( $testCase eq "test_case=testBuildImageFailed" ) {
|
|
856 |
print OUTFILE "Running build image, returning builder result with errors\n";
|
|
857 |
|
|
858 |
print "
|
|
859 |
Testing new API
|
|
860 |
Generating oby for Variant ROFS2 image creation
|
|
861 |
Generating ROFS2 version file(s)
|
|
862 |
Creating Variant ROFS2 SOS image
|
|
863 |
Generating Variant ROFS2 Elf2flash configuration
|
|
864 |
Adding BB5 Common Header(s) to Variant ROFS2
|
|
865 |
Creating flashable Variant ROFS2 image
|
|
866 |
error: something went wrong
|
|
867 |
|
|
868 |
|
|
869 |
";
|
|
870 |
}
|
|
871 |
|
|
872 |
|
|
873 |
|
|
874 |
####################
|
|
875 |
END {
|
|
876 |
print OUTFILE "---------------------------------------------------------------\n";
|
|
877 |
close OUTFILE;
|
|
878 |
}
|
|
879 |
|
|
880 |
|
|
881 |
#EOF
|