blob: b745faa16d8845e33d8986c2c5c723223e705f9e [file] [log] [blame]
eric_tian804405e2008-06-30 05:08:49 +00001#/** @file
2# Entry Point of Unix Emulator
3#
4# Main executable file of Unix Emulator that loads PEI core after initialization finished.
qhuang8ccd55822009-08-25 07:29:13 +00005# Copyright (c) 2008 - 2009, Intel Corporation
6# Portions copyright (c) 2008-2009 Apple Inc.
eric_tian804405e2008-06-30 05:08:49 +00007#
8# All rights reserved. This program and the accompanying materials
9# are licensed and made available under the terms and conditions of the BSD License
10# which accompanies this distribution. The full text of the license may be found at
11# http://opensource.org/licenses/bsd-license.php
12# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14#
15#
16#**/
17
18[Defines]
19 INF_VERSION = 0x00010005
20 BASE_NAME = SecMain
21 FILE_GUID = f43be88c-8985-11db-8f78-0040d02b1835
eric_tian73aa7f02008-07-16 05:28:50 +000022 MODULE_TYPE = USER_DEFINED
eric_tian804405e2008-06-30 05:08:49 +000023 VERSION_STRING = 1.0
24 EDK_RELEASE_VERSION = 0x00020000
25 EFI_SPECIFICATION_VERSION = 0x00020000
26 ENTRY_POINT = main
27
28#
29# The following information is for reference only and not required by the build tools.
30#
31# VALID_ARCHITECTURES = IA32 X64 IPF EBC
32#
33
34[Sources.common]
35 UgaX11.c
36 UnixThunk.c
37 FwVol.c
38 SecMain.c
AJFISH7ee3b612009-12-06 02:00:37 +000039 Gasket.c
qhuang8ccd55822009-08-25 07:29:13 +000040
41[Sources.Ia32]
42 Ia32/Gasket.S
43 Ia32/Stack.S
eric_tian804405e2008-06-30 05:08:49 +000044
45[Packages]
46 MdePkg/MdePkg.dec
47 MdeModulePkg/MdeModulePkg.dec
48 IntelFrameworkPkg/IntelFrameworkPkg.dec
49 UnixPkg/UnixPkg.dec
50
51[LibraryClasses]
52 DebugLib
53 PcdLib
54 PrintLib
55 BaseMemoryLib
56 BaseLib
57 PeCoffLib
58 ReportStatusCodeLib
59
60
eric_tian804405e2008-06-30 05:08:49 +000061[Ppis]
62 gUnixPeiLoadFilePpiGuid # PPI ALWAYS_PRODUCED
63 gEfiPeiStatusCodePpiGuid # PPI ALWAYS_PRODUCED
64 gUnixFwhPpiGuid # PPI ALWAYS_PRODUCED
65 gPeiUnixAutoScanPpiGuid # PPI ALWAYS_PRODUCED
66 gPeiUnixThunkPpiGuid # PPI ALWAYS_PRODUCED
67 gEfiTemporaryRamSupportPpiGuid
68
69
70[Pcd.common]
71 gEfiUnixPkgTokenSpaceGuid.PcdUnixBootMode
72 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareVolume
73 gEfiUnixPkgTokenSpaceGuid.PcdUnixMemorySizeForSecMain
74 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize
AJFISH7ee3b612009-12-06 02:00:37 +000075 gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress
eric_tian804405e2008-06-30 05:08:49 +000076
77[BuildOptions.common]
eric_tian95e94722009-04-14 05:41:33 +000078 GCC:*_*_IA32_DLINK_FLAGS == -o $(BIN_DIR)/SecMain -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o -L/usr/X11R6/lib -lXext -lX11 /usr/lib/crtn.o
jwang363c5a8c12009-02-20 02:09:56 +000079 GCC:*_*_*_DLINK2_FLAGS == -lc
80 GCC:*_*_IA32_CC_FLAGS == -m32 -g -fshort-wchar -fno-strict-aliasing -Wall -malign-double -idirafter/usr/include -c -include $(DEST_DIR_DEBUG)/AutoGen.h -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
81 GCC:*_*_IA32_PP_FLAGS == -m32 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h
82 GCC:*_*_IA32_ASM_FLAGS == -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h
qhuang8ccd55822009-08-25 07:29:13 +000083
84#
85# Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version
86#
87 XCODE:*_*_IA32_DLINK_PATH == gcc
AJFISH7ee3b612009-12-06 02:00:37 +000088 XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/SecMain -L/usr/X11R6/lib -lXext -lX11 -lIOKit -framework Carbon
qhuang8ccd55822009-08-25 07:29:13 +000089 XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g