[SeaBIOS] Compiling SeaBIOS for coreboot has problems with its ACPI code

Kevin O'Connor kevin at koconnor.net
Wed Aug 1 03:12:51 CEST 2012


On Tue, Jul 31, 2012 at 08:02:45PM +0200, Idwer Vollering wrote:
> 2012/7/31 Moore, Robert <robert.moore at intel.com>:
> > Please let me know if the -Pn option works for you.
> > Thanks,
> > Bob
> 
> -Pn works for me, on acpica-20120420-64.

It looks like "-Pn" only works on newer versions of iasl.  Can you
confirm the SeaBIOS patch below works with a newer iasl?

-Kevin


--- a/Makefile
+++ b/Makefile
@@ -221,11 +221,14 @@ $(OUT)vgabios.bin: $(OUT)vgabios.bin.raw tools/buildrom.py
 
 ################ DSDT build rules
 
+iasl-option=$(shell if test -z "`$(1) $(2) -h 2>&1 > /dev/null" \
+    ; then echo "$(2)"; else echo "$(3)"; fi ;)
+
 $(OUT)%.hex: src/%.dsl ./tools/acpi_extract_preprocess.py ./tools/acpi_extract.py
        @echo "  Compiling IASL $@"
        $(Q)cpp -P $< > $(OUT)$*.dsl.i.orig
        $(Q)$(PYTHON) ./tools/acpi_extract_preprocess.py $(OUT)$*.dsl.i.orig > $(OUT)$*.dsl.i
-       $(Q)$(IASL) -vs -l -tc -p $(OUT)$* $(OUT)$*.dsl.i
+       $(Q)$(IASL) $(iasl-option,$(IASL),-Pn,) -vs -l -tc -p $(OUT)$* $(OUT)$*.dsl.i
        $(Q)$(PYTHON) ./tools/acpi_extract.py $(OUT)$*.lst > $(OUT)$*.off
        $(Q)cat $(OUT)$*.off > $@



More information about the SeaBIOS mailing list