Specifications
118 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 7: Library Generator
R
Tool Options
The following options are supported in this version:
-h, -help (Help)
This option causes LibGen to display the usage menu and exit.
-v (display version information)
This option displays the version number of LibGen.
-log logfile[.log]
This option specifies the log file. The default is libgen.log.
-p family_name (architecture family)
This option defines the target architecture family. Use -h option to get a list of values for 
Family_name. 
-od output_dir (specify output directory)
This option specifies the output directory output_dir. The default is the current directory. 
All output files and directories are generated in the output directory. The input file 
filename.mss is taken from the current working directory. This output directory is also 
called OUTPUT_DIR, and the directory from which LibGen is invoked is called 
USER_PROJECT for convenience in the documentation. 
-sd source_dir (specify source directory)
This option specifies the source directory source_dir for searching the input files (MHS). 
The default is the current working directory.
-lp library_path (specify library path for user peripherals and drivers 
repositories)
This option specifies a library containing repositories of user peripherals, drivers, OS’s, 
and libraries. LibGen looks for: 
x Drivers in the directory library_path/<sub_dir>/drivers/
x Libraries in the directory library_path/<sub_dir>/sw_services/
x OS’s in the directory library_path/<sub_dir>/bsp/
Here <sub_dir> is a subdirectory under library_path.
-mhs mhsfile.mhs (specify MHS file to be used)
This option specifies the MHS file to be used for the LibGen run. The following is the order 
used by LibGen to find the name of an MHS file. The following is the order LibGen uses to 
search and locate mhsfile.mhs for a run:
x Current working directory (USER_PROJECT/).
x If no -mhs option is used, look in the MSS file for the parameter HW_SPEC_FILE to 
get the mhsfilename.










