On Wed, Oct 26, 2011 at 11:28:02PM +0200, Michael S. Tsirkin wrote:
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 mst@redhat.com
Kevin, you suggested something like the below, I think? Seems to work but RFC since I didn't have time to test this properly.
It looks okay to me (I didn't do any exhaustive tests either). It would be preferable if we didn't have to change the acpi-dsdt.dsl file though - that way users could still compile it with the iasl compiler directly. Can the output default to "AmlCode" if no directive is found?
-Kevin