1 2 3 4 5 6 7 8 9
10 /*!
11 * Generate driver starter files
12 *
13 * This command line tool helps driver writers by generating starter
14 * files. The driver writer can then fill in driver specific code
15 * and rebuild.
16 *
17 * required arguments are the output directory name "-o" and the module
18 * name "-m".
19 *
20 * The name of the module and the package name is derived from the module
21 * name. For e.g for -m drivers.io.Uart the module name is Uart and the
22 * package name is drivers.dma.
23 *
24 * The "-o" option must inlcude package path. For the example above
25 * -o "C:\Product\drivers\dma.
26 */
27 metaonly module Main inherits xdc.tools.mkpkg.ICmd {
28 /*!
29 * ======== main ========
30 * main() function, invoked from the command line.
31 *
32 * Parses command line arguments then calls {@link #mkpkg()}.
33 */
34 override Int main(String arguments[]);
35
36 config String usage[] = [
37 '-m modName -o outputDir',
38 '[--help]',
39 ];
40
41 instance:
42
43 /*!
44 * Name of the generated module. You need to specify package name within
45 * the modName.
46 */
47 @CommandOption("m")
48 config String modName;
49
50 }