directory

This command specifies additional directories to search for source files. If you use this command without an argument then the search directories are reset to the default settings. You can use the show command to display the current settings.

Show/hideSyntax

directory [path]...

Where:

path

Specifies an additional directory to search for source files. This is appended to the beginning of the list.

Note

Multiple directories can be specified but must be separated with either:

  • a space

  • a colon (Unix)

  • a semi-colon (Windows).

Show/hideDefault

The default directories for searching are:

  • compilation directory, $cdir

  • current working directory, $cwd

  • current image directory, $idir.

Show/hideExample

Example 22. directory

directory "\usr\source"      # Add directory to search list
directory "\usr" "\My Src"   # Add two directories to search list,
                             # first takes precedence
directory                    # Reset to the default directories

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0452J
Non-ConfidentialID051612