]> xenbits.xensource.com Git - seabios.git/commitdiff
Make iasl option check work with older versions of iasl. rel-1.7.1
authorKevin O'Connor <kevin@koconnor.net>
Thu, 30 Aug 2012 01:27:37 +0000 (21:27 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 30 Aug 2012 01:32:08 +0000 (21:32 -0400)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Makefile

index 72ee15289a9bb9ecbc2f12c28a74417d6326bee4..45ea48a49157fd8a66c31e67643c5f20856462b5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -221,7 +221,7 @@ $(OUT)vgabios.bin: $(OUT)vgabios.bin.raw tools/buildrom.py
 
 ################ DSDT build rules
 
-iasl-option=$(shell if "$(1)" "$(2)" -h > /dev/null 2>&1 \
+iasl-option=$(shell if test -z "`$(1) $(2) 2>&1 > /dev/null`" \
     ; then echo "$(2)"; else echo "$(3)"; fi ;)
 
 $(OUT)%.hex: src/%.dsl ./tools/acpi_extract_preprocess.py ./tools/acpi_extract.py