diff options
Diffstat (limited to 'util/getpir/code_gen.c')
-rw-r--r-- | util/getpir/code_gen.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/util/getpir/code_gen.c b/util/getpir/code_gen.c index 150d083d86..a458eae27a 100644 --- a/util/getpir/code_gen.c +++ b/util/getpir/code_gen.c @@ -1,12 +1,17 @@ #include <stdio.h> -#include <arch/pirq_routing.h> +#include <stdlib.h> +#include "pirq_routing.h" static char *preamble[] = { "/* This file was generated by getpir.c, do not modify! \n (but if you do, please run checkpir on it to verify)\n", " * Contains the IRQ Routing Table dumped directly from your memory, which BIOS sets up\n", " *\n", " * Documentation at : http://www.microsoft.com/hwdev/busbios/PCIIRQ.HTM\n*/\n\n", - "#include <arch/pirq_routing.h>\n\n", + "#ifdef GETPIR\n", + "#include \"pirq_routing.h\"\n", + "#else\n" + "#include <arch/pirq_routing.h>\n", + "#endif\n\n" "const struct irq_routing_table intel_irq_routing_table = {\n", "\tPIRQ_SIGNATURE, /* u32 signature */\n", "\tPIRQ_VERSION, /* u16 version */\n", |