gen-osversion.py

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

Syntax:

 gen-osversion.py  [options] ... <platform>.<variant>

Runs on:

Windows, Linux. Must be run using Python 2.7.5.

Options:

--branch=BRANCH
Specify the branch to build.
-d GENERATIONDATE, --date=GENERATIONDATE
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>.
-P PRODUCT BOARDNAME, --product=PRODUCT BOARDNAME
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.
-s IMAGESCRIPT, --image-script=IMAGESCRIPT
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.

Description:

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

Exit status:

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

Caveats:

None.