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:
parent
d5d02b6c97
commit
12cbb43b9d
10
Makefile
10
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:
|
||||
|
|
Loading…
Reference in New Issue