Generate the /etc/os.version file based on build environments. The (wrapped by (Linux) or mksysimage.bat (Windows)) calls this command. You shouldn't call this command on its own.

Syntax:  [options] ... <platform>.<variant>

Runs on:

Windows, Linux. Must be run using Python 2.7.5.


Specify the branch to build.
Specify the date entry. If this option isn't specified, the current time is used.
-h, --help
Show the help that describes how to use this command.
-n BUILDNUM, --build-number=BUILDNUM
Specify the build number. If this option isn't specified, the value in the BUILD_NUMBER environment variable is used.
-q, --quiet
Prevent output.
-p, --additionalParameters
Include additional parameters using the following notation <parameter>=<value>.
Specify the product name and the board name. The entries that can be used for productname are the names of the subdirectories found in $QNX_DEPLOYMENT_WORKSPACE/target/product/ and the possible entries for boardname are found in $QNX_DEPLOYMENT_WORKSPACE/target/product/productname/boards/. You should refer to the Getting Started guide for the value of the QNX_DEPLOYMENT_WORKSPACE variable.
-r REVISION, --revision=REVISION
Specify the revision of the image that's being built.
Specify the script that was used to generate the image.
-u BUILDURL, --build-url=BUILDURL
Specify the build URL. If this option isn't specified, the value in the BUILD_URL environment variable is used.
--variant VARIANT
Specify the variant of the image that's being built.
-v, --verbose
Increase verbosity.


The utility to generates the os.version file based on the build environment. Don't use the script on its own. Instead, use the script, which calls the script.

Exit status:

The OS version file was generated successfully.
An error occurred.