summaryrefslogtreecommitdiff
path: root/Board/EM/Platform/EfiCombineImage/EfiCombineImage.mak
blob: a95b06743706d86aac0aa401ad575028a0d82a5d (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
#*************************************************************************
#*************************************************************************
#**                                                                     **
#**        (C)Copyright 1985-2012, American Megatrends, Inc.            **
#**                                                                     **
#**                       All Rights Reserved.                          **
#**                                                                     **
#**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093           **
#**                                                                     **
#**                       Phone: (770)-246-8600                         **
#**                                                                     **
#*************************************************************************
#*************************************************************************

#*************************************************************************
# $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/Platform/EfiCombineImage/EfiCombineImage.mak 1     12/18/12 11:10p Alanlin $
#
# $Revision: 1 $
#
# $Date: 12/18/12 11:10p $
#*************************************************************************
# Revision History
# ----------------
# $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/Platform/EfiCombineImage/EfiCombineImage.mak $
# 
# 1     12/18/12 11:10p Alanlin
# 
# 
#*************************************************************************
#<AMI_FHDR_START>
#
# Name:
#
# Description:
#
#<AMI_FHDR_END>
#*************************************************************************
all : EfiCombineImage EfiCombineImage1 EfiCombineImage2

EfiCombineImage: \
!IF "$(NVidia_Optimus_dGPU)" == "1"
$(BUILD_DIR)\EfiCombineImageFile.ffs 
!ENDIF

EfiCombineImage1: \
!IF "$(AMD_PX_CHELSEA_dGPU)" == "1"
$(BUILD_DIR)\EfiCombineImageFile1.ffs 
!ENDIF

EfiCombineImage2: \
!IF "$(AMD_PX_THAMES_dGPU)" == "1"
$(BUILD_DIR)\EfiCombineImageFile2.ffs 
!ENDIF

$(BUILD_DIR)\EfiCombineImage.mak : $(EfiCombineImage_DIR)\$(@B).cif $(EfiCombineImage_DIR)\$(@B).mak $(BUILD_RULES)
	$(CIF2MAK) $(EfiCombineImage_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS)

AMI_CSP_LIB_OBJS = $(AMI_CSP_LIB_OBJS) \
$(BUILD_DIR)\EfiCombineImage.obj 

{$(EfiCombineImage_DIR)}.c{$(BUILD_DIR)}.obj::
    $(CC) $(CFLAGS) /Fo$(BUILD_DIR)\ $<

$(BUILD_DIR)\EfiCombineImage.obj : $(EfiCombineImage_DIR)\EfiCombineImage.c

!IF "$(NVidia_Optimus_dGPU)" == "1"
$(BUILD_DIR)\EfiCombineImageFile.ffs : $(EfiCombineImageFile)
	$(MAKE) /f Core\FFS.mak \
	BUILD_DIR=$(BUILD_DIR) \
	GUID=$(NVidia_dGPU_MAKFILE_GUID) \
	TYPE=EFI_FV_FILETYPE_FREEFORM \
	BINFILE=$** FFSFILE=$@ COMPRESS=1 NAME=$(**B)
!ENDIF

!IF "$(AMD_PX_CHELSEA_dGPU)" == "1"
$(BUILD_DIR)\EfiCombineImageFile1.ffs : $(EfiCombineImageFile1)
	$(MAKE) /f Core\FFS.mak \
	BUILD_DIR=$(BUILD_DIR) \
	GUID=$(AMD_CHELSEA_MAKFILE_GUID) \
	TYPE=EFI_FV_FILETYPE_FREEFORM \
	BINFILE=$** FFSFILE=$@ COMPRESS=1 NAME=$(**B)
!ENDIF

!IF "$(AMD_PX_THAMES_dGPU)" == "1"
$(BUILD_DIR)\EfiCombineImageFile2.ffs : $(EfiCombineImageFile2)
	$(MAKE) /f Core\FFS.mak \
	BUILD_DIR=$(BUILD_DIR) \
	GUID=$(AMD_THAMES_MAKFILE_GUID) \
	TYPE=EFI_FV_FILETYPE_FREEFORM \
	BINFILE=$** FFSFILE=$@ COMPRESS=1 NAME=$(**B)
!ENDIF

#*************************************************************************
#*************************************************************************
#**                                                                     **
#**        (C)Copyright 1985-2012, American Megatrends, Inc.            **
#**                                                                     **
#**                       All Rights Reserved.                          **
#**                                                                     **
#**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093           **
#**                                                                     **
#**                       Phone: (770)-246-8600                         **
#**                                                                     **
#*************************************************************************
#*************************************************************************