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 <kevin@koconnor.net>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
Isaku Yamahata 2010-06-07 17:19:27 +09:00 committed by Kevin O'Connor
parent d5d02b6c97
commit 12cbb43b9d
1 changed files with 6 additions and 4 deletions

View File

@ -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: