summaryrefslogtreecommitdiffstats
path: root/source/compiler/asloptions.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-08-23 18:01:58 +0000
committerjkim <jkim@FreeBSD.org>2013-08-23 18:01:58 +0000
commitb2a92415360aacb32d9b6107bdcf100d16d09167 (patch)
tree89234dd9f502de2faaf4a280ccd0d3785a7ae96f /source/compiler/asloptions.c
parent8e9a373708032aaf58694e237e3889d7d3fd796f (diff)
downloadFreeBSD-src-b2a92415360aacb32d9b6107bdcf100d16d09167.zip
FreeBSD-src-b2a92415360aacb32d9b6107bdcf100d16d09167.tar.gz
Import ACPICA 20130823.
Diffstat (limited to 'source/compiler/asloptions.c')
-rw-r--r--source/compiler/asloptions.c30
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':
OpenPOWER on IntegriCloud