diff options
author | jkim <jkim@FreeBSD.org> | 2013-08-23 18:01:58 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-08-23 18:01:58 +0000 |
commit | b2a92415360aacb32d9b6107bdcf100d16d09167 (patch) | |
tree | 89234dd9f502de2faaf4a280ccd0d3785a7ae96f /source/compiler/asloptions.c | |
parent | 8e9a373708032aaf58694e237e3889d7d3fd796f (diff) | |
download | FreeBSD-src-b2a92415360aacb32d9b6107bdcf100d16d09167.zip FreeBSD-src-b2a92415360aacb32d9b6107bdcf100d16d09167.tar.gz |
Import ACPICA 20130823.
Diffstat (limited to 'source/compiler/asloptions.c')
-rw-r--r-- | source/compiler/asloptions.c | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/source/compiler/asloptions.c b/source/compiler/asloptions.c index 441dbb3..5fbd43e 100644 --- a/source/compiler/asloptions.c +++ b/source/compiler/asloptions.c @@ -68,7 +68,7 @@ AslDoResponseFile ( #define ASL_TOKEN_SEPARATORS " \t\n" -#define ASL_SUPPORTED_OPTIONS "@:b|c|d^D:e:fgh^i|I:l^m:no|p:P^r:s|t|T+G^v^w|x:z" +#define ASL_SUPPORTED_OPTIONS "@:b|c|d^D:e:f^gh^i|I:l^m:no|p:P^r:s|t|T+G^v^w|x:z" /******************************************************************************* @@ -136,8 +136,7 @@ AslCommandLine ( if (BadCommandLine) { - printf ("\n"); - Usage (); + printf ("Use -h option for help information\n"); exit (1); } @@ -276,9 +275,30 @@ AslDoOptions ( } break; - case 'f': /* Ignore errors and force creation of aml file */ + case 'f': + + switch (AcpiGbl_Optarg[0]) + { + case '^': /* Ignore errors and force creation of aml file */ + + Gbl_IgnoreErrors = TRUE; + break; + + case 'e': /* Disassembler: Get external declaration file */ + + if (AcpiGetoptArgument (argc, argv)) + { + return (-1); + } + + Gbl_ExternalRefFilename = AcpiGbl_Optarg; + break; - Gbl_IgnoreErrors = TRUE; + default: + + printf ("Unknown option: -f%s\n", AcpiGbl_Optarg); + return (-1); + } break; case 'G': |