Add the special build rule for AcpiTable C Source file.
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Mon, 1 Sep 2008 01:18:00 +0000 (01:18 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Mon, 1 Sep 2008 01:18:00 +0000 (01:18 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@5759 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/BaseTools/Conf/build_rule.template

index 84262b2..c138bd9 100644 (file)
         "$(ASLPP)" $(ASLPP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_dir}(+)${s_base}.i\r
         "$(ASL)" -p ${dst} $(ASL_FLAGS) ${d_path}(+)${s_dir}(+)${s_base}.i\r
 \r
+[C-Code-File.AcpiTable]\r
+    <InputFile>\r
+        ?.c\r
+\r
+    <OutputFile>\r
+        $(OUTPUT_DIR)(+)${s_base}.acpi\r
+\r
+    <ExtraDependency>\r
+        $(MAKE_FILE)\r
+\r
+    <Command.MSFT, Command.INTEL>\r
+        "$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src}\r
+        "$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj\r
+        GenFw -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll\r
+\r
 [Acpi-Table-Code-File]\r
     <InputFile>\r
-        ?.aslc\r
+        ?.aslc, ?.act\r
 \r
     <OutputFile>\r
         $(OUTPUT_DIR)(+)${s_base}.acpi\r