summaryrefslogtreecommitdiff
path: root/ReferenceCode/Haswell/SampleCode/SecCore/CpuRcSec.mak
diff options
context:
space:
mode:
Diffstat (limited to 'ReferenceCode/Haswell/SampleCode/SecCore/CpuRcSec.mak')
-rw-r--r--ReferenceCode/Haswell/SampleCode/SecCore/CpuRcSec.mak27
1 files changed, 27 insertions, 0 deletions
diff --git a/ReferenceCode/Haswell/SampleCode/SecCore/CpuRcSec.mak b/ReferenceCode/Haswell/SampleCode/SecCore/CpuRcSec.mak
new file mode 100644
index 0000000..8f1b13f
--- /dev/null
+++ b/ReferenceCode/Haswell/SampleCode/SecCore/CpuRcSec.mak
@@ -0,0 +1,27 @@
+# MAK file for the ModulePart:CPU SEC RC
+CPU_RC_DEPENDANCIES = \
+$(CPU_RC_SEC_DIR)\Platform.inc \
+$(CPU_RC_SEC_DIR)\Chipset.inc \
+$(CPU_RC_SEC_DIR)\SecFlat32.inc
+
+$(BUILD_DIR)\CpuRcSec.obj : $(CPU_RC_SEC_DIR)\CpuRcSec.asm $(CPU_RC_DEPENDANCIES)
+ $(ASM) /c /nologo /coff /Sa /I$(BUILD_DIR) /Fo$@ $(CPU_RC_SEC_DIR)\CpuRcSec.asm
+
+
+# Add its own include path to
+MY_INC = \
+/ICore \
+/IEDK\Foundation\Framework\Ppi\SecPlatformInformation
+
+# Add CrcSecPpi.obj to CORE_PEIBin dependency list, so it will be linked with PEI CORE
+CORE_PEIBin: $(BUILD_DIR)\CrcSecPpi.obj
+# Add SecPlatformInformation.obj to CORE_PEIBin dependency list, so it will be linked with PEI CORE
+CORE_PEIBin: $(BUILD_DIR)\SecPlatformInformation.obj
+
+# Add a description block for CrcSecPpi.OBJ for cross-module link
+$(BUILD_DIR)\CrcSecPpi.OBJ : $(CPU_RC_SEC_DIR)\CrcSecPpi.c
+ $(CC) $(CFLAGS) $(MY_INC) /Fo$(BUILD_DIR)\CrcSecPpi.obj $(CPU_RC_SEC_DIR)\CrcSecPpi.c
+
+# Add a description block for SecPlatformInformation.OBJ
+$(BUILD_DIR)\SecPlatformInformation.obj : $(EdkFrameworkPpiLib_DIR)\SECPLATFORMINFORMATION\SecPlatformInformation.c
+ $(CC) $(CFLAGS) $(EDK_INCLUDES) /D TIANO_RELEASE_VERSION=0x00080006 /Fo$(BUILD_DIR)\SecPlatformInformation.obj $(EdkFrameworkPpiLib_DIR)\SECPLATFORMINFORMATION\SecPlatformInformation.c