]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - scripts/Makefile.lib
x86: Generate a valid ACPI table
[karo-tx-uboot.git] / scripts / Makefile.lib
index 1c949fc0eb966cb13ea1c76fe509f50a92a74494..ed30bf5bb96b848a1296984f8b4c57835a10f89e 100644 (file)
@@ -297,6 +297,17 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
 
 dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
 
+# ACPI
+# ---------------------------------------------------------------------------
+quiet_cmd_acpi_c_asl= ASL     $@
+cmd_acpi_c_asl=         \
+       $(CPP) -x assembler-with-cpp -P -o $<.tmp $<; \
+       iasl -p $< -tc -va $<.tmp; \
+       mv $(patsubst %.asl,%.hex,$<) $@
+
+$(obj)/%.c:    $(src)/%.asl
+       $(call cmd,acpi_c_asl)
+
 # Bzip2
 # ---------------------------------------------------------------------------