From: Isaku Yamahata Date: Mon, 7 Jun 2010 08:19:27 +0000 (+0900) Subject: seabios: remove iasl output file when error. X-Git-Tag: rel-0.6.1~58 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=12cbb43b9dc8a16f712188cb308a0eb0321f3e20;p=seabios.git seabios: remove iasl output file when error. Surprisingly iasl creates output file even when compilation error. So typing make after an error will succeed. This patch prevents it by removing the output file when error. And adds related dependencies to compile when .hex is missing. Signed-off-by: Kevin O'Connor Signed-off-by: Isaku Yamahata --- diff --git a/Makefile b/Makefile index 72d711d..927999c 100644 --- a/Makefile +++ b/Makefile @@ -184,11 +184,13 @@ $(OUT)vgabios.bin: $(OUT)vgabios.bin.raw tools/buildrom.py $(Q)./tools/buildrom.py $< $@ ####### dsdt build rules -src/acpi-dsdt.hex: src/acpi-dsdt.dsl +src/%.hex: src/%.dsl @echo "Compiling DSDT" - $(Q)cpp -P $< > $(OUT)acpi-dsdt.dsl.i - $(Q)iasl -tc -p $@ $(OUT)acpi-dsdt.dsl.i - $(Q)rm $(OUT)acpi-dsdt.dsl.i + $(Q)cpp -P $< > $(OUT)$*.dsl.i + $(Q)iasl -tc -p $(OUT)$* $(OUT)$*.dsl.i + $(Q)cp $(OUT)$*.hex $@ + +$(OUT)ccode32flat.o: src/acpi-dsdt.hex ####### Generic rules clean: