[edk2-devel] [PATCH v1 1/1] BaseTools/Conf: Remove C-Code-File.AcpiTable rule

PierreGondois pierre.gondois at arm.com
Thu Jun 25 08:19:22 UTC 2020


From: Pierre Gondois <pierre.gondois at arm.com>

When trying to build a module with the MODULE_TYPE
set to:
  MODULE_TYPE = AcpiTable

the build fails with the following error:
[ModulePath].inf(-1): error 3001: MODULE_TYPE AcpiTable is
not supported for EDK II, valid values are:
 BASE SEC PEI_CORE PEIM DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER
 DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_DRIVER UEFI_APPLICATION
 USER_DEFINED HOST_APPLICATION SMM_CORE MM_STANDALONE
 MM_CORE_STANDALONE

Indeed, the "SUP_MODULE_LIST" variable available in
edk2/BaseTools/Source/Python/Common/DataType.py does not
include any "AcpiTable".
The "C-Code-File.AcpiTable" rule described in
edk2/BaseTools/Conf/build_rule.template might be outdated.
Plus there is no mention of "AcpiTable" module in the
INF specification.

Signed-off-by: Pierre Gondois <pierre.gondois at arm.com>
---

The changes can be seen at: https://github.com/PierreARM/edk2/commits/831_Remove_C_AcpiTable_build_rule_v1

Notes:
    v1:
     - Remove AcpiTable rule. [Pierre]

 BaseTools/Conf/build_rule.template | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template
index 0822b681fcd9f61c6508e6f93ffc31fa70fd7059..32984eb3f33fd9d110da54975fc90325addb8ecc 100755
--- a/BaseTools/Conf/build_rule.template
+++ b/BaseTools/Conf/build_rule.template
@@ -437,26 +437,6 @@
         "$(ASL)" $(ASL_FLAGS) $(ASL_OUTFLAGS)${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iiii
         -AmlToHex $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.aml
 
-[C-Code-File.AcpiTable]
-    <InputFile>
-        ?.c
-
-    <OutputFile>
-        $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi
-
-    <ExtraDependency>
-        $(MAKE_FILE)
-
-    <Command.MSFT, Command.INTEL>
-        "$(ASLCC)" $(DEPS_FLAGS) /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASLCC_FLAGS) $(DEPS_FLAGS) $(INC) ${src}
-        "$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
-        "$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
-
-    <Command.GCC>
-        "$(ASLCC)" $(DEPS_FLAGS) -c -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(DEPS_FLAGS) $(INC) ${src}
-        "$(ASLDLINK)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj
-        "$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(GENFW_FLAGS)
-
 [Acpi-Table-Code-File]
     <InputFile>
         ?.aslc, ?.act
-- 
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#61703): https://edk2.groups.io/g/devel/message/61703
Mute This Topic: https://groups.io/mt/75099031/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list