-O sdeploy option

The -O option can be used with the sdeploy utility command.

The output (-O) option of the sdeploy utility command is used to specify, through a parameter, the location or file name, or both, for the resulting compiled map files when (-BUILDMAPS) option is chosen, or resulting generated msl file when (-GENERATE) option is chosen. This is a description of how the output (-O) option can be used in the sdeploy utility command.

The specified parameter for the output (-O) option could be the name of the directory where the resulting compiled map files or the resulting generated msl file is written, the full file path specification in which a wildcard can be used to represent the compiled map file or the generated msl file, or the full path in which the complete filename can be specified only for the msl file. The default naming convention for the compiled map file is executable_map_name.mmc, and for the generated msl file is system_name.msl. If a wildcard is specified in the sdeploy mysystems.msd MySystem -BUILDMAPS -O C:\MyDev\Compiledmaps\*.win full path, the compiled maps are produced in the C:\MyDev\Compiledmaps directory with the <executable_map_name>.win naming convention. If a wildcard is specified in the sdeploy mysystems.msd MySystem -GENERATE -O C:\MyDev\Systemfiles\*.win full path, the generated msl is produced in the C:\MyDev\Systemfiles directory with the <system_name>.win naming convention. If the complete file name is specified, for example, sdeploy mysystems.msd MySystem -GENERATE -O C:\MyDev\Systemfiles\MyExecForwin.win, the MyExecForWin.win file is produced in the C:\MyDev\Systemfiles directory.

If the (-O) option is not specified, the compile map is written to the same directory as the map source file using the default executable_map_name.mmc naming convention and the msl file is written to the source directory of the msd file with the system_name.msl default naming convention. If the ( -O ) option is specified and the parameter is not provided, the command line is invalid, and the Not a valid command line : The file name for the resulting output file should be provided when (-O) option is selected error message displays on the console. If the file name or the path provided for the ( -O ) option is not valid or returns error while attempting to open or write to the file, the Compilation error - The file/path provided for the option (-O) is not valid, unable to write to the specified directory/file error message is written to the sdeploy log file, if it is enabled. If the (-O) option is specified without the (-BUILDMAPS or -GENERATE) command options, the command line is invalid, and the Not a valid command line : (-GENERATE) or (-BUILDMAPS) or (-DEPLOY) or (-L) or (-ANALYZE) is missing. error message displays on the console.

Note: -O command line option cannot be used with the -A command line option.