acpi: extract aml from .lst

Add ACPI_EXTRACT_ALL_CODE directive, to support extracting
AML code from listing into a named array. Use that instead including C
file generated by iasl, this makes it possible to include multiple AML
tables without resorting to preprocessor tricks.

Signed-off-by: Michael S. Tsirkin <>
diff --git a/Makefile b/Makefile
index 91d9b77..540f1ea 100644
--- a/Makefile
+++ b/Makefile
@@ -198,7 +198,7 @@
 	$(Q)./tools/ $(OUT)$*.dsl.i.orig > $(OUT)$*.dsl.i
 	$(Q)iasl -l -tc -p $(OUT)$* $(OUT)$*.dsl.i
 	$(Q)./tools/ $(OUT)$*.lst > $(OUT)$*.off
-	$(Q)cat $(OUT)$*.hex $(OUT)$*.off > $@
+	$(Q)cat $(OUT)$*.off > $@
 $(OUT)ccode32flat.o: src/acpi-dsdt.hex src/ssdt-proc.hex