summaryrefslogtreecommitdiff
path: root/Core/EM/AMIDebugRx/binaries/PeiAMIDebugRx/PeiDebugSupport/PeiDebugSupport.mak
blob: 216ca79b980e2a54f8905b48e080b070ae74745b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#//*****************************************************************//
#//*****************************************************************//
#//*****************************************************************//
#//**                                                             **//
#//**         (C)Copyright 2009, American Megatrends, Inc.        **//
#//**                                                             **//
#//**                     All Rights Reserved.                    **//
#//**                                                             **//
#//**   5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093  **//
#//**                                                             **//
#//**                     Phone (770)-246-8600                    **//
#//**                                                             **//
#//*****************************************************************//
#//*****************************************************************//
#//*****************************************************************//
# $Header: /Alaska/BIN/Modules/AMIDebugRx/binaries/PeiAMIDebugRx/PeiDebugSupport/PeiDebugSupport.mak 4     3/16/11 4:44p Sudhirv $
#
# $Revision: 4 $
#
# $Date: 3/16/11 4:44p $
#**********************************************************************
# Revision History
# ----------------
# $Log: /Alaska/BIN/Modules/AMIDebugRx/binaries/PeiAMIDebugRx/PeiDebugSupport/PeiDebugSupport.mak $
# 
# 4     3/16/11 4:44p Sudhirv
# Changes to Support Older Cores before 4.6.5.0
# 
# 3     3/09/11 8:23a Sudhirv
# EIP 53658 - AMIDebugRx\Debugger support for PI 1.1
# 
# 2     7/17/09 7:15p Madhans
# DebugRx 1.30.0022
# 
# 2     7/13/09 2:50p Sudhirv
# Updated with Coding Standards
# 
# 1     7/07/09 4:46p Sudhirv
# Restructure Binaries Created
# 
# 1     5/01/09 7:48p Madhans
# AMIDebug Rx Module. Intial Checkin.
# 
# 2     5/01/09 7:47p Madhans
# 
# 1     4/29/09 7:52a Sudhirv
# AMI Debug Rx module created
# 
# 7     12/12/08 5:42p Madhans
# USB Redirection Module
# 
# 5     6/13/07 3:38p Madhans
# Copyright Year updated.
# 
# 4     6/06/07 6:13p Madhans
# Leave the Peidbgsupport in PE format
# 
# 3     3/12/07 6:20p Madhans
# !!!coding standards!!!!
# 
# 2     3/10/07 2:40p Madhans
# For 1.05.binary Release.
# 
# 1     1/22/07 4:12p Madhans
# 1.04.0002 Binary Version.
# 
# 6     12/26/06 7:07p Ashrafj
# Support added to support the Aptio 4.5 x64 EFI BIOS (use latest
# Host.zip).
# PEI Debugger in FV_MAIN (use new PEIDEBUGFIXUP).
# Support added for StatusCode redirection without Debug feature enabled
# (not working if DXE only and x64 is enabled).
# Plus, some new SDL tokens defined to support the Aptio 4.5 build
# process in Debug or non-debug mode.
# All the components of Debugger eModule in source form.
# 
# 5     12/15/06 4:51p Ashrafj
# Updated the Debugger eModule sources to support the CAR base address
# define in the APtio 4.5 project SDL token itself.
# Move the PEI Debugger modules (except PeiDebugSupport) from FV_BB to
# FV_MAIN to avoid insufficient space problem in PEI. Note that for this
# changes the Aptio 4.5 project should have the new version 0.4
# PEIDEBUGFIXUP utility build tool with CORE.MAK modified (Refer Santa
# Rosa project).
# 
# 4     7/05/06 1:39p Ashrafj
# Include path updated
# 
# 3     3/15/06 7:48p Ashrafj
# Modfication done to provide the Binary integration for Aptio 4
# projects.
# 
# 2     10/20/05 10:06a Felixp
# missing dependencies added
# 
# 1     10/19/05 10:54a Felixp
# 
# 1     10/19/05 10:44a Felixp
# 
#**********************************************************************
#<AMI_FHDR_START>
#
# Name:	PeiDebugSupport.mak
#
# Description:	Makefile of Pei DebugSupport PEI Module
#
#<AMI_FHDR_END>
#**********************************************************************

PEI_DBGSUPPORT_CFLAGS = $(PEI_DBG_CFLAGS) /I$(PeiAMIDebugRx_DIR)\INC

PEI_DBGSUPPORT_BUILD_DIR=$(PeiDebugSupport_DIR)

PEI_DBGSUPPORT_OBJECTS =\
!IFDEF PI_SPECIFICATION_VERSION
!IF $(PI_SPECIFICATION_VERSION)>=0x00010000
$(PEI_DBGSUPPORT_BUILD_DIR)\peidebugsupport_PI_1_1.obj \
$(PEI_DBGSUPPORT_BUILD_DIR)\relocdbg_PI_1_1.obj \
!ELSE
$(PEI_DBGSUPPORT_BUILD_DIR)\peidebugsupport.obj \
$(PEI_DBGSUPPORT_BUILD_DIR)\relocdbg.obj \
!ENDIF
!ELSE
$(PEI_DBGSUPPORT_BUILD_DIR)\peidebugsupport.obj \
$(PEI_DBGSUPPORT_BUILD_DIR)\relocdbg.obj \
!ENDIF
$(PEI_DBGSUPPORT_BUILD_DIR)\AmiDebugPort.obj \
$(BUILD_DIR)\$(PeiDebugSupport_DIR)\DbgrHelp.obj \
!IF "$(USB_DEBUG_TRANSPORT)" == "1"
$(PEI_DBGSUPPORT_BUILD_DIR)\DebugPortUsb.obj \
!ENDIF
!IF "$(REDIRECTION_ONLY_MODE)" == "1"
$(PEI_DBGSUPPORT_BUILD_DIR)\Emptyrelocdbgidt.obj \
!ENDIF
!IF "$(x64_BUILD)"=="1"
!IFDEF PI_SPECIFICATION_VERSION
!IF $(PI_SPECIFICATION_VERSION)>=0x00010000
$(PEI_DBGSUPPORT_BUILD_DIR)\PeiDbgSupportX64_PI_1_1.obj \
!ELSE
$(PEI_DBGSUPPORT_BUILD_DIR)\PeiDbgSupportX64.obj \
!ENDIF
!ELSE
$(PEI_DBGSUPPORT_BUILD_DIR)\PeiDbgSupportX64.obj \
!ENDIF
!IF "$(USB_DEBUG_TRANSPORT)" == "1"
$(PEI_DBGSUPPORT_BUILD_DIR)\CopyDbgXPortUsb.obj \
!ENDIF
!IF "$(REDIRECTION_ONLY_MODE)" == "1"
$(PEI_DBGSUPPORT_BUILD_DIR)\emptyX64idt.obj \
!ENDIF
!ELSE
$(PEI_DBGSUPPORT_BUILD_DIR)\EmptyNotify.obj \
!ENDIF


all : PeiDebugSupport 

PeiDebugSupport : $(BUILD_DIR)\PeiDebugSupport.mak PeiDebugSupportBin

$(BUILD_DIR)\PeiDebugSupport.mak : $(PeiDebugSupport_DIR)\$(@B).cif $(PeiDebugSupport_DIR)\$(@B).mak $(BUILD_RULES)
	$(CIF2MAK) $(PeiDebugSupport_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS)

PeiDebugSupportBin : $(AMIPEILIB)
	$(MAKE) /$(MAKEFLAGS) $(BUILD_DEFAULTS)\
		/f $(BUILD_DIR)\PeiDebugSupport.mak all\
		GUID=A47438D5-94E9-49b3-BC31-7E6BC9363814\
		ENTRY_POINT=PeiDebugSupportEntry \
		TYPE=PEIM \
        PE_IMAGE_FORMAT=1\
		"EXT_HEADERS=$(BUILD_DIR)\Token.mak" \
		"EXT_HEADERS=$(BUILD_DIR)\token.h"\
		COMPRESS=0\
		PRECOMPILED_OBJS=\
		"OBJECTS=$(PEI_DBGSUPPORT_OBJECTS)"\
		"CFLAGS = $(PEI_DBGSUPPORT_CFLAGS)"

#//*****************************************************************//
#//*****************************************************************//
#//*****************************************************************//
#//**                                                             **//
#//**         (C)Copyright 2009, American Megatrends, Inc.        **//
#//**                                                             **//
#//**                     All Rights Reserved.                    **//
#//**                                                             **//
#//**   5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093  **//
#//**                                                             **//
#//**                     Phone (770)-246-8600                    **//
#//**                                                             **//
#//*****************************************************************//
#//*****************************************************************//
#//*****************************************************************//