From 12cbb43b9dc8a16f712188cb308a0eb0321f3e20 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Mon, 7 Jun 2010 17:19:27 +0900 Subject: [PATCH] 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 --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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: -- 2.39.5