imakerplugin/com.nokia.s60tools.imaker.tests/tools/iMakerStub_093701.pl
changeset 0 61163b28edca
child 1 7ff23301fe22
equal deleted inserted replaced
-1:000000000000 0:61163b28edca
       
     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 "
       
    47 iMaker 09.37.01, 07-Sep-2009.
       
    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 patter
       
    59 n.
       
    60 help-target-%-list    : Print a list of targets matching the pattern.
       
    61 
       
    62 help-variable         : Print help on all variables (same as help-variable-*).
       
    63 help-variable-%       : Print help on variables matching the pattern.
       
    64 help-variable-%-all   : Print full help on variables matching the pattern.
       
    65 help-variable-%-wiki  : Print wiki-formatted help on variables matching the patt
       
    66 ern.
       
    67 help-variable-%-list  : Print a list of variables matching the pattern.
       
    68 help-variable-%-value : Print a list of variables with values matching the patte
       
    69 rn.
       
    70 
       
    71 help-config           : Print a list of available configurations in the current
       
    72 working environment.
       
    73 
       
    74 menu                  : Run interactive menu.
       
    75 version               : Print the iMaker version number.
       
    76 
       
    77 For more info: http://configurationtools/imaker
       
    78 ";
       
    79 exit(0);
       
    80 }
       
    81 
       
    82 #@options = @ARGV;
       
    83 #shift @options;
       
    84 
       
    85 # Printing simulated imaker output to wrapper
       
    86 
       
    87 
       
    88 ##########################################################################################################################
       
    89 ##########################################################################################################################
       
    90 #
       
    91 # Test Case: testGetConfigurationsNoConfigs
       
    92 # help-config
       
    93 #
       
    94 ##########################################################################################################################
       
    95 ##########################################################################################################################
       
    96 if( $testCase eq "test_case=testGetConfigurationsNoConfigs" ) {
       
    97 print OUTFILE "Running help, no results\n";
       
    98 print "
       
    99 Testing new API
       
   100 
       
   101 
       
   102 Total duration: 00:01
       
   103 ";
       
   104 
       
   105 exit(0); # Just to ensure that no other results are returned
       
   106 
       
   107 }
       
   108 
       
   109 
       
   110 
       
   111 
       
   112 
       
   113 ##########################################################################################################################
       
   114 ##########################################################################################################################
       
   115 #
       
   116 # Test Case: all test cases except testGetConfigurationsNoConfigs
       
   117 # help-config
       
   118 #
       
   119 ##########################################################################################################################
       
   120 ##########################################################################################################################
       
   121 if($ARGV[0] eq "help-config") {
       
   122 print OUTFILE "Running help-config, full results\n";
       
   123 print "
       
   124 iMaker 09.37.01, 07-Sep-2009.
       
   125 Finding available configuration file(s):
       
   126 /epoc32/rom/config/ncp77/filippa/image_conf_filippa.mk
       
   127 ";
       
   128 
       
   129 }
       
   130 
       
   131 
       
   132 ##########################################################################################################################
       
   133 ##########################################################################################################################
       
   134 #
       
   135 # Test Case: all test cases except testGetConfigurationsNoTargets
       
   136 # help-target
       
   137 #
       
   138 ##########################################################################################################################
       
   139 ##########################################################################################################################
       
   140 if(($numArgs eq 3) and ($ARGV[2] =~ /filippa/ ) 
       
   141     and ($ARGV[0] eq "help-target")) {
       
   142 print OUTFILE "Running help-target, full results\n";
       
   143 print "
       
   144 iMaker 09.37.01, 07-Sep-2009.
       
   145 ----------------------------------------
       
   146 all
       
   147 Type       : Target
       
   148 Description: Create all image sections and symbol files.
       
   149 ----------------------------------------
       
   150 clean
       
   151 Type       : Target
       
   152 Description: Clean all target files.
       
   153 ----------------------------------------
       
   154 core
       
   155 Type       : Target
       
   156 Description: Create Core (ROM & ROFS1) image.
       
   157 ----------------------------------------
       
   158 core-dir
       
   159 Type       : Target
       
   160 Description: Create directory structure for Core (ROM & ROFS1) creation.
       
   161 ----------------------------------------
       
   162 core-i2file
       
   163 Type       : Target
       
   164 Description: Extract all files from Core (ROM & ROFS1) image.
       
   165 ----------------------------------------
       
   166 core-image
       
   167 Type       : Target
       
   168 Description: Create Core (ROM & ROFS1) image (.img) file(s).
       
   169 ----------------------------------------
       
   170 core-pre
       
   171 Type       : Target
       
   172 Description: Run pre-step, create files etc. for Core (ROM & ROFS1) creation.
       
   173 ----------------------------------------
       
   174 core-symbol
       
   175 Type       : Target
       
   176 Description: Create Core (ROM & ROFS1) symbol file(s).
       
   177 ----------------------------------------
       
   178 default
       
   179 Type       : Target
       
   180 Description: Default target, uses variable TARGET_DEFAULT to get actual target(s), current default = core.
       
   181 ----------------------------------------
       
   182 e2flash
       
   183 Type       : Target
       
   184 Description: Create the elf2flash (flash) file.
       
   185 ----------------------------------------
       
   186 f2image
       
   187 Type       : Target
       
   188 Description: Revert the Symbian image file (.img) from the elf2flash (flash) file.(See CORE_FLASH,ROFS2_FLASH,ROFS3_FLASH)
       
   189 ----------------------------------------
       
   190 flash
       
   191 Type       : Target
       
   192 Description: Create all image sections files. Not any symbol files.
       
   193 ----------------------------------------
       
   194 flash-all
       
   195 Type       : Target
       
   196 Description: Create all image sections and symbol files.
       
   197 ----------------------------------------
       
   198 fota
       
   199 Type       : Target
       
   200 Description: Create the FOTA sub-image.
       
   201 ----------------------------------------
       
   202 help
       
   203 Type       : Target
       
   204 Description: Print help on help targets.
       
   205 ----------------------------------------
       
   206 help-%
       
   207 Type       : Target
       
   208 Description: Print help on help items matching the pattern.
       
   209 ----------------------------------------
       
   210 help-%-list
       
   211 Type       : Target
       
   212 Description: Print a list of help items matching the pattern.
       
   213 ----------------------------------------
       
   214 help-config
       
   215 Type       : Target
       
   216 Description: Print a list of available configurations in the current working environment.
       
   217 ----------------------------------------
       
   218 help-target
       
   219 Type       : Target
       
   220 Description: Print help on all targets (same as help-target-*).
       
   221 ----------------------------------------
       
   222 help-target-%
       
   223 Type       : Target
       
   224 Description: Print help on targets matching the pattern.
       
   225 ----------------------------------------
       
   226 help-target-%-list
       
   227 Type       : Target
       
   228 Description: Print a list of targets matching the pattern.
       
   229 ----------------------------------------
       
   230 help-target-%-wiki
       
   231 Type       : Target
       
   232 Description: Print wiki-formatted help on targets matching the pattern.
       
   233 ----------------------------------------
       
   234 help-variable
       
   235 Type       : Target
       
   236 Description: Print help on all variables (same as help-variable-*).
       
   237 ----------------------------------------
       
   238 help-variable-%
       
   239 Type       : Target
       
   240 Description: Print help on variables matching the pattern.
       
   241 ----------------------------------------
       
   242 help-variable-%-all
       
   243 Type       : Target
       
   244 Description: Print full help on variables matching the pattern.
       
   245 ----------------------------------------
       
   246 help-variable-%-list
       
   247 Type       : Target
       
   248 Description: Print a list of variables matching the pattern.
       
   249 ----------------------------------------
       
   250 help-variable-%-value
       
   251 Type       : Target
       
   252 Description: Print a list of variables with values matching the pattern.
       
   253 ----------------------------------------
       
   254 help-variable-%-wiki
       
   255 Type       : Target
       
   256 Description: Print wiki-formatted help on variables matching the pattern.
       
   257 ----------------------------------------
       
   258 image
       
   259 Type       : Target
       
   260 Description: Create only the image file(s) (*.img)
       
   261 ----------------------------------------
       
   262 langpack_all
       
   263 Type       : Target
       
   264 Description: Create all language packages.
       
   265 ----------------------------------------
       
   266 langpack_china
       
   267 Type       : Target
       
   268 Description: Create language packages that belong to China region.
       
   269 ----------------------------------------
       
   270 langpack_japan
       
   271 Type       : Target
       
   272 Description: Create language packages that belong to Japan region.
       
   273 ----------------------------------------
       
   274 langpack_western
       
   275 Type       : Target
       
   276 Description: Create language packages that belong to Western region.
       
   277 ----------------------------------------
       
   278 mmc
       
   279 Type       : Target
       
   280 Description: Create MMC/SD image.
       
   281 ----------------------------------------
       
   282 mmc-dir
       
   283 Type       : Target
       
   284 Description: Create directory structure for MMC/SD creation.
       
   285 ----------------------------------------
       
   286 mmc-image
       
   287 Type       : Target
       
   288 Description: Create MMC/SD image (.img) file.
       
   289 ----------------------------------------
       
   290 mmc-pre
       
   291 Type       : Target
       
   292 Description: Run pre-step, create files etc. for MMC/SD creation.
       
   293 ----------------------------------------
       
   294 print-%
       
   295 Type       : Target
       
   296 Description: Print the value(s) of the given variable(s). Wildcards *, ? and [..] can be used in variable names.
       
   297 ----------------------------------------
       
   298 resignsubcon
       
   299 Type       : Target
       
   300 Description: Create re-signed security binaries for subcon image creation.
       
   301 ----------------------------------------
       
   302 rofs2
       
   303 Type       : Target
       
   304 Description: Create ROFS2 image.
       
   305 ----------------------------------------
       
   306 rofs2-dir
       
   307 Type       : Target
       
   308 Description: Create directory structure for ROFS2 creation.
       
   309 ----------------------------------------
       
   310 rofs2-i2file
       
   311 Type       : Target
       
   312 Description: Extract all files from ROFS2 image.
       
   313 ----------------------------------------
       
   314 rofs2-image
       
   315 Type       : Target
       
   316 Description: Create ROFS2 image (.img) file.
       
   317 ----------------------------------------
       
   318 rofs2-pre
       
   319 Type       : Target
       
   320 Description: Run pre-step, create files etc. for ROFS2 creation.
       
   321 ----------------------------------------
       
   322 rofs2-symbol
       
   323 Type       : Target
       
   324 Description: Create ROFS2 symbol file.
       
   325 ----------------------------------------
       
   326 rofs3
       
   327 Type       : Target
       
   328 Description: Create ROFS3 image.
       
   329 ----------------------------------------
       
   330 rofs3-dir
       
   331 Type       : Target
       
   332 Description: Create directory structure for ROFS3 creation.
       
   333 ----------------------------------------
       
   334 rofs3-i2file
       
   335 Type       : Target
       
   336 Description: Extract all files from ROFS3 image.
       
   337 ----------------------------------------
       
   338 rofs3-image
       
   339 Type       : Target
       
   340 Description: Create ROFS3 image (.img) file.
       
   341 ----------------------------------------
       
   342 rofs3-pre
       
   343 Type       : Target
       
   344 Description: Run pre-step, create files etc. for ROFS3 creation.
       
   345 ----------------------------------------
       
   346 rofs3-symbol
       
   347 Type       : Target
       
   348 Description: Create ROFS3 symbol file.
       
   349 ----------------------------------------
       
   350 rofs4
       
   351 Type       : Target
       
   352 Description: Create DCC ROFS4 image.
       
   353 ----------------------------------------
       
   354 rofs4-dir
       
   355 Type       : Target
       
   356 Description: Create directory structure for DCC ROFS4 creation.
       
   357 ----------------------------------------
       
   358 rofs4-i2file
       
   359 Type       : Target
       
   360 Description: Extract all files from DCC ROFS4 image.
       
   361 ----------------------------------------
       
   362 rofs4-image
       
   363 Type       : Target
       
   364 Description: Create DCC ROFS4 image (.img) file.
       
   365 ----------------------------------------
       
   366 rofs4-pre
       
   367 Type       : Target
       
   368 Description: Run pre-step, create files etc. for DCC ROFS4 creation.
       
   369 ----------------------------------------
       
   370 rofs4-symbol
       
   371 Type       : Target
       
   372 Description: Create DCC ROFS4 symbol file.
       
   373 ----------------------------------------
       
   374 romsymbol
       
   375 Type       : Target
       
   376 Description: Create the rom symbol file
       
   377 ----------------------------------------
       
   378 step-%
       
   379 Type       : Target
       
   380 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.
       
   381 ----------------------------------------
       
   382 toolinfo
       
   383 Type       : Target
       
   384 Description: Print info about the tool
       
   385 ----------------------------------------
       
   386 uda
       
   387 Type       : Target
       
   388 Description: Create UDA image.
       
   389 ----------------------------------------
       
   390 uda-dir
       
   391 Type       : Target
       
   392 Description: Create directory structure for UDA creation.
       
   393 ----------------------------------------
       
   394 uda-image
       
   395 Type       : Target
       
   396 Description: Create UDA image (.img) file.
       
   397 ----------------------------------------
       
   398 uda-pre
       
   399 Type       : Target
       
   400 Description: Run pre-step, create files etc. for UDA creation.
       
   401 ----------------------------------------
       
   402 udaerase
       
   403 Type       : Target
       
   404 Description: Create the flashable UDA erase image.
       
   405 ----------------------------------------
       
   406 variant
       
   407 Type       : Target
       
   408 Description: Create the variant image (rofs2,rofs3)
       
   409 ----------------------------------------
       
   410 variant-image
       
   411 Type       : Target
       
   412 Description: Create the variant image files (rofs2.img, rofs3.img)
       
   413 ----------------------------------------
       
   414 variantmmc
       
   415 Type       : Target
       
   416 Description: Create MMC/SD image from a variant directory. Be sure to define the VARIANT_DIR.
       
   417 ----------------------------------------
       
   418 variantrofs2
       
   419 Type       : Target
       
   420 Description: Create ROFS2 image from a variant directory. Be sure to define the VARIANT_DIR.
       
   421 ----------------------------------------
       
   422 variantrofs3
       
   423 Type       : Target
       
   424 Description: Create ROFS3 image from a variant directory. Be sure to define the VARIANT_DIR.
       
   425 ----------------------------------------
       
   426 variantuda
       
   427 Type       : Target
       
   428 Description: Create UDA image from a variant directory. Be sure to define the VARIANT_DIR.
       
   429 ----------------------------------------
       
   430 version
       
   431 Type       : Target
       
   432 Description: Print the version information
       
   433 ";
       
   434 
       
   435 }
       
   436 
       
   437 ##########################################################################################################################
       
   438 ##########################################################################################################################
       
   439 #
       
   440 # Test Case: all test cases except testGetConfigurationsNoConfigElements
       
   441 # help-variable-*-all
       
   442 #
       
   443 ###########################################################################################################################
       
   444 ##########################################################################################################################
       
   445 if(($numArgs eq 3) and ($ARGV[2] =~ /filippa/ ) 
       
   446     and ($ARGV[0] eq "help-variable-*-all")) {
       
   447 print OUTFILE "Running help-variable-*-all, giving full list\n";
       
   448 print "
       
   449 iMaker 09.37.01, 07-Sep-2009.
       
   450 ----------------------------------------
       
   451 BLDROBY = `'
       
   452 Type       : Variable
       
   453 Description: For passing extra oby files (from command line) to the buildrom.pl
       
   454 Values     : (string)
       
   455 ----------------------------------------
       
   456 BLDROM_OPT = `-loglevel1  -v -nosymbols   -DFEATUREVARIANT=filippa   -D__FEATURE_IBY__  -D_IMAGE_TYPE_RND'
       
   457 Type       : Variable
       
   458 Description: The default buildrom.pl options
       
   459 Values     : (string)
       
   460 ----------------------------------------
       
   461 BLDROPT = `'
       
   462 Type       : Variable
       
   463 Description: For passing extra parameters (from command line) to the buildrom.pl
       
   464 Values     : (string)
       
   465 ----------------------------------------
       
   466 CONFIGROOT = `/epoc32/rom/config'
       
   467 Type       : Variable
       
   468 Description: Define the default configuration root directory.
       
   469 Values     : (string)
       
   470 ----------------------------------------
       
   471 CORE_CDPROMFILE = `/epoc32/rombuild/odpcoderomfiles.txt'
       
   472 Type       : Variable
       
   473 Description: The name of the core Code Demand Paging rom file (Code paging).
       
   474 Values     : (string)
       
   475 ----------------------------------------
       
   476 CORE_DIR = `/epoc32/rombuild/filippa/core'
       
   477 Type       : Variable
       
   478 Description: The working directory, when creating core image
       
   479 Values     : (string)
       
   480 ----------------------------------------
       
   481 CORE_FLASH = `/epoc32/rombuild/filippa/filippa_0010_rnd.fpsx'
       
   482 Type       : Variable
       
   483 Description: The name of the flashable core image.
       
   484 Values     : (string)
       
   485 ----------------------------------------
       
   486 CORE_FWIDFILE = `/epoc32/rombuild/filippa/core/filippa_0010_rnd_core_fwid.txt'
       
   487 Type       : Variable
       
   488 Description: The (generated) _core_fwid.txt file name.
       
   489 Values     : (string)
       
   490 ----------------------------------------
       
   491 CORE_IMEISVFILE = `/epoc32/rombuild/filippa/core/filippa_0010_rnd_core_imeisv.txt'
       
   492 Type       : Variable
       
   493 Description: The (generated) _core_imeisv.txt file name.
       
   494 Values     : (string)
       
   495 ----------------------------------------
       
   496 CORE_IMEISVINFO = `00'
       
   497 Type       : Variable
       
   498 Description: The content string for the imeisv.txt file.
       
   499 Values     : (string)
       
   500 ----------------------------------------
       
   501 CORE_MODELFILE = `/epoc32/rombuild/filippa/core/filippa_0010_rnd_core_model.txt'
       
   502 Type       : Variable
       
   503 Description: The (generated) _core_model.txt file name.
       
   504 Values     : (string)
       
   505 ----------------------------------------
       
   506 CORE_MODELINFO = `S60'
       
   507 Type       : Variable
       
   508 Description: The content string for the model.txt file.
       
   509 Values     : (string)
       
   510 ----------------------------------------
       
   511 CORE_MSTOBY = `/epoc32/rombuild/filippa/core/filippa_0010_rnd_core_master.oby'
       
   512 Type       : Variable
       
   513 Description: The generated master oby file name, which includes the CORE_OBY files
       
   514 Values     : (string)
       
   515 ----------------------------------------
       
   516 CORE_NAME = `/epoc32/rombuild/filippa/core/filippa_0010_rnd'
       
   517 Type       : Variable
       
   518 Description: The name of the core image
       
   519 Values     : (string)
       
   520 ----------------------------------------
       
   521 CORE_NDPROMFILE = `/epoc32/rombuild/romfiles.txt'
       
   522 Type       : Variable
       
   523 Description: The name of the core Non Demand Paging rom file.
       
   524 Values     : (string)
       
   525 ----------------------------------------
       
   526 CORE_OBY = `/epoc32/rom/ncp.oby'
       
   527 Type       : Variable
       
   528 Description: The oby file(s) included to the core image creation
       
   529 Values     : (string)
       
   530 ----------------------------------------
       
   531 CORE_ODPROMFILE = `/epoc32/rombuild/odpromfiles.txt'
       
   532 Type       : Variable
       
   533 Description: The name of the core On Demand Paging rom file (Rom paging).
       
   534 Values     : (string)
       
   535 ----------------------------------------
       
   536 CORE_OPT = `-loglevel1  -v -nosymbols   -DFEATUREVARIANT=filippa   -D__FEATURE_IBY__  -D_IMAGE_TYPE_RND -D_EABI=ARMV5    -DFILIPPA  -D_IMAGE_TYPE_NCP -DLCD_SHELL -DBSW_USE_TEXTSHELL_UPDATER'
       
   537 Type       : Variable
       
   538 Description: The core specific buildrom options
       
   539 Values     : (string)
       
   540 ----------------------------------------
       
   541 CORE_PLATFILE = `/epoc32/rombuild/filippa/core/filippa_0010_rnd_core_platform.txt'
       
   542 Type       : Variable
       
   543 Description: The (generated) _core_platform.txt file name.
       
   544 Values     : (string)
       
   545 ----------------------------------------
       
   546 CORE_PLATINFO = `SymbianOSMajorVersion=9\nSymbianOSMinorVersion=5\n'
       
   547 Type       : Variable
       
   548 Description: The content string for the fwid.txt file.
       
   549 Values     : (string)
       
   550 ----------------------------------------
       
   551 CORE_PRODFILE = `/epoc32/rombuild/filippa/core/filippa_0010_rnd_core_product.txt'
       
   552 Type       : Variable
       
   553 Description: The (generated) _core_product.txt file name.
       
   554 Values     : (string)
       
   555 ----------------------------------------
       
   556 CORE_ROFSFILE = `/epoc32/rombuild/odprofsfiles.txt'
       
   557 Type       : Variable
       
   558 Description: The name of the core rofs file.
       
   559 Values     : (string)
       
   560 ----------------------------------------
       
   561 CORE_ROMVER = `0.01(0)'
       
   562 Type       : Variable
       
   563 Description: The rom version parameter passed to the version.iby
       
   564 Values     : (string)
       
   565 ----------------------------------------
       
   566 CORE_SWVERFILE = `/epoc32/rombuild/filippa/core/filippa_0010_rnd_core_sw.txt'
       
   567 Type       : Variable
       
   568 Description: The (generated) _core_sw.txt version file name. This generated file is included in the CORE_VERIBY file.
       
   569 Values     : (string)
       
   570 ----------------------------------------
       
   571 CORE_SWVERINFO = `V 77.52.2009.24.0610_RC RND\n10-09-09\nRM-601\n(c) Nokia'
       
   572 Type       : Variable
       
   573 Description: The content string for the sw.txt file.
       
   574 Values     : (string)
       
   575 ----------------------------------------
       
   576 CORE_TIME = `10/09/2009'
       
   577 Type       : Variable
       
   578 Description: The time defined to the core image
       
   579 Values     : (string)
       
   580 ----------------------------------------
       
   581 CORE_UDEBFILE = `/epoc32/rombuild/mytraces.txt'
       
   582 Type       : Variable
       
   583 Description: The name of the core udeb file. See USE_UDEB.
       
   584 Values     : (string)
       
   585 ----------------------------------------
       
   586 CORE_VERIBY = `/epoc32/rombuild/filippa/core/filippa_0010_rnd_core_version.iby'
       
   587 Type       : Variable
       
   588 Description: The name of the generated core *version.iby, which included version files and info
       
   589 Values     : (string)
       
   590 ----------------------------------------
       
   591 CORE_VERSION = `V 77.52.2009.24.0610_RC RND'
       
   592 Type       : Variable
       
   593 Description: The version of the core. Used in sw.txt generation.
       
   594 Values     : (string)
       
   595 ----------------------------------------
       
   596 COREPLAT_NAME = `ncp77'
       
   597 Type       : Variable
       
   598 Description: Name of the core platform
       
   599 Values     : (string)
       
   600 ----------------------------------------
       
   601 CUSTVARIANT_COMPLP = `'
       
   602 Type       : Variable
       
   603 Description: Compatible language variant.
       
   604 Values     : (string)
       
   605 ----------------------------------------
       
   606 CUSTVARIANT_DIR = `/epoc32/rom/config/ncp77/filippa/customer/'
       
   607 Type       : Variable
       
   608 Description: Overrides the VARIANT_DIR for customer variant, see the instructions of VARIANT_CONFCP for details.
       
   609 Values     : (string)
       
   610 ----------------------------------------
       
   611 FLASH_EXT = `.fpsx'
       
   612 Type       : Variable
       
   613 Description: The flash file extension.
       
   614 Values     : (string)
       
   615 ----------------------------------------
       
   616 HWID = `0010'
       
   617 Type       : Variable
       
   618 Description: Hardware Id
       
   619 Values     : ([0-9]4)
       
   620 ----------------------------------------
       
   621 HWID_LIST = `0010 0020 0100 0110 0120 0130 0140 0200 0220'
       
   622 Type       : Variable
       
   623 Description: Possible Hardware Ids of the product.
       
   624 Values     : ([0-9]4)*
       
   625 ----------------------------------------
       
   626 KEEPTEMP = `0'
       
   627 Type       : Variable
       
   628 Description: Keep the buildrom.pl temp files (copied to the WORKDIR). E.g. tmp1.oby tmp2.oby..tmp9.oby
       
   629 Values     : ([0|1])
       
   630 ----------------------------------------
       
   631 LABEL = `'
       
   632 Type       : Variable
       
   633 Description: A label to the NAME of the image
       
   634 Values     : (string)
       
   635 ----------------------------------------
       
   636 LANGPACK_CONFCP = `7752 filippa '
       
   637 Type       : Variable
       
   638 Description: Overrides the VARIANT_CONFCP for language pack, see the instructions of VARIANT_CONFCP for details.
       
   639 Values     : (string)
       
   640 ----------------------------------------
       
   641 LANGPACK_CONFML = `/epoc32/rom/config/ncp77/filippa/filippa.confml'
       
   642 Type       : Variable
       
   643 Description: Overrides the VARIANT_CONFML for language pack, see the instructions of VARIANT_CONFML for details.
       
   644 Values     : (string)
       
   645 ----------------------------------------
       
   646 LANGPACK_DEFAULTLANG = `English'
       
   647 Type       : Variable
       
   648 Description: Default language is the language where the device will boot to (SIM language overrides this selection)
       
   649 Values     : (string)
       
   650 ----------------------------------------
       
   651 LANGPACK_DIR = `/epoc32/rom/config/ncp77/filippa/language/'
       
   652 Type       : Variable
       
   653 Description: Overrides the VARIANT_DIR for language pack, see the instructions of VARIANT_CONFCP for details.
       
   654 Values     : (string)
       
   655 ----------------------------------------
       
   656 LANGPACK_ID = `01'
       
   657 Type       : Variable
       
   658 Description: Language id used in the lang.txt generation
       
   659 Values     : (string)
       
   660 ----------------------------------------
       
   661 LANGPACK_LANGS = `English'
       
   662 Type       : Variable
       
   663 Description: Languages are the languages that are taken to the image (SC language is is defaulting to 01 in languages.txt)
       
   664 Values     : (string)
       
   665 ----------------------------------------
       
   666 NAME = `filippa_0010_rnd'
       
   667 Type       : Variable
       
   668 Description: The name of the image
       
   669 Values     : (string)
       
   670 ----------------------------------------
       
   671 OPERATOR_OBY = `/epoc32/rombuild/filippa/rofs3/filippa_0010_rnd_rofs3_operator.oby'
       
   672 Type       : Variable
       
   673 Description: The name for generated operator oby, which is a file generated based on an operator specific content.
       
   674 Values     : (string)
       
   675 ----------------------------------------
       
   676 OPERATOR_OBYGEN = `geniby | /epoc32/rombuild/filippa/rofs3/filippa_0010_rnd_rofs3_operator.oby | /epoc32/rom/include/operator | *.iby | #include \"%3\" | end'
       
   677 Type       : Variable
       
   678 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).
       
   679 Values     : (string)|(string)|(string)
       
   680 ----------------------------------------
       
   681 PRODUCT_MODEL = `N00'
       
   682 Type       : Variable
       
   683 Description: The model of the product
       
   684 Values     : (string)
       
   685 ----------------------------------------
       
   686 PRODUCT_NAME = `filippa'
       
   687 Type       : Variable
       
   688 Description: Name of the product
       
   689 Values     : (string)
       
   690 ----------------------------------------
       
   691 PRODUCT_REVISION = `01'
       
   692 Type       : Variable
       
   693 Description: The revision of the product.
       
   694 Values     : (string)
       
   695 ----------------------------------------
       
   696 PRODVARIANT_CONFCP = `7752 filippa'
       
   697 Type       : Variable
       
   698 Description: Overrides the VARIANT_CONFCP for product variant, see the instructions of VARIANT_CONFCP for details.
       
   699 Values     : (string)
       
   700 ----------------------------------------
       
   701 PRODVARIANT_CONFML = `/epoc32/rom/config/ncp77/filippa/filippa.confml'
       
   702 Type       : Variable
       
   703 Description: Overrides the VARIANT_CONFML for product variant, see the instructions of VARIANT_CONFML for details.
       
   704 Values     : (string)
       
   705 ----------------------------------------
       
   706 PRODVARIANT_DIR = `/epoc32/rom/config/ncp77/filippa'
       
   707 Type       : Variable
       
   708 Description: Overrides the VARIANT_DIR for product variant, see the instructions of VARIANT_CONFCP for details.
       
   709 Values     : (string)
       
   710 ----------------------------------------
       
   711 ROFS2_DIR = `/epoc32/rombuild/filippa/rofs2'
       
   712 Type       : Variable
       
   713 Description: The working directory, when creating the rofs2 image
       
   714 Values     : (string)
       
   715 ----------------------------------------
       
   716 ROFS2_FLASH = `/epoc32/rombuild/filippa/rofs2/filippa_0010_rnd.rofs2.fpsx'
       
   717 Type       : Variable
       
   718 Description: The name of the flashable rofs2 image.
       
   719 Values     : (string)
       
   720 ----------------------------------------
       
   721 ROFS2_FOOTER = `'
       
   722 Type       : Variable
       
   723 Description: This variable can contain a footer section for the rofs2 master oby.
       
   724 Values     : (string)
       
   725 ----------------------------------------
       
   726 ROFS2_FWIDFILE = `/epoc32/rombuild/filippa/rofs2/filippa_0010_rnd_rofs2_fwid.txt'
       
   727 Type       : Variable
       
   728 Description: The (generated) _rofs2_fwid.txt file name.
       
   729 Values     : (string)
       
   730 ----------------------------------------
       
   731 ROFS2_FWIDINFO = `id=language\nversion=01\n'
       
   732 Type       : Variable
       
   733 Description: The content string for the fwid2.txt file.
       
   734 Values     : (string)
       
   735 ----------------------------------------
       
   736 ROFS2_HEADER = `'
       
   737 Type       : Variable
       
   738 Description: This variable can contain a header section for the rofs2 master oby.
       
   739 Values     : (string)
       
   740 ----------------------------------------
       
   741 ROFS2_MSTOBY = `/epoc32/rombuild/filippa/rofs2/filippa_0010_rnd_rofs2_master.oby'
       
   742 Type       : Variable
       
   743 Description: The (generated) rofs2 master oby file name. This file includes the ROFS2_OBY files and other parameters
       
   744 Values     : (string)
       
   745 ----------------------------------------
       
   746 ROFS2_NAME = `/epoc32/rombuild/filippa/rofs2/filippa_0010_rnd'
       
   747 Type       : Variable
       
   748 Description: The name of the rofs2 image
       
   749 Values     : (string)
       
   750 ----------------------------------------
       
   751 ROFS2_OBY = `'
       
   752 Type       : Variable
       
   753 Description: The oby file(s) included to the rofs2 image creation
       
   754 Values     : (string)
       
   755 ----------------------------------------
       
   756 ROFS2_OPT = `'
       
   757 Type       : Variable
       
   758 Description: The rofs2 specific buildrom options
       
   759 Values     : (string)
       
   760 ----------------------------------------
       
   761 ROFS2_ROMVER = `0.01(0)'
       
   762 Type       : Variable
       
   763 Description: The rofs2 ROM version string
       
   764 Values     : (string)
       
   765 ----------------------------------------
       
   766 ROFS2_TIME = `10/09/2009'
       
   767 Type       : Variable
       
   768 Description: The time defined to the rofs2 image.
       
   769 Values     : (string)
       
   770 ----------------------------------------
       
   771 ROFS2_VERIBY = `/epoc32/rombuild/filippa/rofs2/filippa_0010_rnd_rofs2_version.iby'
       
   772 Type       : Variable
       
   773 Description: The (generated) version iby file name for the rofs2 image. This file included the version text files and other version parameters.
       
   774 Values     : (string)
       
   775 ----------------------------------------
       
   776 ROFS3_CUSTSWFILE = `/epoc32/rombuild/filippa/rofs3/filippa_0010_rnd_rofs3_customersw.txt'
       
   777 Type       : Variable
       
   778 Description: The (generated) source file name for customersw.txt.
       
   779 Values     : (string)
       
   780 ----------------------------------------
       
   781 ROFS3_CUSTSWINFO = `V 77.52.2009.24.0610_RC RND\n10-09-09'
       
   782 Type       : Variable
       
   783 Description: The content string for the customersw.txt.
       
   784 Values     : (string)
       
   785 ----------------------------------------
       
   786 ROFS3_DIR = `/epoc32/rombuild/filippa/rofs3'
       
   787 Type       : Variable
       
   788 Description: The working directory, when creating the rofs3 image
       
   789 Values     : (string)
       
   790 ----------------------------------------
       
   791 ROFS3_FLASH = `/epoc32/rombuild/filippa/rofs3/filippa_0010_rnd.rofs3.fpsx'
       
   792 Type       : Variable
       
   793 Description: The name of the flashable rofs3 image.
       
   794 Values     : (string)
       
   795 ----------------------------------------
       
   796 ROFS3_FOOTER = `'
       
   797 Type       : Variable
       
   798 Description: This variable can contain a footer section for the rofs3 master oby.
       
   799 Values     : (string)
       
   800 ----------------------------------------
       
   801 ROFS3_FWIDFILE = `/epoc32/rombuild/filippa/rofs3/filippa_0010_rnd_rofs3_fwid.txt'
       
   802 Type       : Variable
       
   803 Description: The (generated) _rofs3_fwid.txt file name.
       
   804 Values     : (string)
       
   805 ----------------------------------------
       
   806 ROFS3_FWIDINFO = `id=customer\nversion=V 77.52.2009.24.0610_RC RND Customer\n'
       
   807 Type       : Variable
       
   808 Description: The content string for the fwid3.txt file.
       
   809 Values     : (string)
       
   810 ----------------------------------------
       
   811 ROFS3_HEADER = `'
       
   812 Type       : Variable
       
   813 Description: This variable can contain a header section for the rofs3 master oby.
       
   814 Values     : (string)
       
   815 ----------------------------------------
       
   816 ROFS3_MSTOBY = `/epoc32/rombuild/filippa/rofs3/filippa_0010_rnd_rofs3_master.oby'
       
   817 Type       : Variable
       
   818 Description: The (generated) version iby file name for the rofs3 image. This file included the version text files and other version parameters.
       
   819 Values     : (string)
       
   820 ----------------------------------------
       
   821 ROFS3_NAME = `/epoc32/rombuild/filippa/rofs3/filippa_0010_rnd'
       
   822 Type       : Variable
       
   823 Description: The name of the rofs3 image
       
   824 Values     : (string)
       
   825 ----------------------------------------
       
   826 ROFS3_OBY = `/epoc32/rombuild/filippa/rofs3/filippa_0010_rnd_rofs3_operator.oby'
       
   827 Type       : Variable
       
   828 Description: The oby file(s) included to the rofs3 image creation
       
   829 Values     : (string)
       
   830 ----------------------------------------
       
   831 ROFS3_OPT = `'
       
   832 Type       : Variable
       
   833 Description: The rofs3 specific buildrom options
       
   834 Values     : (string)
       
   835 ----------------------------------------
       
   836 ROFS3_ROMVER = `0.01(0)'
       
   837 Type       : Variable
       
   838 Description: The rofs3 ROM version string
       
   839 Values     : (string)
       
   840 ----------------------------------------
       
   841 ROFS3_TIME = `10/09/2009'
       
   842 Type       : Variable
       
   843 Description: The time defined to the rofs3 image.
       
   844 Values     : (string)
       
   845 ----------------------------------------
       
   846 ROFS3_VERIBY = `/epoc32/rombuild/filippa/rofs3/filippa_0010_rnd_rofs3_version.iby'
       
   847 Type       : Variable
       
   848 Description: The (generated) version iby file name for the rofs3 image. This file included the version text files and other version parameters.
       
   849 Values     : (string)
       
   850 ----------------------------------------
       
   851 SOS_VERSION = `9.5'
       
   852 Type       : Variable
       
   853 Description: Symbian OS version number. The value is used in the version info generation (platform.txt).(see USE_VERGEN)
       
   854 Values     : ([0-9]+.[0-9]+)
       
   855 ----------------------------------------
       
   856 SWUPD_EXT = `.swupd'
       
   857 Type       : Variable
       
   858 Description: The software update file extension.
       
   859 Values     : (string)
       
   860 ----------------------------------------
       
   861 TARGET_DEFAULT = `core'
       
   862 Type       : Variable
       
   863 Description: Configure actual target(s) for target default.
       
   864 Values     : (string)
       
   865 ----------------------------------------
       
   866 TYPE = `rnd'
       
   867 Type       : Variable
       
   868 Description: Defines the image type.
       
   869 Values     : (rnd|prd|subcon)
       
   870 ----------------------------------------
       
   871 USE_OVERRIDE = `1'
       
   872 Type       : Variable
       
   873 Description: Define whether the override.pm Buildrom.pl plugin is used.
       
   874 Values     : ([0|1])
       
   875 ----------------------------------------
       
   876 USE_PAGING = `rom'
       
   877 Type       : Variable
       
   878 Description: Define the usage of On Demand Pagin (ODP). (E.g. 0,rom,code).
       
   879 Values     : ((0|rom|code[:[(1|2|3)]+]?))
       
   880 ----------------------------------------
       
   881 USE_PLATSIM = `0'
       
   882 Type       : Variable
       
   883 Description: Define that the configuration is a PlatSim configuration.
       
   884 Values     : (string)
       
   885 ----------------------------------------
       
   886 USE_ROFS = `1'
       
   887 Type       : Variable
       
   888 Description: Define the rofs sections in use. A comma separated list can be given of possible values. (E.g. 1,2,3).
       
   889 Values     : ([[dummy|]0..6][,[dummy|]0..6]*)
       
   890 ----------------------------------------
       
   891 USE_ROMFILE = `1'
       
   892 Type       : Variable
       
   893 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.
       
   894 Values     : ([0|1])
       
   895 ----------------------------------------
       
   896 USE_SYMGEN = `0'
       
   897 Type       : Variable
       
   898 Description: Generate the rom symbol file. 0=Do not generate, 1=Generate
       
   899 Values     : ([0|1])
       
   900 ----------------------------------------
       
   901 USE_UDEB = `0'
       
   902 Type       : Variable
       
   903 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.
       
   904 Values     : ([0|1|full])
       
   905 ----------------------------------------
       
   906 USE_VERGEN = `1'
       
   907 Type       : Variable
       
   908 Description: Use iMaker version info generation
       
   909 Values     : ([0|1])
       
   910 ----------------------------------------
       
   911 VARIANT_CONFCP = `7752 filippa'
       
   912 Type       : Variable
       
   913 Description: Configure which ConfigurationTool generated configurations dirs are copied to output.
       
   914 Values     : (string)
       
   915 ----------------------------------------
       
   916 VARIANT_CONFML = `/epoc32/rom/config/ncp77/filippa/filippa.confml'
       
   917 Type       : Variable
       
   918 Description: Configure what is the ConfigurationTool input confml file, when configuration tool is ran.
       
   919 Values     : (string)
       
   920 ----------------------------------------
       
   921 VARIANT_DIR = `/epoc32/rom/config/ncp77/filippa'
       
   922 Type       : Variable
       
   923 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.
       
   924 Values     : (string)
       
   925 ----------------------------------------
       
   926 WORKDIR = `/epoc32/rombuild/filippa'
       
   927 Type       : Variable
       
   928 Description: The working directory for the image creation
       
   929 Values     : (string)
       
   930 ";
       
   931 }
       
   932 
       
   933 
       
   934 ##########################################################################################################################
       
   935 ##########################################################################################################################
       
   936 #
       
   937 # Test Case: testGetConfigurationsNoConfigElements
       
   938 # help-variable-*-all
       
   939 #
       
   940 ###########################################################################################################################
       
   941 ##########################################################################################################################
       
   942 if(($testCase eq "test_case=testGetConfigurationsNoConfigElements") 
       
   943     and ($ARGV[1] eq "help-variable-*-all")) {
       
   944 print OUTFILE "Running help-variable-*-all, no results\n";
       
   945 print "
       
   946 Testing new API
       
   947 ----------------------------------------
       
   948 
       
   949 Total duration: 00:01
       
   950 
       
   951 ";
       
   952 }
       
   953 
       
   954 ##########################################################################################################################
       
   955 ##########################################################################################################################
       
   956 #
       
   957 # Test Case: testBuildImage
       
   958 # 
       
   959 ###########################################################################################################################
       
   960 ##########################################################################################################################
       
   961 if( $testCase eq "test_case=testBuildImage" ) {
       
   962 print OUTFILE "Running build image, returning builder result\n";
       
   963 
       
   964 print "
       
   965 Testing new API
       
   966 Generating oby for Variant ROFS2 image creation
       
   967 Generating ROFS2 version file(s)
       
   968 Creating Variant ROFS2 SOS image
       
   969 Generating Variant ROFS2 Elf2flash configuration
       
   970 Adding BB5 Common Header(s) to Variant ROFS2
       
   971 Creating flashable Variant ROFS2 image
       
   972 
       
   973 Total duration: 01:13
       
   974 
       
   975 ";
       
   976 }
       
   977 
       
   978 ##########################################################################################################################
       
   979 ##########################################################################################################################
       
   980 #
       
   981 # Test Case: testBuildImageFailed
       
   982 # 
       
   983 ###########################################################################################################################
       
   984 ##########################################################################################################################
       
   985 if( $testCase eq "test_case=testBuildImageFailed" ) {
       
   986 print OUTFILE "Running build image, returning builder result with errors\n";
       
   987 
       
   988 print "
       
   989 Testing new API
       
   990 Generating oby for Variant ROFS2 image creation
       
   991 Generating ROFS2 version file(s)
       
   992 Creating Variant ROFS2 SOS image
       
   993 Generating Variant ROFS2 Elf2flash configuration
       
   994 Adding BB5 Common Header(s) to Variant ROFS2
       
   995 Creating flashable Variant ROFS2 image
       
   996 error: something went wrong
       
   997 
       
   998 
       
   999 ";
       
  1000 }
       
  1001 
       
  1002 
       
  1003 
       
  1004 ####################
       
  1005 END {
       
  1006 print OUTFILE "---------------------------------------------------------------\n";
       
  1007 close OUTFILE;
       
  1008 }
       
  1009 
       
  1010 
       
  1011 #EOF