Makefile = {
"nmake" : {
"C-Code" : '''\
-${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE_DIR)${sep}${dep}
+${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${dep}
${END} "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)${sep}${fdir}${sep}${fname}
''',
"AutoGen-Code" : '''\
-${BEGIN}$(OUTPUT_DIR)${sep}${fbase}.obj : $(WORKSPACE_DIR)${sep}${dep}
+${BEGIN}$(OUTPUT_DIR)${sep}${fbase}.obj : $(WORKSPACE)${sep}${dep}
${END} "$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(DEBUG_DIR)${sep}${fname}
''',
"Masm-Code" : '''\
-${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE_DIR)${sep}${dep}
+${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${dep}
${END} "$(PP)" $(PP_FLAGS) $(INC) $(MODULE_DIR)${sep}${fdir}${sep}${fname} > $(@D)${sep}${fbase}.i
Trim -CONVERT $(@D)${sep}${fbase}.i
"$(ASM)" $(ASM_FLAGS) /Fo$@ $(@D)${sep}${fbase}.iii
''',
"Iasm-Code" : '''\
-${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE_DIR)${sep}${dep}
+${BEGIN}$(OUTPUT_DIR)${sep}${fdir}${sep}${fbase}.obj : $(WORKSPACE)${sep}${dep}
${END} "$(APP)" $(APP_FLAGS) $(INC) $< $(PP_OUTPUT)$(@D)${sep}${fbase}.i
"$(ASM)" $(ASM_FLAGS) $(ASM_OUTPUT)$@ $(@D)${sep}${fbase}.i
''',
echo.\r
\r
REM\r
-REM copy *.template to %EDK_TOOLS_PATH%\Conf\r
+REM copy *.template to %WORKSPACE%\Conf\r
REM\r
-if NOT exist %EDK_TOOLS_PATH%\Conf mkdir %EDK_TOOLS_PATH%\Conf\r
-if NOT exist %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.db (\r
- echo copying ... FrameworkDatabase.template to %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.db\r
- copy %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.db > nul\r
+if NOT exist %WORKSPACE%\Conf mkdir %WORKSPACE%\Conf\r
+if NOT exist %WORKSPACE%\Conf\FrameworkDatabase.db (\r
+ echo copying ... FrameworkDatabase.template to %WORKSPACE%\Conf\FrameworkDatabase.db\r
+ copy %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul\r
)\r
-if NOT exist %EDK_TOOLS_PATH%\Conf\target.txt (\r
- echo copying ... target.template to %EDK_TOOLS_PATH%\Conf\target.txt\r
- copy %EDK_TOOLS_PATH%\Conf\target.template %EDK_TOOLS_PATH%\Conf\target.txt > nul\r
+if NOT exist %WORKSPACE%\Conf\target.txt (\r
+ echo copying ... target.template to %WORKSPACE%\Conf\target.txt\r
+ copy %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul\r
)\r
-if NOT exist %EDK_TOOLS_PATH%\Conf\tools_def.txt (\r
- echo copying ... tools_def.template to %EDK_TOOLS_PATH%\Conf\tools_def.txt\r
- copy %EDK_TOOLS_PATH%\Conf\tools_def.template %EDK_TOOLS_PATH%\Conf\tools_def.txt > nul\r
+if NOT exist %WORKSPACE%\Conf\tools_def.txt (\r
+ echo copying ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt\r
+ copy %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul\r
)\r
-if NOT exist %EDK_TOOLS_PATH%\Conf\build_rule.txt (\r
- echo copying ... build_rule.template to %EDK_TOOLS_PATH%\Conf\build_rule.txt\r
- copy %EDK_TOOLS_PATH%\Conf\build_rule.template %EDK_TOOLS_PATH%\Conf\build_rule.txt > nul\r
+if NOT exist %WORKSPACE%\Conf\build_rule.txt (\r
+ echo copying ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt\r
+ copy %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul\r
)\r
\r
REM\r
${WORKSPACE}\MdePkg\Library/BasePciLibCf8/BasePciLibCf8.inf\r
${WORKSPACE}\MdePkg\Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
${WORKSPACE}\MdePkg\Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
- ${WORKSPACE}\MdePkg\Library/BasePeCoffLib/BasePeCoffLib.inf\r
+# ${WORKSPACE}\MdePkg\Library/BasePeCoffLib/BasePeCoffLib.inf\r
${WORKSPACE}\MdePkg\Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
${WORKSPACE}\MdePkg\Library/BasePostCodeLibDebug/BasePostCodeLibDebug.inf\r
${WORKSPACE}\MdePkg\Library/BasePostCodeLibPort80/BasePostCodeLibPort80.inf\r
${WORKSPACE}\MdePkg\Library/DxeMemoryAllocationLib/DxeMemoryAllocationLib.inf\r
${WORKSPACE}\MdePkg\Library/DxePcdLib/DxePcdLib.inf\r
${WORKSPACE}\MdePkg\Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
- ${WORKSPACE}\MdePkg\Library/DxeSmbusLib/DxeSmbusLib.inf\r
+# ${WORKSPACE}\MdePkg\Library/DxeSmbusLib/DxeSmbusLib.inf\r
${WORKSPACE}\MdePkg\Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
- ${WORKSPACE}\MdePkg\Library/PeiHobLib/PeiHobLib.inf\r
+# ${WORKSPACE}\MdePkg\Library/PeiHobLib/PeiHobLib.inf\r
${WORKSPACE}\MdePkg\Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
${WORKSPACE}\MdePkg\Library/PeimEntryPoint/PeimEntryPoint.inf\r
${WORKSPACE}\MdePkg\Library/PeiPcdLib/PeiPcdLib.inf\r
${WORKSPACE}\MdePkg\Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf\r
${WORKSPACE}\MdePkg\Library/PeiServicesLib/PeiServicesLib.inf\r
${WORKSPACE}\MdePkg\Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r
- ${WORKSPACE}\MdePkg\Library/PeiSmbusLib/PeiSmbusLib.inf\r
+# ${WORKSPACE}\MdePkg\Library/PeiSmbusLib/PeiSmbusLib.inf\r
${WORKSPACE}\MdePkg\Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r
${WORKSPACE}\MdePkg\Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
${WORKSPACE}\MdePkg\Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r