diff options
Diffstat (limited to 'sys/contrib/dev/acpica/compiler/aslmain.c')
-rw-r--r-- | sys/contrib/dev/acpica/compiler/aslmain.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/sys/contrib/dev/acpica/compiler/aslmain.c b/sys/contrib/dev/acpica/compiler/aslmain.c index 1c0d1f3..b5d944e 100644 --- a/sys/contrib/dev/acpica/compiler/aslmain.c +++ b/sys/contrib/dev/acpica/compiler/aslmain.c @@ -96,7 +96,7 @@ AslDoResponseFile ( #define ASL_TOKEN_SEPARATORS " \t\n" -#define ASL_SUPPORTED_OPTIONS "@:2b|c|d^D:e:fgh^i|I:l^mno|p:Pr:s|t|T:G^v|w|x:z" +#define ASL_SUPPORTED_OPTIONS "@:2b|c|d^D:e:fgh^i|I:l^mno|p:P^r:s|t|T:G^v|w|x:z" /******************************************************************************* @@ -124,6 +124,7 @@ Options ( ACPI_OPTION ("-D <symbol>", "Define symbol for preprocessor use"); ACPI_OPTION ("-li", "Create preprocessed output file (*.i)"); ACPI_OPTION ("-P", "Preprocess only and create preprocessor output file (*.i)"); + ACPI_OPTION ("-Pn", "Disable preprocessor"); printf ("\nGeneral Output:\n"); ACPI_OPTION ("-p <prefix>", "Specify path/filename prefix for all output files"); @@ -133,6 +134,7 @@ Options ( ACPI_OPTION ("-vr", "Disable remarks"); ACPI_OPTION ("-vs", "Disable signon"); ACPI_OPTION ("-w1 -w2 -w3", "Set warning reporting level"); + ACPI_OPTION ("-we", "Report warnings as errors"); printf ("\nAML Output Files:\n"); ACPI_OPTION ("-sa -sc", "Create AML in assembler or C source file (*.asm or *.c)"); @@ -671,9 +673,22 @@ AslDoOptions ( break; - case 'P': /* Preprocess (plus .i file) only */ - Gbl_PreprocessOnly = TRUE; - Gbl_PreprocessorOutputFlag = TRUE; + case 'P': /* Preprocessor options */ + switch (AcpiGbl_Optarg[0]) + { + case '^': /* Proprocess only, emit (.i) file */ + Gbl_PreprocessOnly = TRUE; + Gbl_PreprocessorOutputFlag = TRUE; + break; + + case 'n': /* Disable preprocessor */ + Gbl_PreprocessFlag = FALSE; + break; + + default: + printf ("Unknown option: -P%s\n", AcpiGbl_Optarg); + return (-1); + } break; @@ -793,6 +808,10 @@ AslDoOptions ( Gbl_WarningLevel = ASL_WARNING3; break; + case 'e': + Gbl_WarningsAsErrors = TRUE; + break; + default: printf ("Unknown option: -w%s\n", AcpiGbl_Optarg); return (-1); |