]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
libacpi: fixes for iasl >= 20180427 4.11.0-rc4
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 9 May 2018 10:08:12 +0000 (11:08 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 9 May 2018 17:17:51 +0000 (18:17 +0100)
commit858dbaaeda33b05c1ac80aea0ba9a03924e09005
tree6fae34d2915ce0e419e930f9123bb5834a938a2c
parent92938e5d149669033aecdfb3d1396948d49d1887
libacpi: fixes for iasl >= 20180427

New versions of iasl have introduced improved C file generation, as
reported in the changelog:

iASL: Enhanced the -tc option (which creates an AML hex file in C,
suitable for import into a firmware project):
  1) Create a unique name for the table, to simplify use of multiple
SSDTs.
  2) Add a protection #ifdef in the file, similar to a .h header file.

The net effect of that on generated files is:

-unsigned char AmlCode[] =
+#ifndef __SSDT_S4_HEX__
+#define __SSDT_S4_HEX__
+
+unsigned char ssdt_s4_aml_code[] =

The above example is from ssdt_s4.asl.

Fix the build with newer versions of iasl by stripping the '_aml_code'
suffix from the variable name on generated files.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
tools/libacpi/Makefile