diff mbox

[08/21] Add rule to compile DSDT to make file.

Message ID 1255017566-26220-9-git-send-email-gleb@redhat.com
State Not Applicable
Headers show

Commit Message

Gleb Natapov Oct. 8, 2009, 3:59 p.m. UTC
Signed-off-by: Gleb Natapov <gleb@redhat.com>
---
 Makefile |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index dd5bc69..50e7da2 100644
--- a/Makefile
+++ b/Makefile
@@ -175,6 +175,13 @@  $(OUT)vgabios.bin: $(OUT)vgabios.bin.raw tools/buildrom.py
 	@echo "  Finalizing rom $@"
 	$(Q)./tools/buildrom.py $< $@
 
+####### dsdt buld rules
+src/acpi-dsdt.hex: src/acpi-dsdt.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
+
 ####### Generic rules
 clean:
 	$(Q)rm -rf $(OUT)