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