summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-04-12 18:47:11 -0600
committerMartin Roth <martinroth@google.com>2016-04-14 20:20:41 +0200
commita29bc9786d2615a4af4359057cfee686d6cb5d4a (patch)
treef24b4ff5ff28f534430cdf62408f76b1f77e868f /Makefile.inc
parent7f53b98112e42ff5bde4151b82eb08c04fd71951 (diff)
downloadcoreboot-a29bc9786d2615a4af4359057cfee686d6cb5d4a.tar.xz
Makefile.inc: Disassemble the ACPI AML to detect errors
This should help catch cases where the AML is not correct. Change-Id: I48efb9ed0b62b3e17dcf3045ef9c32d813a412bc Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/14340 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index d2e627f8c3..38b07f4acd 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -230,6 +230,7 @@ ifeq ($(CONFIG_IASL_WARNINGS_ARE_ERRORS),y)
else
cd $$(dir $$@); $(IASL) -p $$(notdir $$@) $$(notdir $$@)
endif
+ if [ -z "$$$$($(IASL) -d $$@ 2>&1 | grep 'ACPI Warning')" ]; then echo " IASL $$@ disassembled correctly."; true; else echo "Error: Could not correctly disassemble $$@"; $(IASL) -d $$@; false; fi
endef
#######################################################################