summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/compiler/asloptions.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2013-08-24 13:42:20 +0000
committermarkm <markm@FreeBSD.org>2013-08-24 13:42:20 +0000
commit6228164acab21e650d8ce41758f11a9188cdcf9d (patch)
treef402d81e3fb54380b80e4c1a1d1d5bfe58f4f519 /sys/contrib/dev/acpica/compiler/asloptions.c
parent7afe86e84d4eb4f4ecfc090764da8acb5f214ae6 (diff)
parent413bf347cd8d75b5cc702edaa5b26ae8b14c9f6b (diff)
downloadFreeBSD-src-6228164acab21e650d8ce41758f11a9188cdcf9d.zip
FreeBSD-src-6228164acab21e650d8ce41758f11a9188cdcf9d.tar.gz
MFC
Diffstat (limited to 'sys/contrib/dev/acpica/compiler/asloptions.c')
-rw-r--r--sys/contrib/dev/acpica/compiler/asloptions.c30
1 files changed, 25 insertions, 5 deletions
diff --git a/sys/contrib/dev/acpica/compiler/asloptions.c b/sys/contrib/dev/acpica/compiler/asloptions.c
index 877fb68..66a9249 100644
--- a/sys/contrib/dev/acpica/compiler/asloptions.c
+++ b/sys/contrib/dev/acpica/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