gen-osversion

Generate the /etc/os.version file based on build environments.

Syntax:

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

Runs on:

QNX Neutrino

Options:

-q, --quiet
Prevent output.
-p, --additionalParameters
Include additional parameters <parameter>=<value>.
-v, --verbose
Increase verbosity.

Description:

You can use the gen-osversion utility on its own or as part of the mksysimage.py utility script to generate the os.version file based on build environments.

To run gen-osversion, you need to specify the platform and its variant.

Examples:

The following example uses the omap5uevm platform and creates an os.version file. The information in the resulting file is used by the image-generation script mksysimage.py.

%QNX_CAR_DEPLOYMENT%/deployment/scripts/gen-osversion omap5uevm.external

The resulting output might look something like this:

date:		Thu Aug 30 13:23:48 2013
project:	Local Build
buildHost:	ubuntu
buildID:	Local Build
buildNum:	Local Build

platform:	omap5uevm.external
MyBranch:	trunk
MyRev:	6998
externalBranch:	main
externalRev:	2732

Exit status:

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

Caveats:

None.