Setting or Clearing a Sysgen Variable (Windows Embedded CE 6.0)

1/5/2010

After you create an OS design or open an existing OS design, you can choose to configure the functionality in your OS design from a command-line prompt build window by setting or clearing Sysgen variables.

For information about configuring this functionality in the IDE, see Adding Catalog Items to an OS Design and Removing a Catalog Item from an OS Design.

Items in the Catalog can correspond to a single Sysgen variable, although some items, by design, do not have an associated Sysgen variable. To add a selected item to your OS design, you set a Sysgen variable, while to remove the item, you clear the corresponding Sysgen variable. Also, during the build process, Platform Builder might further configure the functionality included in your OS design by bringing in other items that are required for items in your OS design to function.

This is because the Sysgen variable associated with the Catalog item might depend on other Sysgen variables in order to function, which is a relationship called a dependency. Many dependencies are typically contained in Cesysgen.bat. For more information, see Cesysgen Batch File.

For more information about dependencies, see Catalog Item Dependencies.

For information about Sysgen variables that you can set, see Sysgen Variables.

To set a Sysgen variable

  • In a command prompt build window or a batch file, type the following command:

    set <sysgen variable>=1
    

To clear a Sysgen variable

  • In a command prompt build window or a batch file, type the following command:

    Note

    Ensure that you do not enter a character or space after the equal sign.

    set <sysgen variable>=
    

See Also

Concepts

Sysgen Variables
Build System
Run-Time Image Build Process

Other Resources

Windows Embedded CE Features