[SeaBIOS] [PATCH] Reformat .lst in case it is generated by new iasl.

Bo Yang boyang at suse.com
Thu Jan 24 14:49:06 CET 2013


New iasl generate .lst as 'number:  ' instead of 'number....', then
acpi_extrace.py fails to extract any useful information, building
fails.

Signed-off-by: Bo Yang <boyang at suse.com>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index f28d86c..e87210b 100644
--- a/Makefile
+++ b/Makefile
@@ -217,6 +217,7 @@ $(OUT)%.hex: src/%.dsl ./tools/acpi_extract_preprocess.py ./tools/acpi_extract.p
 	$(Q)cpp -P $< > $(OUT)$*.dsl.i.orig
 	$(Q)$(PYTHON) ./tools/acpi_extract_preprocess.py $(OUT)$*.dsl.i.orig > $(OUT)$*.dsl.i
 	$(Q)$(IASL) $(call iasl-option,$(IASL),-Pn,) -vs -l -tc -p $(OUT)$* $(OUT)$*.dsl.i
+	$(Q)sed  -i 's/^\( *[0-9A-Fa-f]\+\):  /\1..../' $(OUT)$*.lst
 	$(Q)$(PYTHON) ./tools/acpi_extract.py $(OUT)$*.lst > $(OUT)$*.off
 	$(Q)cat $(OUT)$*.off > $@
 
-- 
1.6.0.2




More information about the SeaBIOS mailing list